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

List:       kde-commits
Subject:    KDE/kdenetwork/kopete/protocols/yahoo/libkyahoo
From:       Matt Rogers <mattr () kde ! org>
Date:       2010-01-16 5:00:51
Message-ID: 1263618051.614180.17026.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1075429 by mattr:

Download avatars from contacts when they come online.

This picks up changes in a Yahoo! contact's avatar if it's been changed
while the user is offline.

Patch by Michael Cole. Thanks!
CCMAIL: mcole@mycam-asia.tv

 M  +3 -1      picturenotifiertask.cpp  
 M  +1 -1      requestpicturetask.cpp  


--- trunk/KDE/kdenetwork/kopete/protocols/yahoo/libkyahoo/picturenotifiertask.cpp #1075428:1075429
@@ -118,7 +118,7 @@
 	kDebug(YAHOO_RAW_DEBUG) ;
 
 	QString	nick;		/* key = 4 */
-	int type;		/* key = 13: 1 = request, 2 = notification */
+	int type;		/* key = 13: 1 = request, 2 = notification, 0 = Just changed */
 	QString url;		/* key = 20 */
 	int checksum;		/* key = 192  */
 
@@ -131,6 +131,8 @@
 		emit pictureRequest( nick );
 	else if( type == 0 )
 		emit pictureInfoNotify( nick, KUrl( url ), checksum );
+	else if( type == 2 )
+		emit pictureInfoNotify( nick, KUrl( url ), checksum );
 }
 
 void PictureNotifierTask::parsePictureUploadResponse( YMSGTransfer *t )
--- trunk/KDE/kdenetwork/kopete/protocols/yahoo/libkyahoo/requestpicturetask.cpp #1075428:1075429
@@ -35,7 +35,7 @@
 {
 	YMSGTransfer *t = new YMSGTransfer(Yahoo::ServicePicture);
 	t->setId( client()->sessionID() );
-	t->setParam( 4, client()->userId().toLocal8Bit());
+	t->setParam( 1, client()->userId().toLocal8Bit());
 	t->setParam( 5, m_target.toLocal8Bit() );
 	t->setParam( 13, "1" );
 	send( t );
[prev in list] [next in list] [prev in thread] [next in thread] 

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