Changeset 6374 for trunk/qt4-gui/src/dialogs
- Timestamp:
- 07/01/08 06:31:24 (5 months ago)
- Location:
- trunk/qt4-gui/src/dialogs
- Files:
-
- 11 modified
-
awaymsgdlg.cpp (modified) (3 diffs)
-
editcategorydlg.cpp (modified) (1 diff)
-
historydlg.cpp (modified) (1 diff)
-
ownereditdlg.cpp (modified) (2 diffs)
-
ownermanagerdlg.cpp (modified) (2 diffs)
-
phonedlg.cpp (modified) (4 diffs)
-
randomchatdlg.cpp (modified) (1 diff)
-
registeruser.cpp (modified) (1 diff)
-
securitydlg.cpp (modified) (4 diffs)
-
userinfodlg.cpp (modified) (3 diffs)
-
userselectdlg.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt4-gui/src/dialogs/awaymsgdlg.cpp
r6352 r6374 166 166 a->setData(999); 167 167 168 ICQOwner* o = gUserManager.FetchOwner(L OCK_R);168 ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 169 169 if (o == NULL) 170 170 return; … … 182 182 "(%m messages pending from you).") 183 183 .arg(LicqStrings::getStatus(myStatus, false))); 184 gUserManager.DropOwner( );184 gUserManager.DropOwner(o); 185 185 186 186 myAwayMsg->setFocus(); … … 252 252 QString s = myAwayMsg->toPlainText().trimmed(); 253 253 254 ICQOwner* o = gUserManager.FetchOwner(L OCK_W);254 ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_W); 255 255 if (o != NULL) 256 256 { 257 257 QTextCodec* codec = UserCodec::defaultEncoding(); 258 258 o->SetAutoResponse(codec->fromUnicode(s)); 259 gUserManager.DropOwner( );259 gUserManager.DropOwner(o); 260 260 } 261 261 -
trunk/qt4-gui/src/dialogs/editcategorydlg.cpp
r5837 r6374 125 125 void EditCategoryDlg::ok() 126 126 { 127 ICQOwner* o = gUserManager.FetchOwner(L OCK_R);127 ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 128 128 if (o != NULL) 129 129 { 130 130 QTextCodec* codec = UserCodec::codecForICQUser(o); 131 gUserManager.DropOwner( );131 gUserManager.DropOwner(o); 132 132 133 133 ICQUserCategory* cat = new ICQUserCategory(myUserCat); -
trunk/qt4-gui/src/dialogs/historydlg.cpp
r6186 r6374 239 239 { 240 240 myOwnerName = QString::fromUtf8(o->GetAlias()); 241 gUserManager.DropOwner( myPpid);241 gUserManager.DropOwner(o); 242 242 } 243 243 -
trunk/qt4-gui/src/dialogs/ownereditdlg.cpp
r6352 r6374 98 98 edtPassword->setText(o->Password()); 99 99 chkSave->setChecked(o->SavePassword()); 100 gUserManager.DropOwner( ppid);100 gUserManager.DropOwner(o); 101 101 } 102 102 … … 139 139 o->SetSavePassword(chkSave->isChecked()); 140 140 141 gUserManager.DropOwner( ppid);141 gUserManager.DropOwner(o); 142 142 gLicqDaemon->SaveConf(); 143 143 -
trunk/qt4-gui/src/dialogs/ownermanagerdlg.cpp
r6352 r6374 169 169 void OwnerManagerDlg::registerOwner() 170 170 { 171 if ( gUserManager.OwnerUin() != 0)171 if (!gUserManager.OwnerId(LICQ_PPID).empty()) 172 172 { 173 173 QString buf = tr("You are currently registered as\n" … … 176 176 "Rerun licq with the -b option to select a new\n" 177 177 "base directory and then register a new user.") 178 .arg(gUserManager.OwnerUin()).arg(BASE_DIR);178 .arg(gUserManager.OwnerId(LICQ_PPID).c_str()).arg(BASE_DIR); 179 179 InformUser(this, buf); 180 180 return; -
trunk/qt4-gui/src/dialogs/phonedlg.cpp
r5892 r6374 53 53 setModal(true); 54 54 55 ICQOwner* o = gUserManager.FetchOwner(L OCK_R);55 ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 56 56 if (o == NULL) 57 57 { … … 60 60 } 61 61 QTextCodec* codec = UserCodec::codecForICQUser(o); 62 gUserManager.DropOwner( );62 gUserManager.DropOwner(o); 63 63 64 64 m_nEntry = nEntry; … … 236 236 } 237 237 238 ICQOwner* o = gUserManager.FetchOwner(L OCK_R);238 ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 239 239 if (o == NULL) 240 240 { … … 243 243 } 244 244 QTextCodec* codec = UserCodec::codecForICQUser(o); 245 gUserManager.DropOwner( );245 gUserManager.DropOwner(o); 246 246 247 247 struct PhoneBookEntry pbe; -
trunk/qt4-gui/src/dialogs/randomchatdlg.cpp
r6099 r6374 203 203 myGroupsList->setCurrentRow(0); break; 204 204 } 205 gUserManager.DropOwner( );205 gUserManager.DropOwner(o); 206 206 207 207 show(); -
trunk/qt4-gui/src/dialogs/registeruser.cpp
r5837 r6374 234 234 { 235 235 o->SetSavePassword(mySavePassword->isChecked()); 236 gUserManager.DropOwner( ppid);236 gUserManager.DropOwner(o); 237 237 gLicqDaemon->SaveConf(); 238 238 } -
trunk/qt4-gui/src/dialogs/securitydlg.cpp
r6352 r6374 80 80 #undef ADD_CHECK 81 81 82 gUserManager.DropOwner( );82 gUserManager.DropOwner(o); 83 83 84 84 top_lay->addWidget(boxOptions); … … 111 111 if (o->Status() == ICQ_STATUS_OFFLINE) 112 112 { 113 gUserManager.DropOwner( LICQ_PPID);113 gUserManager.DropOwner(o); 114 114 InformUser(this, tr("You need to be connected to the\n" 115 115 "ICQ Network to change the settings.")); … … 125 125 ip != o->HideIp()) 126 126 { 127 gUserManager.DropOwner( LICQ_PPID);127 gUserManager.DropOwner(o); 128 128 btnUpdate->setEnabled(false); 129 129 … … 138 138 } 139 139 140 gUserManager.DropOwner( LICQ_PPID);140 gUserManager.DropOwner(o); 141 141 142 142 close(); -
trunk/qt4-gui/src/dialogs/userinfodlg.cpp
r6352 r6374 1511 1511 o->SetEnableSave(true); 1512 1512 o->SavePictureInfo(); 1513 gUserManager.DropOwner( );1513 gUserManager.DropOwner(o); 1514 1514 1515 1515 gLicqDaemon->icqUpdatePictureTimestamp(); … … 1939 1939 unsigned short status = o->Status(); 1940 1940 QTextCodec* codec = UserCodec::codecForICQUser(o); 1941 gUserManager.DropOwner( m_nPPID);1941 gUserManager.DropOwner(o); 1942 1942 1943 1943 if (m_bOwner && currentTab == PhoneInfo) … … 2033 2033 unsigned short status = o->Status(); 2034 2034 codec = UserCodec::codecForICQUser(o); 2035 gUserManager.DropOwner( m_nPPID);2035 gUserManager.DropOwner(o); 2036 2036 2037 2037 if(status == ICQ_STATUS_OFFLINE) { -
trunk/qt4-gui/src/dialogs/userselectdlg.cpp
r6352 r6374 89 89 90 90 // For now, just have one owner 91 ICQOwner* o = gUserManager.FetchOwner(L OCK_R);91 ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 92 92 if (o == 0) 93 93 { … … 97 97 cmbUser->addItem(QString("%1 (%2)").arg(o->GetAlias()).arg(o->IdString())); 98 98 edtPassword->setText(o->Password()); 99 gUserManager.DropOwner( );99 gUserManager.DropOwner(o); 100 100 101 101 // Wait for dialog to finish before returning to caller … … 109 109 void UserSelectDlg::slot_ok() 110 110 { 111 ICQOwner* o = gUserManager.FetchOwner(L OCK_W);111 ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_W); 112 112 if (o == 0) 113 113 { … … 117 117 o->SetSavePassword(chkSavePassword->isChecked()); 118 118 o->SetPassword(edtPassword->text().toLatin1()); 119 gUserManager.DropOwner( );119 gUserManager.DropOwner(o); 120 120 121 121 close();
