mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-05 21:13:55 -07:00
initial commit
This commit is contained in:
commit
a11f93df4d
99 changed files with 7493 additions and 0 deletions
32
cockatrice/src/dlg_games.h
Normal file
32
cockatrice/src/dlg_games.h
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue