// // C++ Interface: gamelobbydialogimpl // // Description: // // // Author: FThauer FHammer , (C) 2007 // // Copyright: See COPYING file that comes with this distribution // // #ifndef GAMELOBBYDIALOGIMPL_H #define GAMELOBBYDIALOGIMPL_H #include #include #include #include "createinternetgamedialogimpl.h" class Session; class ConfigFile; /** @author FThauer FHammer */ class gameLobbyDialogImpl: public QDialog, public Ui::gameLobbyDialog { Q_OBJECT public: gameLobbyDialogImpl(QWidget *parent = 0, ConfigFile* = 0); ~gameLobbyDialogImpl(); void exec(); void setSession(Session *session); public slots: void createGame(); void joinGame(); void gameSelected(QTreeWidgetItem*, int); void addGame(QString gameName); void removeGame(QString gameName); void setCurrentGameName ( const QString& theValue ) { currentGameName = theValue; } QString getCurrentGameName() const { return currentGameName; } private: ConfigFile *myConfig; Session *mySession; createInternetGameDialogImpl *myCreateInternetGameDialog; QString currentGameName; }; #endif