Changes in preparation for the integration of the network server. GUI does not directly know Game and Hand any more, only Session. WARNING: This version crashes due to initialization order problems.

This commit is contained in:
lotodore
2007-05-11 12:01:13 +00:00
parent a37fe9969e
commit 7c6337d810
20 changed files with 441 additions and 323 deletions
+9 -16
View File
@@ -21,20 +21,19 @@
#define MAINWINDOWIMPL_H
#include "ui_mainwindow.h"
#include "game_defs.h"
#include <gamedata.h>
#include <iostream>
#include <string>
#include <boost/shared_ptr.hpp>
#include <QtGui>
#include <QtCore>
#include "handinterface.h"
#include "game_defs.h"
#include <gamedata.h>
class Session;
class Game;
class Log;
class ConfigFile;
class Session;
class BoardInterface;
// class HandInterface;
@@ -60,15 +59,11 @@ public:
void initGui(int speed);
void setGame(Game*);
void setHand(HandInterface*);
void setSession(Session*);
Session &getSession();
void setSession(boost::shared_ptr<Session> session);
void setLog(Log*);
void setActualHand(HandInterface* theValue) { actualHand = theValue;}
HandInterface* getActualHand() const { return actualHand;}
//refresh-Funktionen
void refreshSet();
void refreshButton();
@@ -203,9 +198,7 @@ public slots:
private:
Game *actualGame;
HandInterface *actualHand;
Session *mySession;
boost::shared_ptr<Session> mySession;
Log *myLog;
ConfigFile *myConfig;