mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 09:04:53 -07:00
Add the ability to friend/ignore an offline user
This commit is contained in:
parent
6913f2bb4e
commit
b749ddbc45
2 changed files with 72 additions and 8 deletions
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include "tab.h"
|
||||
#include "pb/serverinfo_user.pb.h"
|
||||
#include <QLineEdit>
|
||||
|
||||
class AbstractClient;
|
||||
class UserList;
|
||||
|
|
@ -30,12 +31,17 @@ private slots:
|
|||
void ignoreListReceived(const QList<ServerInfo_User> &_ignoreList);
|
||||
void processAddToListEvent(const Event_AddToList &event);
|
||||
void processRemoveFromListEvent(const Event_RemoveFromList &event);
|
||||
void addToIgnoreList();
|
||||
void addToBuddyList();
|
||||
private:
|
||||
AbstractClient *client;
|
||||
UserList *allUsersList;
|
||||
UserList *buddyList;
|
||||
UserList *ignoreList;
|
||||
UserInfoBox *userInfoBox;
|
||||
QLineEdit *addBuddyEdit;
|
||||
QLineEdit *addIgnoreEdit;
|
||||
void addToList(const std::string &listName, const QString &userName);
|
||||
public:
|
||||
TabUserLists(TabSupervisor *_tabSupervisor, AbstractClient *_client, const ServerInfo_User &userInfo, QWidget *parent = 0);
|
||||
void retranslateUi();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue