timeoutDialog gets duration from server
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user