timeoutDialog

This commit is contained in:
doitux
2008-03-03 23:31:20 +00:00
parent 00d0e77528
commit c2313a20d6
9 changed files with 48 additions and 38 deletions
+7 -4
View File
@@ -16,6 +16,7 @@
#include <QtGui>
#include <QtCore>
#include <core/boost/timers.hpp>
#include "game_defs.h"
/**
@author Felix Hammer <f.hammer@web.de>
@@ -26,7 +27,7 @@ class timeoutMsgBoxImpl : public QMessageBox
{
Q_OBJECT
public:
timeoutMsgBoxImpl(QDialog*, int);
timeoutMsgBoxImpl(QMainWindow*);
~timeoutMsgBoxImpl();
@@ -34,15 +35,17 @@ public slots:
void startTimeout();
void timerRefresh();
void stopTimeout();
void setMySession ( Session* theValue ) { mySession = theValue; }
void setMySession ( boost::shared_ptr<Session> theValue ) { mySession = theValue; }
void setMsgID ( int theValue ) { msgID = theValue; }
private:
QTimer *timeOutTimer;
QPushButton *okButton;
Session *mySession;
int msgId;
boost::shared_ptr<Session> mySession;
int msgID;
boost::timers::portable::microsec_timer realTimer;
};