Changeset 6463 for trunk/qt4-gui/src/helpers
- Timestamp:
- 07/24/08 04:08:58 (4 months ago)
- Location:
- trunk/qt4-gui/src/helpers
- Files:
-
- 4 modified
-
licqstrings.cpp (modified) (2 diffs)
-
licqstrings.h (modified) (1 diff)
-
usercodec.cpp (modified) (2 diffs)
-
usercodec.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt4-gui/src/helpers/licqstrings.cpp
r5837 r6463 56 56 } 57 57 58 QString LicqStrings::getStatus( ICQUser* user, bool useInvisible)58 QString LicqStrings::getStatus(const ICQUser* user, bool useInvisible) 59 59 { 60 60 if (user == NULL) … … 93 93 } 94 94 95 QString LicqStrings::getShortStatus( ICQUser* user, bool useInvisible)95 QString LicqStrings::getShortStatus(const ICQUser* user, bool useInvisible) 96 96 { 97 97 if (user == NULL) -
trunk/qt4-gui/src/helpers/licqstrings.h
r6062 r6463 32 32 public: 33 33 static QString getStatus(unsigned short status, bool invisible); 34 static QString getStatus( ICQUser* user, bool useInvisible = true);34 static QString getStatus(const ICQUser* user, bool useInvisible = true); 35 35 36 36 static QString getShortStatus(unsigned short status, bool invisible); 37 static QString getShortStatus( ICQUser* user, bool useInvisible = true);37 static QString getShortStatus(const ICQUser* user, bool useInvisible = true); 38 38 39 39 static QString getSystemGroupName(unsigned long group); -
trunk/qt4-gui/src/helpers/usercodec.cpp
r6249 r6463 91 91 } 92 92 93 QTextCodec* UserCodec::codecForICQUser( ICQUser* u)93 QTextCodec* UserCodec::codecForICQUser(const ICQUser* u) 94 94 { 95 c har* preferred_encoding = u->UserEncoding();95 const char* preferred_encoding = u->UserEncoding(); 96 96 97 97 if (preferred_encoding && *preferred_encoding) … … 110 110 QTextCodec* codec = defaultEncoding(); 111 111 112 ICQUser* u = gUserManager.FetchUser(id.toLatin1(), ppid, LOCK_R);112 const ICQUser* u = gUserManager.FetchUser(id.toLatin1(), ppid, LOCK_R); 113 113 if (u != NULL) 114 114 { -
trunk/qt4-gui/src/helpers/usercodec.h
r5837 r6463 47 47 static QTextCodec* defaultEncoding(); 48 48 // Retrieves the codec for an ICQUser object 49 static QTextCodec* codecForICQUser( ICQUser* u);49 static QTextCodec* codecForICQUser(const ICQUser* u); 50 50 // Retrieves the codec for an CChatUser object 51 51 static QTextCodec* codecForCChatUser(CChatUser* u);
