Changeset 6180 for trunk/console

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/console/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/console/src/console.cpp

    r6176 r6180  
    568568 * CLicqConsole::AddEventTag 
    569569 *-------------------------------------------------------------------------*/ 
    570 void CLicqConsole::AddEventTag(char *_szId, unsigned long _nPPID, unsigned long _nEventTag) 
     570void CLicqConsole::AddEventTag(const char* _szId, unsigned long _nPPID, unsigned long _nEventTag) 
    571571{ 
    572572  if (!_szId || !_nPPID || !_nEventTag) 
     
    811811      { 
    812812        ICQUser *u = NULL; 
    813         CUserEvent *ue = e->UserEvent(); 
     813        const CUserEvent* ue = e->UserEvent(); 
    814814        if (e->SubResult() == ICQ_TCPxACK_RETURN) 
    815815        { 
     
    828828        else if(e->SubCommand() == ICQ_CMDxSUB_FILE) 
    829829        { 
    830           CExtendedAck *ea = e->ExtendedAck(); 
     830          const CExtendedAck* ea = e->ExtendedAck(); 
    831831 
    832832          if( ea == NULL || ue == NULL) 
     
    848848            // For now don't check for a chat subcommand.. 
    849849            // Invoke a file transfer manager here 
    850             CEventFile *f = (CEventFile *)ue; 
     850            const CEventFile* f = dynamic_cast<const CEventFile *>(ue); 
    851851            CFileTransferManager *ftman = new CFileTransferManager(licqDaemon, 
    852852                                          e->Uin()); 
  • trunk/console/src/console.h

    r6176 r6180  
    113113  void SwitchToCon(unsigned short nCon); 
    114114  void CreateUserList(); 
    115   void AddEventTag(char *, unsigned long, unsigned long); 
     115  void AddEventTag(const char* _szId, unsigned long _nPPID, 
     116      unsigned long _nEventTag); 
    116117 
    117118  void InputCommand(int cIn);