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

List:       kde-commits
Subject:    kdenetwork/kopete/protocols/yahoo
From:       Matt Rogers <mattr () kde ! org>
Date:       2005-01-02 4:16:27
Message-ID: 20050102041627.DB8EF1BEFB () office ! kde ! org
[Download RAW message or body]

CVS commit by mattr: 

a better implementation of sync


  M +8 -3      yahoocontact.cpp   1.79
  M +1 -1      yahoocontact.h   1.46


--- kdenetwork/kopete/protocols/yahoo/yahoocontact.cpp  #1.78:1.79
@@ -82,5 +82,5 @@ void YahooContact::syncToServer()
 }
 
-void YahooContact::sync(unsigned int)
+void YahooContact::sync(unsigned int flags)
 {
         if ( !m_account->isConnected() )
@@ -98,7 +98,11 @@ void YahooContact::sync(unsigned int)
         {
                 QString newGroup = metaContact()->groups().first()->displayName();
+                if ( flags == Kopete::Contact::DisplayNameChanged)
+                {
+                        kdDebug(14180) << k_funcinfo << "contact changed groups. \
                moving on server" << endl;
                 m_account->yahooSession()->changeBuddyGroup( contactId(), \
m_groupName, newGroup );  m_groupName = newGroup;
         }
+        }
 }
 
@@ -201,3 +205,4 @@ void YahooContact::deleteContact()
 
 // vim: set noet ts=4 sts=4 sw=4:
+//kate: space-indent off; replace-tabs off; indent-mode csands;
 

--- kdenetwork/kopete/protocols/yahoo/yahoocontact.h  #1.45:1.46
@@ -63,5 +63,5 @@ public slots:
         void syncToServer();
 
-        void sync(unsigned int);
+        void sync(unsigned int flags);
 
 private slots:


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

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