mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-16 00:53:58 -05:00
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:
parent
0e2c4266fa
commit
4d26726a88
8 changed files with 131 additions and 52 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue