servatrice/cockatrice/src/userinfobox.h
Max-Wilhelm Bruker 7f7398de6a user details box
2011-01-10 20:37:34 +01:00

27 lines
No EOL
700 B
C++

#ifndef USERINFOBOX_H
#define USERINFOBOX_H
#include <QWidget>
class QLabel;
class ServerInfo_User;
class AbstractClient;
class ProtocolResponse;
class UserInfoBox : public QWidget {
Q_OBJECT
private:
AbstractClient *client;
bool fullInfo;
QLabel *avatarLabel, *nameLabel, *realNameLabel1, *realNameLabel2, *countryLabel1, *countryLabel2, *userLevelLabel1, *userLevelLabel2, *userLevelLabel3;
public:
UserInfoBox(AbstractClient *_client, bool fullInfo, QWidget *parent = 0, Qt::WindowFlags flags = 0);
void retranslateUi();
private slots:
void processResponse(ProtocolResponse *r);
public slots:
void updateInfo(ServerInfo_User *user);
void updateInfo(const QString &userName);
};
#endif