Changeset 6430 for trunk/qt-gui
- Timestamp:
- 07/06/08 20:30:57 (5 months ago)
- Location:
- trunk/qt-gui/src
- Files:
-
- 4 modified
-
mainwin.cpp (modified) (3 diffs)
-
mmsenddlg.cpp (modified) (2 diffs)
-
mmsenddlg.h (modified) (2 diffs)
-
usereventdlg.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt-gui/src/mainwin.cpp
r6391 r6430 22 22 #include "config.h" 23 23 #endif 24 25 #include <cctype> 26 #include <cstdio> 27 #include <cstring> 28 #include <list> 29 #include <map> 24 30 25 31 #ifdef USE_KDE … … 136 142 } 137 143 138 #include <map> 139 #include <cctype> 140 141 using std::isdigit; 144 using namespace std; 142 145 143 146 #undef Bool … … 4810 4813 } 4811 4814 4812 UserStringList users; 4813 std::list<unsigned long> ppids; 4815 list<pair<QString, unsigned long> > users; 4814 4816 FOR_EACH_USER_START(LOCK_R) 4815 4817 { 4816 4818 if (pUser->NewMessages() > 0) 4817 { 4818 users.push_back(pUser->IdString()); 4819 ppids.push_back(pUser->PPID()); 4820 } 4819 users.push_back(pair<QString, unsigned long>(pUser->IdString(), pUser->PPID())); 4821 4820 } 4822 4821 FOR_EACH_USER_END 4823 4822 4824 for (UserStringList::iterator iter = users.begin(); iter != users.end(); iter++) 4825 { 4826 callDefaultFunction(*iter, ppids.front()); 4827 ppids.pop_front(); 4828 } 4823 list<pair<QString, unsigned long> >::iterator iter; 4824 for (iter = users.begin(); iter != users.end(); iter++) 4825 callDefaultFunction(iter->first, iter->second); 4829 4826 } 4830 4827 -
trunk/qt-gui/src/mmsenddlg.cpp
r5328 r6430 104 104 105 105 106 int CMMSendDlg::go_contact( UserStringList &_users)106 int CMMSendDlg::go_contact(StringList& users) 107 107 { 108 108 m_nEventType = ICQ_CMDxSUB_CONTACTxLIST; 109 users = &_users;109 myUsers = &users; 110 110 111 111 setCaption(tr("Multiple Recipient Contact List")); … … 257 257 gUserManager.DropUser(u); 258 258 259 icqEventTag = server->icqSendContactList(m_szId, * users, false,259 icqEventTag = server->icqSendContactList(m_szId, *myUsers, false, 260 260 ICQ_TCPxMSG_NORMAL); 261 261 break; -
trunk/qt-gui/src/mmsenddlg.h
r5328 r6430 29 29 30 30 #include "licqdialog.h" 31 #include "licq_ user.h"31 #include "licq_icqd.h" 32 32 33 33 class QPushButton; … … 51 51 int go_message(QString); 52 52 int go_url(QString, QString); 53 int go_contact( UserStringList &_users);53 int go_contact(StringList& users); 54 54 55 55 protected: 56 56 QString s1, s2; 57 UserStringList *users;57 StringList* myUsers; 58 58 59 59 unsigned long m_nEventType; -
trunk/qt-gui/src/usereventdlg.cpp
r6406 r6430 2545 2545 CEventContactList* ue = (CEventContactList *) e->UserEvent(); 2546 2546 const ContactList& clist = ue->Contacts(); 2547 UserStringList users;2547 StringList users; 2548 2548 2549 2549 // ContactList is const but string list holds "char*" so we have to copy each string 2550 2550 for(ContactList::const_iterator i = clist.begin(); i != clist.end(); i++) 2551 users.push_back( strdup((*i)->IdString()));2551 users.push_back((*i)->IdString()); 2552 2552 2553 2553 if(users.size() == 0) … … 2556 2556 icqEventTag = server->icqSendContactList(m_lUsers.front().c_str(), 2557 2557 users, bOnline, nLevel, false, &icqColor); 2558 2559 // Free the strings in the list2560 for (UserStringList::iterator i = users.begin(); i != users.end(); ++i)2561 free(*i);2562 2558 2563 2559 break; … … 3394 3390 tmrSendTyping->stop(); 3395 3391 server->ProtoTypingNotification(m_lUsers.front().c_str(), m_nPPID, false, m_nConvoId); 3396 3392 3397 3393 CMMUserViewItem *i = static_cast<CMMUserViewItem*>(lstContacts->firstChild()); 3398 UserStringList users;3394 StringList users; 3399 3395 3400 3396 while (i)
