[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE_3_2_BRANCH: kdenetwork/kopete/protocols/yahoo
From: Matt Rogers <matt.rogers () kdemail ! net>
Date: 2004-05-01 2:39:01
Message-ID: 20040501023901.045789A75 () office ! kde ! org
[Download RAW message or body]
CVS commit by mattr:
Backport the fix for beastie 79563. Should be in KDE 3.2.3
CCMAIL: 79563@bugs.kde.org
M +22 -0 yahoocontact.cpp 1.60.2.5
M +2 -0 yahoocontact.h 1.38.4.2
--- kdenetwork/kopete/protocols/yahoo/yahoocontact.cpp #1.60.2.4:1.60.2.5
@@ -108,4 +108,26 @@ void YahooContact::syncToServer()
}
+void YahooContact::syncGroups()
+{
+ if ( !m_account->isConnected() )
+ return;
+
+ if ( !m_account->isOnServer( contactId() ) )
+ {
+ //TODO: Share this code with the above function
+ kdDebug(14180) << k_funcinfo << "Contact isn't on the server. Adding..." << endl;
+ KopeteGroupList groupList = metaContact()->groups();
+ for ( KopeteGroup *g = groupList.first(); g; g = groupList.next() )
+ m_account->yahooSession()->addBuddy(m_userId, g->displayName() );
+ }
+ else
+ {
+ QString newGroup = metaContact()->groups().first()->displayName();
+ m_account->yahooSession()->changeBuddyGroup( contactId(), m_groupName, newGroup );
+ m_groupName = newGroup;
+ }
+}
+
+
bool YahooContact::isOnline() const
{
--- kdenetwork/kopete/protocols/yahoo/yahoocontact.h #1.38.4.1:1.38.4.2
@@ -71,4 +71,6 @@ public slots:
void syncToServer();
+ void syncGroups();
+
private slots:
void slotMessageManagerDestroyed();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic