[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    groupwise_in_anger: kdenetwork/kopete/protocols/groupwise
From:       Will Stephenson <lists () stevello ! free-online ! co ! uk>
Date:       2004-09-04 22:27:11
Message-ID: 20040904222711.5B7701CC3 () office ! kde ! org
[Download RAW message or body]

CVS commit by wstephens: 

Set our status to idle when the auto-away timer fires, and to Away when we go away \
with setAwayAll.


  M +7 -1      gwaccount.cpp   1.1.1.1.2.36


--- kdenetwork/kopete/protocols/groupwise/gwaccount.cpp  #1.1.1.1.2.35:1.1.1.1.2.36
@@ -38,4 +38,5 @@
 
 #include <kopeteuiglobal.h>
+#include <kopeteaway.h>
 #include <kopeteawayaction.h>
 #include <kopetecontactlist.h>
@@ -183,5 +184,10 @@ void GroupWiseAccount::setAway( bool awa
 {
         if ( away )
-                setStatus( GroupWise::Away, reason);
+        {
+                if ( KopeteAway::getInstance()->idleTime() > 10 ) // don't go \
AwayIdle unless the user has actually been idle this long +                        \
setStatus( GroupWise::AwayIdle, QString::null ); +                else
+                        setStatus( GroupWise::Away, reason );
+        }
         else
                 setStatus( GroupWise::Available );


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic