fixed unread chat cound in FriendsDialog, fix display of status in distant chat (Patch from electron)

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7832 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2015-01-10 13:13:41 +00:00
parent 0e2c4266fa
commit 4d26726a88
8 changed files with 131 additions and 52 deletions

View file

@ -25,12 +25,19 @@
#include <retroshare/rsmsgs.h>
#include "gui/common/UserNotify.h"
// this class uses lots of global state
// so only one instance is allowed
// (it does not make sense to have multiple instances of this class anyway)
class ChatUserNotify : public UserNotify
{
Q_OBJECT
public:
static void getPeersWithWaitingChat(std::vector<RsPeerId>& peers);
static void clearWaitingChat(ChatId id);
ChatUserNotify(QObject *parent = 0);
~ChatUserNotify();
virtual bool hasSetting(QString *name, QString *group);
@ -42,8 +49,6 @@ private:
virtual QIcon getMainIcon(bool hasNew);
virtual unsigned int getNewCount();
virtual void iconClicked();
std::map<ChatId, int> mWaitingChats;
};
#endif // CHATUSERNOTIFY_H