Chat-O-Matic/application/CayaMessages.h
Jaidyn Ann f4342d9310 Roster management, adding new contacts
The base for roster management (RosterEditWindow) has been made, and
adding new contacts works. Up next is contact removal and editing.

This leverages a new template (as defined in a protocol's
CayaProtocol::SettingsTemplate()), "roster," which should contain all
slots pertinent to editing/adding a contact member.

Two new API messages were added for this― IM_CONTACT_LIST_CONTACT_ADDED
and IM_CONTACT_LIST_CONTACT_REMOVED. The former will functionally just
be IM_CONTACT_INFO, but with some semantical meaning.

A new CayaMessage (CAYA_EDIT_ROSTER) was also added.

TemplateWindow was also edited to this end: Now, like RosterWindow/View,
it can be given a specific accounts' instance id, and it will prevent
the selection of another account. A new constructor was also added, to
allow a ProtocolTemplate to be explicitly passed to it― probably from
the program itself.
2021-06-19 18:25:58 -05:00

63 lines
1.5 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';
//! Create a new chat
const uint32 CAYA_NEW_ROOM = 'CYnr';
//! Join a chat
const uint32 CAYA_JOIN_ROOM = 'CYjr';
//! 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';
//! Disable a given account
const uint32 CAYA_DISABLE_ACCOUNT = 'CYda';
//! Request a "help" message
const uint32 CAYA_REQUEST_HELP = 'CYhm';
//! Display a "user info" window
const uint32 CAYA_USER_INFO = 'CYuw';
//! Edit the contact roster
const uint32 CAYA_EDIT_ROSTER = 'CYer';
#endif // _CAYA_MESSAGES_H