- Timestamp:
- 07/25/08 04:15:48 (5 weeks ago)
- Location:
- trunk/qt4-gui/src
- Files:
-
- 18 modified
-
core/licqgui.cpp (modified) (6 diffs)
-
core/licqkimiface.cpp (modified) (1 diff)
-
core/mainwin.cpp (modified) (4 diffs)
-
core/systemmenu.cpp (modified) (4 diffs)
-
dialogs/awaymsgdlg.cpp (modified) (1 diff)
-
dialogs/editcategorydlg.cpp (modified) (1 diff)
-
dialogs/historydlg.cpp (modified) (1 diff)
-
dialogs/ownereditdlg.cpp (modified) (1 diff)
-
dialogs/phonedlg.cpp (modified) (2 diffs)
-
dialogs/randomchatdlg.cpp (modified) (1 diff)
-
dialogs/securitydlg.cpp (modified) (2 diffs)
-
dialogs/userinfodlg.cpp (modified) (2 diffs)
-
dialogs/userselectdlg.cpp (modified) (1 diff)
-
dockicons/dockicon.cpp (modified) (1 diff)
-
settings/events.cpp (modified) (1 diff)
-
userevents/usersendcommon.cpp (modified) (1 diff)
-
widgets/historyview.cpp (modified) (1 diff)
-
widgets/protocombobox.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt4-gui/src/core/licqgui.cpp
r6463 r6466 687 687 } 688 688 689 ICQOwner* o = gUserManager.FetchOwner(ppid, LOCK_R);689 const ICQOwner* o = gUserManager.FetchOwner(ppid, LOCK_R); 690 690 if (o == NULL) 691 691 return; … … 1165 1165 FOR_EACH_PROTO_PLUGIN_START(myLicqDaemon) 1166 1166 { 1167 ICQOwner* o = gUserManager.FetchOwner((*_ppit)->PPID(), LOCK_R);1167 const ICQOwner* o = gUserManager.FetchOwner((*_ppit)->PPID(), LOCK_R); 1168 1168 if (o == NULL) 1169 1169 continue; … … 1191 1191 FOR_EACH_PROTO_PLUGIN_START(myLicqDaemon) 1192 1192 { 1193 ICQOwner* o = gUserManager.FetchOwner((*_ppit)->PPID(), LOCK_R);1193 const ICQOwner* o = gUserManager.FetchOwner((*_ppit)->PPID(), LOCK_R); 1194 1194 if (o == NULL) 1195 1195 continue; … … 1273 1273 1274 1274 // Do system messages first 1275 ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R);1275 const ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 1276 1276 unsigned short numMsg = 0; 1277 1277 if (o != NULL) … … 1427 1427 unsigned short popCheck = 99; 1428 1428 1429 ICQOwner* o = gUserManager.FetchOwner(ppid, LOCK_R);1429 const ICQOwner* o = gUserManager.FetchOwner(ppid, LOCK_R); 1430 1430 if (o != NULL) 1431 1431 { … … 1651 1651 // Fetch current status 1652 1652 unsigned short status = ICQ_STATUS_OFFLINE; 1653 ICQOwner* o = gUserManager.FetchOwner(nPPID, LOCK_R);1653 const ICQOwner* o = gUserManager.FetchOwner(nPPID, LOCK_R); 1654 1654 if (o != NULL) 1655 1655 { -
trunk/qt4-gui/src/core/licqkimiface.cpp
r6463 r6466 95 95 QStringList LicqKIMIface::reachableContacts() 96 96 { 97 ICQOwner* owner = gUserManager.FetchOwner(LOCK_R);97 const ICQOwner* owner = gUserManager.FetchOwner(LOCK_R); 98 98 bool offline = owner->StatusOffline(); 99 99 gUserManager.DropOwner(); -
trunk/qt4-gui/src/core/mainwin.cpp
r6463 r6466 129 129 130 130 myCaption = "Licq"; 131 ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R);131 const ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 132 132 if (o != NULL) 133 133 { … … 615 615 616 616 myCaption = "Licq (|)"; 617 ICQOwner* o = gUserManager.FetchOwner(ppid, LOCK_R);617 const ICQOwner* o = gUserManager.FetchOwner(ppid, LOCK_R); 618 618 if (o != NULL) 619 619 { … … 817 817 IconManager* iconman = IconManager::instance(); 818 818 819 ICQOwner* o = gUserManager.FetchOwner(nPPID, LOCK_R);819 const ICQOwner* o = gUserManager.FetchOwner(nPPID, LOCK_R); 820 820 if (o != NULL) 821 821 { … … 908 908 { 909 909 //TODO iterate all owners that support fetching away message 910 ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R);910 const ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 911 911 912 912 if (o == NULL) -
trunk/qt4-gui/src/core/systemmenu.cpp
r6374 r6466 374 374 void SystemMenu::aboutToShowFollowMeMenu() 375 375 { 376 ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R);376 const ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 377 377 if (o == NULL) 378 378 return; … … 654 654 void OwnerData::aboutToShowStatusMenu() 655 655 { 656 ICQOwner* o = gUserManager.FetchOwner(myPpid, LOCK_R);656 const ICQOwner* o = gUserManager.FetchOwner(myPpid, LOCK_R); 657 657 if (o == NULL) 658 658 return; … … 675 675 void OwnerData::viewInfo() 676 676 { 677 ICQOwner* o = gUserManager.FetchOwner(myPpid, LOCK_R);677 const ICQOwner* o = gUserManager.FetchOwner(myPpid, LOCK_R); 678 678 if (o == NULL) 679 679 return; … … 686 686 void OwnerData::viewHistory() 687 687 { 688 ICQOwner* o = gUserManager.FetchOwner(myPpid, LOCK_R);688 const ICQOwner* o = gUserManager.FetchOwner(myPpid, LOCK_R); 689 689 if (o == NULL) 690 690 return; -
trunk/qt4-gui/src/dialogs/awaymsgdlg.cpp
r6374 r6466 166 166 a->setData(999); 167 167 168 ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R);168 const ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 169 169 if (o == NULL) 170 170 return; -
trunk/qt4-gui/src/dialogs/editcategorydlg.cpp
r6374 r6466 125 125 void EditCategoryDlg::ok() 126 126 { 127 ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R);127 const ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 128 128 if (o != NULL) 129 129 { -
trunk/qt4-gui/src/dialogs/historydlg.cpp
r6463 r6466 236 236 gUserManager.DropUser(u); 237 237 238 ICQOwner* o = gUserManager.FetchOwner(myPpid, LOCK_R);238 const ICQOwner* o = gUserManager.FetchOwner(myPpid, LOCK_R); 239 239 if (o != NULL) 240 240 { -
trunk/qt4-gui/src/dialogs/ownereditdlg.cpp
r6374 r6466 91 91 if (ppid != 0) 92 92 { 93 ICQOwner* o = gUserManager.FetchOwner(ppid, LOCK_R);93 const ICQOwner* o = gUserManager.FetchOwner(ppid, LOCK_R); 94 94 if (o != NULL) 95 95 { -
trunk/qt4-gui/src/dialogs/phonedlg.cpp
r6374 r6466 53 53 setModal(true); 54 54 55 ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R);55 const ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 56 56 if (o == NULL) 57 57 { … … 236 236 } 237 237 238 ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R);238 const ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 239 239 if (o == NULL) 240 240 { -
trunk/qt4-gui/src/dialogs/randomchatdlg.cpp
r6374 r6466 181 181 myGroupsList->addItem(tr("Seeking Men")); 182 182 183 ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R);184 if (o == 0)183 const ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 184 if (o == NULL) 185 185 { 186 186 close(); -
trunk/qt4-gui/src/dialogs/securitydlg.cpp
r6374 r6466 51 51 setWindowTitle(title); 52 52 53 ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R);53 const ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 54 54 if (o == NULL) 55 55 { … … 99 99 void SecurityDlg::ok() 100 100 { 101 ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R);101 const ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 102 102 103 103 if (o == NULL) -
trunk/qt4-gui/src/dialogs/userinfodlg.cpp
r6463 r6466 1935 1935 #endif 1936 1936 1937 ICQOwner* o = gUserManager.FetchOwner(m_nPPID, LOCK_R);1937 const ICQOwner* o = gUserManager.FetchOwner(m_nPPID, LOCK_R); 1938 1938 if(o == NULL) return; 1939 1939 unsigned short status = o->Status(); … … 2029 2029 currentTab != PictureInfo) 2030 2030 { 2031 ICQOwner* o = gUserManager.FetchOwner(m_nPPID, LOCK_R);2031 const ICQOwner* o = gUserManager.FetchOwner(m_nPPID, LOCK_R); 2032 2032 if(o == NULL) return; 2033 2033 unsigned short status = o->Status(); -
trunk/qt4-gui/src/dialogs/userselectdlg.cpp
r6374 r6466 89 89 90 90 // For now, just have one owner 91 ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R);91 const ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 92 92 if (o == 0) 93 93 { -
trunk/qt4-gui/src/dockicons/dockicon.cpp
r6374 r6466 72 72 { 73 73 // First check for ICQ/AIM owner presence 74 ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R);74 const ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 75 75 76 76 // Take any existent one otherwise 77 77 if (o == NULL && gUserManager.NumOwners() != 0) 78 78 { 79 OwnerList* ol = gUserManager.LockOwnerList(LOCK_R);79 const OwnerList* ol = gUserManager.LockOwnerList(LOCK_R); 80 80 o = ol->front(); 81 81 o->Lock(LOCK_R); -
trunk/qt4-gui/src/settings/events.cpp
r6374 r6466 327 327 oem->Unlock(); 328 328 //TODO make general for all plugins 329 ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R);329 const ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 330 330 if (o != NULL) 331 331 { -
trunk/qt4-gui/src/userevents/usersendcommon.cpp
r6463 r6466 251 251 QTextCodec* myCodec = UserCodec::codecForICQUser(u); 252 252 QString contactName = QString::fromUtf8(u->GetAlias()); 253 ICQOwner* o = gUserManager.FetchOwner(myPpid, LOCK_R);253 const ICQOwner* o = gUserManager.FetchOwner(myPpid, LOCK_R); 254 254 QString ownerName; 255 255 if (o) -
trunk/qt4-gui/src/widgets/historyview.cpp
r6463 r6466 417 417 if (event->Direction() != D_RECEIVER) 418 418 { 419 ICQOwner* o = gUserManager.FetchOwner(myPpid, LOCK_R);419 const ICQOwner* o = gUserManager.FetchOwner(myPpid, LOCK_R); 420 420 if (o != NULL) 421 421 { -
trunk/qt4-gui/src/widgets/protocombobox.cpp
r6374 r6466 44 44 QString id; 45 45 unsigned long ppid; 46 ICQOwner* o;47 46 48 47 FOR_EACH_PROTO_PLUGIN_START(gLicqDaemon) 49 48 { 50 49 ppid = (*_ppit)->PPID(); 51 o = gUserManager.FetchOwner(ppid, LOCK_R);50 const ICQOwner* o = gUserManager.FetchOwner(ppid, LOCK_R); 52 51 if (o == NULL) 53 52 id = "0";
