Show
Ignore:
Timestamp:
05/05/08 05:45:14 (7 months ago)
Author:
flynd
Message:

Added const declarations to event classes and fixed (hopefully) everything else that broke.

Location:
trunk/qt4-gui/src/userevents
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt4-gui/src/userevents/usersendchatevent.cpp

    r6108 r6180  
    105105  else 
    106106  { 
    107     CEventChat* c = dynamic_cast<CEventChat*>(e->UserEvent()); 
     107    const CEventChat* c = dynamic_cast<const CEventChat*>(e->UserEvent()); 
    108108    if (c->Port() == 0)  // If we requested a join, no need to do anything 
    109109    { 
  • trunk/qt4-gui/src/userevents/usersendcommon.cpp

    r6174 r6180  
    769769        gUserManager.DropUser(u); 
    770770      } 
    771       CEventMsg* ue = dynamic_cast<CEventMsg*>(e->UserEvent()); 
     771      const CEventMsg* ue = dynamic_cast<const CEventMsg*>(e->UserEvent()); 
    772772      // create initial strings (implicit copying, no allocation impact :) 
    773773      char* tmp = gTranslator.NToRN(ue->Message()); 
     
    839839    case ICQ_CMDxSUB_URL: 
    840840    { 
    841       CEventUrl* ue = dynamic_cast<CEventUrl*>(e->UserEvent()); 
     841      const CEventUrl* ue = dynamic_cast<const CEventUrl*>(e->UserEvent()); 
    842842 
    843843      icqEventTag = gLicqDaemon->ProtoSendUrl(myUsers.front().c_str(), myPpid, ue->Url(), 
     
    849849    case ICQ_CMDxSUB_CONTACTxLIST: 
    850850    { 
    851       CEventContactList* ue = dynamic_cast<CEventContactList*>(e->UserEvent()); 
     851      const CEventContactList* ue = dynamic_cast<const CEventContactList*>(e->UserEvent()); 
    852852      const ContactList& clist = ue->Contacts(); 
    853853      UinList uins; 
     
    867867    case ICQ_CMDxSUB_CHAT: 
    868868    { 
    869       CEventChat* ue = dynamic_cast<CEventChat*>(e->UserEvent()); 
     869      const CEventChat* ue = dynamic_cast<const CEventChat*>(e->UserEvent()); 
    870870 
    871871      if (ue->Clients() == NULL) 
     
    883883    case ICQ_CMDxSUB_FILE: 
    884884    { 
    885       CEventFile* ue = dynamic_cast<CEventFile*>(e->UserEvent()); 
     885      const CEventFile* ue = dynamic_cast<const CEventFile*>(e->UserEvent()); 
    886886      ConstFileList filelist(ue->FileList()); 
    887887 
     
    895895    case ICQ_CMDxSUB_SMS: 
    896896    { 
    897       CEventSms* ue = dynamic_cast<CEventSms*>(e->UserEvent()); 
     897      const CEventSms* ue = dynamic_cast<const CEventSms*>(e->UserEvent()); 
    898898 
    899899      //TODO in the daemon 
  • trunk/qt4-gui/src/userevents/usersendfileevent.cpp

    r6108 r6180  
    139139  else 
    140140  { 
    141     CEventFile* f = dynamic_cast<CEventFile*>(e->UserEvent()); 
     141    const CEventFile* f = dynamic_cast<const CEventFile*>(e->UserEvent()); 
    142142    FileDlg* fileDlg = new FileDlg(myUsers.front().c_str(), myPpid); 
    143143    fileDlg->SendFiles(f->FileList(), e->ExtendedAck()->Port());