Changeset 6180 for trunk/qt4-gui/src/userevents
- Timestamp:
- 05/05/08 05:45:14 (7 months ago)
- Location:
- trunk/qt4-gui/src/userevents
- Files:
-
- 3 modified
-
usersendchatevent.cpp (modified) (1 diff)
-
usersendcommon.cpp (modified) (6 diffs)
-
usersendfileevent.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt4-gui/src/userevents/usersendchatevent.cpp
r6108 r6180 105 105 else 106 106 { 107 CEventChat* c = dynamic_cast<CEventChat*>(e->UserEvent());107 const CEventChat* c = dynamic_cast<const CEventChat*>(e->UserEvent()); 108 108 if (c->Port() == 0) // If we requested a join, no need to do anything 109 109 { -
trunk/qt4-gui/src/userevents/usersendcommon.cpp
r6174 r6180 769 769 gUserManager.DropUser(u); 770 770 } 771 CEventMsg* ue = dynamic_cast<CEventMsg*>(e->UserEvent());771 const CEventMsg* ue = dynamic_cast<const CEventMsg*>(e->UserEvent()); 772 772 // create initial strings (implicit copying, no allocation impact :) 773 773 char* tmp = gTranslator.NToRN(ue->Message()); … … 839 839 case ICQ_CMDxSUB_URL: 840 840 { 841 CEventUrl* ue = dynamic_cast<CEventUrl*>(e->UserEvent());841 const CEventUrl* ue = dynamic_cast<const CEventUrl*>(e->UserEvent()); 842 842 843 843 icqEventTag = gLicqDaemon->ProtoSendUrl(myUsers.front().c_str(), myPpid, ue->Url(), … … 849 849 case ICQ_CMDxSUB_CONTACTxLIST: 850 850 { 851 CEventContactList* ue = dynamic_cast<CEventContactList*>(e->UserEvent());851 const CEventContactList* ue = dynamic_cast<const CEventContactList*>(e->UserEvent()); 852 852 const ContactList& clist = ue->Contacts(); 853 853 UinList uins; … … 867 867 case ICQ_CMDxSUB_CHAT: 868 868 { 869 CEventChat* ue = dynamic_cast<CEventChat*>(e->UserEvent());869 const CEventChat* ue = dynamic_cast<const CEventChat*>(e->UserEvent()); 870 870 871 871 if (ue->Clients() == NULL) … … 883 883 case ICQ_CMDxSUB_FILE: 884 884 { 885 CEventFile* ue = dynamic_cast<CEventFile*>(e->UserEvent());885 const CEventFile* ue = dynamic_cast<const CEventFile*>(e->UserEvent()); 886 886 ConstFileList filelist(ue->FileList()); 887 887 … … 895 895 case ICQ_CMDxSUB_SMS: 896 896 { 897 CEventSms* ue = dynamic_cast<CEventSms*>(e->UserEvent());897 const CEventSms* ue = dynamic_cast<const CEventSms*>(e->UserEvent()); 898 898 899 899 //TODO in the daemon -
trunk/qt4-gui/src/userevents/usersendfileevent.cpp
r6108 r6180 139 139 else 140 140 { 141 CEventFile* f = dynamic_cast<CEventFile*>(e->UserEvent());141 const CEventFile* f = dynamic_cast<const CEventFile*>(e->UserEvent()); 142 142 FileDlg* fileDlg = new FileDlg(myUsers.front().c_str(), myPpid); 143 143 fileDlg->SendFiles(f->FileList(), e->ExtendedAck()->Port());
