// // C++ Interface: opengametimeoutmsgboximpl // // Description: // // // Author: Felix Hammer , (C) 2008 // // Copyright: See COPYING file that comes with this distribution // // #ifndef TIMEOUTMSGBOXIMPL_H #define TIMEOUTMSGBOXIMPL_H #include #include #include #include #include "game_defs.h" /** @author Felix Hammer */ class Session; class timeoutMsgBoxImpl : public QMessageBox { Q_OBJECT public: timeoutMsgBoxImpl(QMainWindow*); ~timeoutMsgBoxImpl(); public slots: void startTimeout(); void timerRefresh(); void stopTimeout(); void setMySession ( boost::shared_ptr theValue ) { mySession = theValue; } void setMsgID ( NetTimeoutReason theValue ) { msgID = theValue; } void setTimeoutDuration ( int theValue ) { timeoutDuration = theValue; } private: QTimer *timeOutTimer; QPushButton *okButton; boost::shared_ptr mySession; NetTimeoutReason msgID; int timeoutDuration; boost::timers::portable::microsec_timer realTimer; }; #endif