1 diff -Naru Keyring.orig/accountlist.cpp Keyring/accountlist.cpp
2 --- Keyring.orig/accountlist.cpp 2002-09-29 17:24:09.000000000 +0200
3 +++ Keyring/accountlist.cpp 2007-06-05 15:46:59.000000000 +0200
6 void AccountList::resetTimer(){
8 - mStartTime = time(NULL);
9 + mStartTime = (time_t*)time(NULL);
10 wLCD->display(mSeconds);
14 //if so and it has expired, lock keyring.
15 if(mTimerViewingAC && mTimerEnabled){
17 - if((time(NULL)-mStartTime) > mTimerStart){
18 + if((time(NULL)-(time_t)mStartTime) > mTimerStart){
21 //Timer needs to be updated
22 time_t diff=time(NULL)-viewtime;
23 mSeconds=mSeconds-diff;
24 - mStartTime = time(NULL)-(mTimerStart-mSeconds);
25 + mStartTime = (time_t*)time(NULL)-(mTimerStart-mSeconds);
26 mUpdateTimer->start(500,false);
27 wLCD->display(mSeconds);
31 mUpdateTimer->start(500,false);
32 - mStartTime = time(NULL)-(mTimerStart-mSeconds);
33 + mStartTime = (time_t*)time(NULL)-(mTimerStart-mSeconds);
39 mUpdateTimer->start(500,false);
41 - mStartTime = time(NULL);
42 + mStartTime = (time_t*)time(NULL);
45 //Let's be a bastard and bitch if the
47 void AccountList::updateCountDown(){
48 wLCD->display(mSeconds);
50 - (((time(NULL)-mStartTime) > mTimerStart) && mTimerPowerOff)){
51 + (((time(NULL)-(time_t)mStartTime) > mTimerStart) && mTimerPowerOff)){
55 - mSeconds=mTimerStart-(time(NULL)-mStartTime);
56 + mSeconds=mTimerStart-(time(NULL)-(time_t)mStartTime);
59 void AccountList::selectionChanged(QListViewItem *item){
61 //if so and it has expired, lock keyring.
62 if(mTimerViewingAC && mTimerEnabled){
64 - if((time(NULL)-mStartTime) > mTimerStart){
65 + if((time(NULL)-(time_t)mStartTime) > mTimerStart){
68 //Timer needs to be updated
69 - time_t diff=time(NULL)-viewtime;
70 + time_t diff = time(NULL)-(time_t)viewtime;
71 mSeconds=mSeconds-diff;
72 - mStartTime = time(NULL)-(mTimerStart-mSeconds);
73 + mStartTime = (time_t*)time(NULL)-(mTimerStart-mSeconds);
74 mUpdateTimer->start(500,false);
75 wLCD->display(mSeconds);
79 mUpdateTimer->start(500,false);
80 - mStartTime = time(NULL)-(mTimerStart-mSeconds);
81 + mStartTime = (time_t*)time(NULL)-(mTimerStart-mSeconds);
88 mUpdateTimer->start(500,false);
89 - mStartTime = time(NULL)-(mTimerStart-mSeconds);
90 + mStartTime = (time_t*)time(NULL)-(mTimerStart-mSeconds);