Splitted queue of chat messages in chat service into public and private queue.

Reworked the interface of the chat service. So full recomile is needed.
With disabled flags for private chat (RS_CHAT_OPEN_NEW and RS_CHAT_REOPEN), the incoming private chat messages are queued (only for the runtime) until the user shows the private chat dialog.
When a new chat message is available, the icon of the gpg and ssl contact changed in MessengerWindow and PeersDialog and a new tray icon is shown.
Fixed compiler warning.


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3421 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-09-01 17:56:15 +00:00
parent 7dd99a0c35
commit 7f837e9778
17 changed files with 597 additions and 329 deletions

View file

@ -104,19 +104,38 @@ class p3Msgs: public RsMsgs
virtual std::string getCustomStateString(const std::string& peer_id) ;
/****************************************/
/* Chat */
/*!
* sends chat (public and private)
* @param ci chat info
* public chat sent to all peers
*/
virtual bool ChatSend(ChatInfo &ci);
virtual bool sendPublicChat(std::wstring msg);
/*!
* @param chats ref to list of received chats is stored here
* chat is sent to specifc peer
* @param id peer to send chat msg to
*/
virtual bool getNewChat(std::list<ChatInfo> &chats);
virtual bool sendPrivateChat(std::string id, std::wstring msg);
/*!
* returns the count of messages in public or private queue
* @param public or private queue
*/
virtual int getChatQueueCount(bool privateQueue);
/*!
* @param chats ref to list of received public chats is stored here
*/
virtual bool getPublicChatQueue(std::list<ChatInfo> &chats);
/*!
* @param id's of available private chat messages
*/
virtual bool getPrivateChatQueueIds(std::list<std::string> &ids);
/*!
* @param chats ref to list of received private chats is stored here
*/
virtual bool getPrivateChatQueue(std::string id, std::list<ChatInfo> &chats);
/*!
* sends immediate status string to a specific peer, e.g. in a private chat
* @param peer_id peer to send status string to