Changeset 2348 for trunk/rms

Show
Ignore:
Timestamp:
11/03/00 02:57:58 (8 years ago)
Author:
graham
Message:

Removed CICQEventTag class and just use event ids from the event. Much
much better this way.

Location:
trunk/rms/src
Files:
2 modified

Legend:

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

    r2210 r2348  
    381381  for (iter = tags.begin(); iter != tags.end(); iter++) 
    382382  { 
    383     if ( (*iter)->Equals(e) ) break; 
     383    if ( e->Equals(*iter) ) break; 
    384384  } 
    385385  if (iter == tags.end()) return false; 
    386386 
    387   CICQEventTag *tag = *iter; 
     387  unsigned long tag = *iter; 
    388388  tags.erase(iter); 
    389389 
     
    414414      break; 
    415415  } 
    416   fprintf(fs, "%d [%ld] Event %s.\n", nCode, tag->EventId(), szr); 
     416  fprintf(fs, "%d [%ld] Event %s.\n", nCode, tag, szr); 
    417417  fflush(fs); 
    418   delete tag; 
    419418 
    420419  return true; 
     
    642641  bool b = o->StatusOffline(); 
    643642  gUserManager.DropOwner(); 
    644   CICQEventTag *tag = NULL; 
     643  unsigned long tag = 0; 
    645644  if (b) 
    646645  { 
    647646    tag = licqDaemon->icqLogon(nStatus); 
    648     fprintf(fs, "%d [%ld] Logging on.\n", CODE_COMMANDxSTART, tag->EventId()); 
     647    fprintf(fs, "%d [%ld] Logging on.\n", CODE_COMMANDxSTART, tag); 
    649648  } 
    650649  else 
    651650  { 
    652651    tag = licqDaemon->icqSetStatus(nStatus); 
    653     fprintf(fs, "%d [%ld] Setting status.\n", CODE_COMMANDxSTART, tag->EventId()); 
     652    fprintf(fs, "%d [%ld] Setting status.\n", CODE_COMMANDxSTART, tag); 
    654653  } 
    655654  tags.push_back(tag); 
     
    827826int CRMSClient::Process_MESSAGE_text() 
    828827{ 
    829   CICQEventTag *tag = licqDaemon->icqSendMessage(m_nUin, m_szText, false, ICQ_TCPxMSG_NORMAL); 
     828  unsigned long tag = licqDaemon->icqSendMessage(m_nUin, m_szText, false, ICQ_TCPxMSG_NORMAL); 
    830829 
    831830  fprintf(fs, "%d [%ld] Sending message to %ld.\n", CODE_COMMANDxSTART, 
    832      tag->EventId(), m_nUin); 
     831     tag, m_nUin); 
    833832 
    834833  tags.push_back(tag); 
     
    894893int CRMSClient::Process_URL_text() 
    895894{ 
    896   CICQEventTag *tag = licqDaemon->icqSendUrl(m_nUin, m_szLine, m_szText, false, ICQ_TCPxMSG_NORMAL); 
     895  unsigned long tag = licqDaemon->icqSendUrl(m_nUin, m_szLine, m_szText, false, ICQ_TCPxMSG_NORMAL); 
    897896 
    898897  fprintf(fs, "%d [%ld] Sending URL to %ld.\n", CODE_COMMANDxSTART, 
    899      tag->EventId(), m_nUin); 
     898     tag, m_nUin); 
    900899 
    901900  tags.push_back(tag); 
  • trunk/rms/src/rms.h

    r1902 r2348  
    2121 
    2222typedef list<class CRMSClient *> ClientList; 
    23 typedef list<class CICQEventTag *> TagList; 
     23typedef list<unsigned long> TagList; 
    2424 
    2525class CLicqRMS