removed: Done class (core/done.h, core/done.cpp)
removed: from Session: done, done_status, timers git-svn-id: svn://ttmath.org/publicrep/winix/trunk@594 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2008-2009, Tomasz Sowa
|
||||
* Copyright (c) 2008-2010, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
@@ -31,10 +31,6 @@ void Session::Clear()
|
||||
id = 0;
|
||||
time = 0;
|
||||
puser = 0;
|
||||
done = Done::none;
|
||||
done_status = WINIX_ERR_OK;
|
||||
item.Clear();
|
||||
done_timer = 0;
|
||||
rebus_item = 0;
|
||||
rebus_checked = false;
|
||||
remember_me = false;
|
||||
@@ -56,58 +52,3 @@ bool Session::operator<(const Session & s) const
|
||||
return id < s.id;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
bool Session::DecTimer(int & timer)
|
||||
{
|
||||
if( timer == 0 )
|
||||
return false;
|
||||
|
||||
--timer;
|
||||
|
||||
if( timer == 0 )
|
||||
return true; // we must clear our variables
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void Session::CheckTimers()
|
||||
{
|
||||
if( DecTimer(done_timer) )
|
||||
{
|
||||
done = Done::none;
|
||||
done_status = WINIX_ERR_OK;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
void Session::DecTimer(int & timer)
|
||||
{
|
||||
if( timer == 0 )
|
||||
return;
|
||||
|
||||
--timer;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void Session::CheckTimers()
|
||||
{
|
||||
DecTimer(done_timer);
|
||||
|
||||
if( done_timer == 0 )
|
||||
{
|
||||
done = Done::none;
|
||||
done_status = WINIX_ERR_OK;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void Session::IncrementTimersIfExist()
|
||||
{
|
||||
if( done_timer != 0 )
|
||||
++done_timer;
|
||||
}
|
||||
|
Reference in New Issue
Block a user