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

List:       kde-commits
Subject:    kdenetwork/kopete/protocols/msn
From:       Olivier Goffart <ogoffart () kde ! org>
Date:       2005-04-20 11:00:57
Message-ID: 20050420110057.889995FA () office ! kde ! org
[Download RAW message or body]

CVS commit by ogoffart: 

Set the photo property of the myself contact,  so there may be an image for myself


  M +9 -1      msnaccount.cpp   1.119


--- kdenetwork/kopete/protocols/msn/msnaccount.cpp  #1.118:1.119
@@ -1216,10 +1216,17 @@ void MSNAccount::resetPictureObject(bool
 
         if(!configGroup()->readBoolEntry("exportCustomPicture"))
+        {
                 m_pictureObj="";
+                myself()->removeProperty( \
Kopete::Global::Properties::self()->photo() ); +        }
         else
         {
-                QFile pictFile(locateLocal( "appdata", "msnpicture-"+ \
accountId().lower().replace(QRegExp("[./~]"),"-")  +".png"  ) ); +                \
QString fn=locateLocal( "appdata", "msnpicture-"+ \
accountId().lower().replace(QRegExp("[./~]"),"-")  +".png"  ); +                QFile \
pictFile( fn );  if(!pictFile.open(IO_ReadOnly))
+                {
                         m_pictureObj="";
+                        myself()->removeProperty( \
Kopete::Global::Properties::self()->photo() ); +                }
                 else
                 {
@@ -1230,4 +1237,5 @@ void MSNAccount::resetPictureObject(bool
                         QString all= \
"Creator"+accountId()+"Size"+size+"Type3Locationkopete.tmpFriendlyAAA=SHA1D"+ sha1d;  \
m_pictureObj="<msnobj Creator=\"" + accountId() + "\" Size=\"" + size  + "\" \
Type=\"3\" Location=\"kopete.tmp\" Friendly=\"AAA=\" SHA1D=\""+sha1d+"\" SHA1C=\""+ \
QString(KCodecs::base64Encode(SHA1::hashString(all.utf8())))  +"\"/>"; +              \
myself()->setProperty( Kopete::Global::Properties::self()->photo() ,  fn );  }
         }


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

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