timeoutDialog gets duration from server

This commit is contained in:
doitux
2008-03-03 23:43:51 +00:00
parent c2313a20d6
commit 99b3f6b147
6 changed files with 11 additions and 8 deletions
@@ -42,7 +42,7 @@ void timeoutMsgBoxImpl::startTimeout() {
void timeoutMsgBoxImpl::timerRefresh() {
int sec = 60;
int sec = timeoutDuration;
unsigned int realTimerValue = realTimer.elapsed().total_milliseconds();
sec -= realTimerValue/1000;
if (sec < 0) sec = 0;
+3 -1
View File
@@ -39,13 +39,15 @@ public slots:
void setMySession ( boost::shared_ptr<Session> theValue ) { mySession = theValue; }
void setMsgID ( int theValue ) { msgID = theValue; }
void setTimeoutDuration ( int theValue ) { timeoutDuration = theValue; }
private:
QTimer *timeOutTimer;
QPushButton *okButton;
boost::shared_ptr<Session> mySession;
int msgID;
int timeoutDuration;
boost::timers::portable::microsec_timer realTimer;
};