Changeset 6463 for trunk/qt4-gui/src/dialogs
- Timestamp:
- 07/24/08 04:08:58 (4 months ago)
- Location:
- trunk/qt4-gui/src/dialogs
- Files:
-
- 15 modified
-
adduserdlg.cpp (modified) (2 diffs)
-
authuserdlg.cpp (modified) (1 diff)
-
customautorespdlg.cpp (modified) (1 diff)
-
forwarddlg.cpp (modified) (1 diff)
-
gpgkeymanager.cpp (modified) (4 diffs)
-
gpgkeymanager.h (modified) (2 diffs)
-
gpgkeyselect.cpp (modified) (3 diffs)
-
gpgkeyselect.h (modified) (1 diff)
-
historydlg.cpp (modified) (2 diffs)
-
keyrequestdlg.cpp (modified) (1 diff)
-
mmsenddlg.cpp (modified) (3 diffs)
-
refusedlg.cpp (modified) (1 diff)
-
showawaymsgdlg.cpp (modified) (2 diffs)
-
userinfodlg.cpp (modified) (17 diffs)
-
userinfodlg.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt4-gui/src/dialogs/adduserdlg.cpp
r6315 r6463 99 99 if (!id.isEmpty()) 100 100 { 101 ICQUser* u = gUserManager.FetchUser(id, ppid, LOCK_R);101 const ICQUser* u = gUserManager.FetchUser(id, ppid, LOCK_R); 102 102 103 103 if (u == NULL) … … 105 105 else 106 106 { 107 if (u->NotInList()) 107 bool notInList = u->NotInList(); 108 gUserManager.DropUser(u); 109 110 if (notInList) 108 111 { 109 u->Unlock();110 112 gUserManager.SetUserInGroup(id, ppid, GROUPS_USER, group, true, true); 111 u->Lock(LOCK_W); 112 u->SetPermanent(); 113 ICQUser* user = gUserManager.FetchUser(id, ppid, LOCK_W); 114 user->SetPermanent(); 115 gUserManager.DropUser(user); 113 116 added = true; 114 117 } 115 gUserManager.DropUser(u);116 118 } 117 119 } -
trunk/qt4-gui/src/dialogs/authuserdlg.cpp
r6352 r6463 70 70 toplay->addWidget(lblUin); 71 71 QString userName = myId; 72 ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), myPpid, LOCK_R);72 const ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), myPpid, LOCK_R); 73 73 if (u != NULL) 74 74 { -
trunk/qt4-gui/src/dialogs/customautorespdlg.cpp
r6124 r6463 73 73 lay->addWidget(buttons); 74 74 75 ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), myPpid, LOCK_R);75 const ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), myPpid, LOCK_R); 76 76 77 77 if (u == NULL) -
trunk/qt4-gui/src/dialogs/forwarddlg.cpp
r6352 r6463 164 164 m_nPPID = nPPID; 165 165 166 ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), m_nPPID, LOCK_R);166 const ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), m_nPPID, LOCK_R); 167 167 if (u == NULL) 168 168 return; -
trunk/qt4-gui/src/dialogs/gpgkeymanager.cpp
r6352 r6463 193 193 if (!found) 194 194 { 195 ICQUser* u = gUserManager.FetchUser(id.toLatin1(), ppid, LOCK_R);195 const ICQUser* u = gUserManager.FetchUser(id.toLatin1(), ppid, LOCK_R); 196 196 if (u == NULL) 197 197 return; … … 266 266 267 267 // KEYLISTITEM 268 KeyListItem::KeyListItem(QTreeWidget* parent, ICQUser* u)268 KeyListItem::KeyListItem(QTreeWidget* parent, const ICQUser* u) 269 269 : QTreeWidgetItem(parent), 270 270 szId(u->IdString()), … … 275 275 } 276 276 277 void KeyListItem::updateText( ICQUser* u)277 void KeyListItem::updateText(const ICQUser* u) 278 278 { 279 279 setText(0, QString::fromUtf8(u->GetAlias())); … … 293 293 void KeyListItem::slot_done() 294 294 { 295 ICQUser* u = gUserManager.FetchUser(szId.toLatin1(), nPPID, LOCK_R);295 const ICQUser* u = gUserManager.FetchUser(szId.toLatin1(), nPPID, LOCK_R); 296 296 keySelect = NULL; 297 297 -
trunk/qt4-gui/src/dialogs/gpgkeymanager.h
r6219 r6463 71 71 72 72 public: 73 KeyListItem(QTreeWidget* parent, ICQUser* u);73 KeyListItem(QTreeWidget* parent, const ICQUser* u); 74 74 75 75 void edit(); … … 83 83 unsigned long nPPID; 84 84 GPGKeySelect* keySelect; 85 void updateText( ICQUser* u);85 void updateText(const ICQUser* u); 86 86 87 87 private slots: -
trunk/qt4-gui/src/dialogs/gpgkeyselect.cpp
r5837 r6463 56 56 Support::setWidgetProps(this, "GPGKeySelectDialog"); 57 57 58 ICQUser* u = gUserManager.FetchUser(szId.toLatin1(), nPPID, LOCK_R);58 const ICQUser* u = gUserManager.FetchUser(szId.toLatin1(), nPPID, LOCK_R); 59 59 if (u == NULL) 60 60 return; … … 224 224 } 225 225 226 void KeyView::testViewItem(QTreeWidgetItem* item, ICQUser* u)226 void KeyView::testViewItem(QTreeWidgetItem* item, const ICQUser* u) 227 227 { 228 228 int val = 0; … … 253 253 gpgme_new(&mCtx); 254 254 255 ICQUser* u = gUserManager.FetchUser(szId.toLatin1(), nPPID, LOCK_R);255 const ICQUser* u = gUserManager.FetchUser(szId.toLatin1(), nPPID, LOCK_R); 256 256 maxItemVal = -1; 257 257 maxItem = NULL; -
trunk/qt4-gui/src/dialogs/gpgkeyselect.h
r5837 r6463 42 42 QString szId; 43 43 unsigned long nPPID; 44 void testViewItem(QTreeWidgetItem* item, ICQUser* u);44 void testViewItem(QTreeWidgetItem* item, const ICQUser* u); 45 45 int maxItemVal; 46 46 QTreeWidgetItem* maxItem; -
trunk/qt4-gui/src/dialogs/historydlg.cpp
r6448 r6463 161 161 show(); 162 162 163 ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), myPpid, LOCK_R);163 const ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), myPpid, LOCK_R); 164 164 165 165 QString name = tr("INVALID USER"); … … 277 277 if (signal->SubSignal() == USER_EVENTS) 278 278 { 279 ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), myPpid, LOCK_R);279 const ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), myPpid, LOCK_R); 280 280 if (u == NULL) 281 281 return; -
trunk/qt4-gui/src/dialogs/keyrequestdlg.cpp
r6294 r6463 49 49 setAttribute(Qt::WA_DeleteOnClose, true); 50 50 51 ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), myPpid, LOCK_R);51 const ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), myPpid, LOCK_R); 52 52 setWindowTitle(tr("Licq - Secure Channel with %1") 53 53 .arg(QString::fromUtf8(u->GetAlias()))); -
trunk/qt4-gui/src/dialogs/mmsenddlg.cpp
r6430 r6463 168 168 case ICQ_CMDxSUB_MSG: 169 169 { 170 ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), m_nPPID, LOCK_R);170 const ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), m_nPPID, LOCK_R); 171 171 if (u == NULL) return; 172 172 QTextCodec* codec = UserCodec::codecForICQUser(u); … … 239 239 case ICQ_CMDxSUB_URL: 240 240 { 241 ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), m_nPPID, LOCK_R);241 const ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), m_nPPID, LOCK_R); 242 242 if (u == NULL) return; 243 243 grpSending->setTitle(tr("Sending mass URL to %1...").arg(QString::fromUtf8(u->GetAlias()))); … … 252 252 case ICQ_CMDxSUB_CONTACTxLIST: 253 253 { 254 ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), m_nPPID, LOCK_R);254 const ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), m_nPPID, LOCK_R); 255 255 if (u == NULL) return; 256 256 grpSending->setTitle(tr("Sending mass list to %1...").arg(QString::fromUtf8(u->GetAlias()))); -
trunk/qt4-gui/src/dialogs/refusedlg.cpp
r6133 r6463 45 45 QVBoxLayout* lay = new QVBoxLayout(this); 46 46 47 ICQUser* u = gUserManager.FetchUser(id.toLatin1(), ppid, LOCK_R);47 const ICQUser* u = gUserManager.FetchUser(id.toLatin1(), ppid, LOCK_R); 48 48 QLabel* lbl = new QLabel(tr("Refusal message for %1 with ").arg(t) + QString::fromUtf8(u->GetAlias()) + ":"); 49 49 lay->addWidget(lbl); -
trunk/qt4-gui/src/dialogs/showawaymsgdlg.cpp
r6352 r6463 81 81 lay->addWidget(buttons); 82 82 83 ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), myPpid, LOCK_R);83 const ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), myPpid, LOCK_R); 84 84 QTextCodec* codec = UserCodec::codecForICQUser(u); 85 85 chkShowAgain->setChecked(u->ShowAwayMsg()); … … 165 165 e->SNAC() == MAKESNAC(ICQ_SNACxFAM_LOCATION, ICQ_SNACxLOC_INFOxREQ))) 166 166 { 167 ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), myPpid, LOCK_R);167 const ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), myPpid, LOCK_R); 168 168 QTextCodec* codec = UserCodec::codecForICQUser(u); 169 169 const char* szAutoResp = -
trunk/qt4-gui/src/dialogs/userinfodlg.cpp
r6374 r6463 179 179 lay->addLayout(l); 180 180 181 ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), m_nPPID, LOCK_R);181 const ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), m_nPPID, LOCK_R); 182 182 if (u == NULL) 183 183 { … … 348 348 } 349 349 350 void UserInfoDlg::SetGeneralInfo( ICQUser* u)350 void UserInfoDlg::SetGeneralInfo(const ICQUser* u) 351 351 { 352 352 tabList[GeneralInfo].loaded = true; … … 587 587 } 588 588 589 void UserInfoDlg::SetMoreInfo( ICQUser* u)589 void UserInfoDlg::SetMoreInfo(const ICQUser* u) 590 590 { 591 591 tabList[MoreInfo].loaded = true; … … 848 848 } 849 849 850 void UserInfoDlg::SetMore2Info( ICQUser* u)851 { 852 ICQUserCategory* cat;850 void UserInfoDlg::SetMore2Info(const ICQUser* u) 851 { 852 const ICQUserCategory* cat; 853 853 bool drop = false; 854 854 int i; … … 896 896 } 897 897 898 void UserInfoDlg::UpdateMore2Info(QTextCodec* codec, ICQUserCategory* cat)898 void UserInfoDlg::UpdateMore2Info(QTextCodec* codec, const ICQUserCategory* cat) 899 899 { 900 900 QTreeWidgetItem* lvi = NULL; … … 1073 1073 } 1074 1074 1075 void UserInfoDlg::SetWorkInfo( ICQUser* u)1075 void UserInfoDlg::SetWorkInfo(const ICQUser* u) 1076 1076 { 1077 1077 tabList[WorkInfo].loaded = true; … … 1183 1183 } 1184 1184 1185 void UserInfoDlg::SetAbout( ICQUser* u)1185 void UserInfoDlg::SetAbout(const ICQUser* u) 1186 1186 { 1187 1187 tabList[AboutInfo].loaded = true; … … 1264 1264 } 1265 1265 1266 void UserInfoDlg::SetPhoneBook( ICQUser* u)1266 void UserInfoDlg::SetPhoneBook(const ICQUser* u) 1267 1267 { 1268 1268 tabList[PhoneInfo].loaded = true; … … 1444 1444 } 1445 1445 1446 void UserInfoDlg::SetPicture( ICQUser* u)1446 void UserInfoDlg::SetPicture(const ICQUser* u) 1447 1447 { 1448 1448 if (!m_bOwner || !tabList[PictureInfo].loaded) … … 1556 1556 } 1557 1557 1558 void UserInfoDlg::SetLastCountersInfo( ICQUser* u)1558 void UserInfoDlg::SetLastCountersInfo(const ICQUser* u) 1559 1559 { 1560 1560 tabList[LastCountersInfo].loaded = true; … … 1612 1612 } 1613 1613 1614 void UserInfoDlg::SetKABCInfo( ICQUser* u)1614 void UserInfoDlg::SetKABCInfo(const ICQUser* u) 1615 1615 { 1616 1616 #ifdef USE_KABC … … 1721 1721 } 1722 1722 1723 ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), m_nPPID, LOCK_R);1723 const ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), m_nPPID, LOCK_R); 1724 1724 if (u == NULL) 1725 1725 return; … … 1732 1732 void UserInfoDlg::PhoneBookUpdated(struct PhoneBookEntry pbe, int entryNum) 1733 1733 { 1734 ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), m_nPPID, LOCK_R);1734 const ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), m_nPPID, LOCK_R); 1735 1735 if (u == NULL) 1736 1736 return; … … 1776 1776 m_PhoneBook->SetActive(index - 1); 1777 1777 1778 ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), m_nPPID, LOCK_R);1778 const ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), m_nPPID, LOCK_R); 1779 1779 if (u == NULL) 1780 1780 return; … … 1971 1971 // save current status of "chkKeepAliasOnUpdate" 1972 1972 // and the alias 1973 ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), m_nPPID, LOCK_ R);1973 ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), m_nPPID, LOCK_W); 1974 1974 if (u == NULL) return; 1975 1975 u->SetEnableSave(false); … … 1997 1997 case PhoneInfo: 1998 1998 { 1999 ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), m_nPPID, LOCK_R);1999 const ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), m_nPPID, LOCK_R); 2000 2000 if (u == NULL) return; 2001 2001 bool bSendServer = (u->SocketDesc(ICQ_CHNxINFO) < 0); … … 2225 2225 if (m_nPPID != sig->PPID() || myId != sig->Id()) return; 2226 2226 2227 ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), m_nPPID, LOCK_R);2227 const ICQUser* u = gUserManager.FetchUser(myId.toLatin1(), m_nPPID, LOCK_R); 2228 2228 if (u == NULL) return; 2229 2229 -
trunk/qt4-gui/src/dialogs/userinfodlg.h
r6093 r6463 192 192 QString m_kabcID; 193 193 194 void SetGeneralInfo( ICQUser*);195 void SetMoreInfo( ICQUser*);196 void SetMore2Info( ICQUser*);197 void UpdateMore2Info(QTextCodec* , ICQUserCategory*);198 void SetWorkInfo( ICQUser*);199 void SetAbout( ICQUser*);200 void SetPhoneBook( ICQUser*);201 void UpdatePhoneBook(QTextCodec* );202 void SetPicture( ICQUser*);203 void SetLastCountersInfo( ICQUser*);204 void SetKABCInfo( ICQUser*);194 void SetGeneralInfo(const ICQUser* u); 195 void SetMoreInfo(const ICQUser* u); 196 void SetMore2Info(const ICQUser* u); 197 void UpdateMore2Info(QTextCodec* codec, const ICQUserCategory* cat); 198 void SetWorkInfo(const ICQUser* u); 199 void SetAbout(const ICQUser* u); 200 void SetPhoneBook(const ICQUser* u); 201 void UpdatePhoneBook(QTextCodec* u); 202 void SetPicture(const ICQUser* u); 203 void SetLastCountersInfo(const ICQUser* u); 204 void SetKABCInfo(const ICQUser* u); 205 205 void UpdateKABCInfo(); 206 206 void SaveGeneralInfo();
