mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-21 05:39:11 -04:00
merged in new lobbies with GXS ids. Old peers and new peers cannot see each others lobby lists. Invitations still work and can be used to transfer a lobby ID between versions. Messages of old and new peers will not be visible to each other
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7986 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
2044575067
commit
f9c78ebd61
22 changed files with 1430 additions and 980 deletions
|
@ -24,8 +24,10 @@
|
|||
#define _CHATLOBBYDIALOG_H
|
||||
|
||||
#include "ui_ChatLobbyDialog.h"
|
||||
#include "gui/common/RSTreeWidgetItem.h"
|
||||
#include "ChatDialog.h"
|
||||
|
||||
class GxsIdChooser ;
|
||||
class QToolButton;
|
||||
|
||||
class ChatLobbyDialog: public ChatDialog
|
||||
|
@ -35,14 +37,14 @@ class ChatLobbyDialog: public ChatDialog
|
|||
friend class ChatDialog;
|
||||
|
||||
public:
|
||||
void displayLobbyEvent(int event_type, const QString& nickname, const QString& str);
|
||||
void displayLobbyEvent(int event_type, const RsGxsId &gxs_id, const QString& str);
|
||||
|
||||
virtual void showDialog(uint chatflags);
|
||||
virtual ChatWidget *getChatWidget();
|
||||
virtual bool hasPeerStatus() { return false; }
|
||||
virtual bool notifyBlink();
|
||||
void setNickname(const QString &nickname);
|
||||
bool isParticipantMuted(const QString &participant);
|
||||
void setIdentity(const RsGxsId& gxs_id);
|
||||
bool isParticipantMuted(const RsGxsId &participant);
|
||||
ChatLobbyId id() const { return lobbyId ;}
|
||||
|
||||
private slots:
|
||||
|
@ -71,31 +73,38 @@ protected:
|
|||
virtual void addChatMsg(const ChatMessage &msg);
|
||||
|
||||
protected slots:
|
||||
void changeNickname();
|
||||
void changeNickname();
|
||||
void changePartipationState();
|
||||
void participantsTreeWidgetDoubleClicked(QTreeWidgetItem *item, int column);
|
||||
void distantChatParticipant();
|
||||
void participantsTreeWidgetDoubleClicked(QTreeWidgetItem *item, int column);
|
||||
|
||||
private:
|
||||
void updateParticipantsList();
|
||||
|
||||
void muteParticipant(const QString &nickname);
|
||||
void unMuteParticipant(const QString &nickname);
|
||||
bool isNicknameInLobby(const QString &nickname);
|
||||
QString getParticipantName(const RsGxsId& id) const;
|
||||
void muteParticipant(const RsGxsId& id);
|
||||
void unMuteParticipant(const RsGxsId& id);
|
||||
bool isNicknameInLobby(const RsGxsId& id);
|
||||
|
||||
ChatLobbyId lobbyId;
|
||||
QString _lobby_name ;
|
||||
time_t lastUpdateListTime;
|
||||
|
||||
QToolButton *inviteFriendsButton ;
|
||||
RSTreeWidgetItemCompareRole *mParticipantCompareRole ;
|
||||
|
||||
QToolButton *inviteFriendsButton ;
|
||||
QToolButton *unsubscribeButton ;
|
||||
|
||||
/** Qt Designer generated object */
|
||||
Ui::ChatLobbyDialog ui;
|
||||
|
||||
/** Ignored Users in Chatlobby by nickname until we had implemented Peer Ids in ver 0.6 */
|
||||
QStringList *mutedParticipants;
|
||||
std::set<RsGxsId> mutedParticipants;
|
||||
|
||||
QAction *muteAct;
|
||||
QAction *distantChatAct;
|
||||
|
||||
GxsIdChooser *ownIdChooser ;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue