2007-08-20 21:23:03 +00:00
|
|
|
//
|
|
|
|
|
// C++ Interface: gamelobbydialogimpl
|
|
|
|
|
//
|
|
|
|
|
// Description:
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// Author: FThauer FHammer <webmaster@pokerth.net>, (C) 2007
|
|
|
|
|
//
|
|
|
|
|
// Copyright: See COPYING file that comes with this distribution
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
#ifndef GAMELOBBYDIALOGIMPL_H
|
|
|
|
|
#define GAMELOBBYDIALOGIMPL_H
|
|
|
|
|
|
|
|
|
|
#include <ui_gamelobbydialog.h>
|
|
|
|
|
|
|
|
|
|
#include <QtGui>
|
|
|
|
|
#include <QtCore>
|
|
|
|
|
|
2007-08-21 23:31:09 +00:00
|
|
|
#include "createinternetgamedialogimpl.h"
|
|
|
|
|
|
2007-08-21 12:34:33 +00:00
|
|
|
class Session;
|
|
|
|
|
class ConfigFile;
|
|
|
|
|
|
2007-08-20 21:23:03 +00:00
|
|
|
/**
|
|
|
|
|
@author FThauer FHammer <webmaster@pokerth.net>
|
|
|
|
|
*/
|
|
|
|
|
class gameLobbyDialogImpl: public QDialog, public Ui::gameLobbyDialog {
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
2007-08-21 12:34:33 +00:00
|
|
|
gameLobbyDialogImpl(QWidget *parent = 0, ConfigFile* = 0);
|
|
|
|
|
|
|
|
|
|
~gameLobbyDialogImpl();
|
2007-08-20 21:23:03 +00:00
|
|
|
|
|
|
|
|
void exec();
|
|
|
|
|
|
2007-08-21 12:34:33 +00:00
|
|
|
void setSession(Session *session);
|
|
|
|
|
|
2007-08-20 21:23:03 +00:00
|
|
|
public slots:
|
|
|
|
|
|
2007-08-21 12:34:33 +00:00
|
|
|
void createGame();
|
|
|
|
|
void joinGame();
|
2007-08-20 21:23:03 +00:00
|
|
|
|
2007-08-21 17:27:13 +00:00
|
|
|
void gameSelected(QTreeWidgetItem*, int);
|
|
|
|
|
|
2007-08-21 12:34:33 +00:00
|
|
|
void addGame(QString gameName);
|
|
|
|
|
void removeGame(QString gameName);
|
|
|
|
|
|
2007-08-22 20:03:19 +00:00
|
|
|
void setCurrentGameName ( const QString& theValue ) { currentGameName = theValue; }
|
|
|
|
|
QString getCurrentGameName() const { return currentGameName; }
|
|
|
|
|
|
2007-08-27 09:57:51 +00:00
|
|
|
void clearGames();
|
|
|
|
|
|
2007-08-21 12:34:33 +00:00
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
ConfigFile *myConfig;
|
|
|
|
|
Session *mySession;
|
2007-08-21 23:31:09 +00:00
|
|
|
|
|
|
|
|
createInternetGameDialogImpl *myCreateInternetGameDialog;
|
2007-08-22 20:03:19 +00:00
|
|
|
|
|
|
|
|
QString currentGameName;
|
2007-08-20 21:23:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|