Cockatrice/cockatrice/src/dlg_games.h
Max-Wilhelm Bruker a11f93df4d initial commit
2009-03-13 22:50:41 +01:00

32 lines
598 B
C++

#ifndef DLG_GAMES_H
#define DLG_GAMES_H
#include <QDialog>
#include "gamesmodel.h"
#include "servergame.h"
#include "client.h"
class QPushButton;
class QTreeView;
class DlgGames : public QDialog {
Q_OBJECT
public:
DlgGames(Client *_client, QWidget *parent = 0);
private slots:
void actCreate();
void actRefresh();
void actJoin();
void gameListReceived(QList<ServerGame *> _gameList);
void checkResponse(ServerResponse *response);
private:
Client *client;
int msgid;
QTreeView *tableView;
GamesModel *tableModel;
QPushButton *refreshButton, *createButton, *joinButton;
};
#endif