75de08a18b
Protocol messages was added to the API to allow joining abstract rooms by their chat_id― IM_JOIN_ROOM and IM_ROOM_JOINED. To make room in anticipation of future room-related calls, some messages' values have been shifted. A JoinWindow was created (found through [Chat→Join Room] or [Alt-J] in the main window), to allow joining a room with this protocol message. The user can select which account the room should be joined from through a drop-down menu in the lower left-hand corner― a design I think could be replicated in other parts of Caya well. Path() and SetPath() in CayaProtocol were renamed to AddOnPath() and SetAddOnPath() respectively. GetName() and SetName() were also added, where "name" is the account name (aka the leaf of the protocols settings path). To Server, a new KeyMap was added for convenience (AccountInstances), to associate these account names with their instance IDs.
48 lines
1.1 KiB
C
48 lines
1.1 KiB
C
/*
|
|
* Copyright 2010-2011, Pier Luigi Fiorini. All rights reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _CAYA_MESSAGES_H
|
|
#define _CAYA_MESSAGES_H
|
|
|
|
//! Show settings window
|
|
const uint32 CAYA_SHOW_SETTINGS = 'RPST';
|
|
|
|
//! Open chat window
|
|
const uint32 CAYA_OPEN_CHAT_WINDOW = 'CYow';
|
|
|
|
//! Close chat window
|
|
const uint32 CAYA_CLOSE_CHAT_WINDOW = 'CYcw';
|
|
|
|
//! Chat messages
|
|
const uint32 CAYA_CHAT = 'CYch';
|
|
|
|
//! Create a new chat
|
|
const uint32 CAYA_NEW_CHAT = 'CYnc';
|
|
|
|
//! Join a chat
|
|
const uint32 CAYA_JOIN_CHAT = 'CYjc';
|
|
|
|
//! Invite user to current chat
|
|
const uint32 CAYA_SEND_INVITE = 'CYin';
|
|
|
|
//! Send replicant's messenger to Caya
|
|
const uint32 CAYA_REPLICANT_MESSENGER = 'RPme';
|
|
|
|
//! Status notification from the replicant
|
|
const uint32 CAYA_REPLICANT_STATUS_SET = 'RPMS';
|
|
|
|
//! Exit notification from replicant
|
|
const uint32 CAYA_REPLICANT_EXIT = 'RPEX';
|
|
|
|
//! Show main window replicant notification
|
|
const uint32 CAYA_REPLICANT_SHOW_WINDOW = 'CYSW';
|
|
|
|
//! Select the upward conversation
|
|
const uint32 CAYA_MOVE_UP = 'CYmu';
|
|
|
|
//! Select the downward conversation
|
|
const uint32 CAYA_MOVE_DOWN = 'CYmd';
|
|
|
|
#endif // _CAYA_MESSAGES_H
|