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

List:       kde-commits
Subject:    kdenetwork/kopete/protocols/oscar
From:       Matt Rogers <mattr () kde ! org>
Date:       2005-04-02 22:46:59
Message-ID: 20050402224659.EADF8632 () office ! kde ! org
[Download RAW message or body]

CVS commit by mattr: 

Put away messages back in the account tooltips. Fixes 101705.

BUG: 101705


  M +5 -0      aim/aimaccount.cpp   1.57
  M +1 -0      icq/icqaccount.cpp   1.60


--- kdenetwork/kopete/protocols/oscar/aim/aimaccount.cpp  #1.56:1.57
@@ -184,8 +184,12 @@ void AIMAccount::setAway(bool away, cons
                 AIMMyselfContact* me = static_cast<AIMMyselfContact *> ( myself() );
                 me->setLastAwayMessage(awayReason);
+                me->setProperty( Kopete::Global::Properties::self()->awayMessage(), awayReason );
         }
         else
         {
                 engine()->setStatus( Client::Online );
+                AIMMyselfContact* me = static_cast<AIMMyselfContact *> ( myself() );
+                me->setLastAwayMessage(QString::null);
+                me->removeProperty( Kopete::Global::Properties::self()->awayMessage() );
         }
 }
@@ -213,4 +217,5 @@ void AIMAccount::slotGoOnline()
                 kdDebug(14152) << k_funcinfo << accountId() << " was away. welcome back." << endl;
                 engine()->setStatus( Client::Online );
+                myself()->removeProperty( Kopete::Global::Properties::self()->awayMessage() );
         }
         else if ( myself()->onlineStatus().status() == Kopete::OnlineStatus::Offline )

--- kdenetwork/kopete/protocols/oscar/icq/icqaccount.cpp  #1.59:1.60
@@ -260,4 +260,5 @@ void ICQAccount::setPresenceType( ICQ::P
         //setAwayMessage(awayMessage);
         setPresenceTarget( ICQ::Presence( type, pres.visibility() ) );
+        myself()->setProperty( Kopete::Global::Properties::self()->awayMessage(), message );
 }
 


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

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