From: Sergey K. <se...@us...> - 2002-08-22 16:00:00
|
Update of /cvsroot/licq/licq/include In directory usw-pr-cvs1:/tmp/cvs-serv11169/licq/include Modified Files: licq_message.h Log Message: More complete SMS support: - Proper handling of send sms acks. - Processing incoming sms (not heavily tested). - Introduced simple xml tags parsing function GetXmlTag. - "Phone" and "Chars left" fields in SendSMS window. - Cellular phone number in sms stored in the history. Index: licq_message.h =================================================================== RCS file: /cvsroot/licq/licq/include/licq_message.h,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- licq_message.h 11 Aug 2002 00:51:54 -0000 1.10 +++ licq_message.h 22 Aug 2002 15:59:57 -0000 1.11 @@ -393,21 +393,23 @@ class CEventSms : public CUserEvent { public: - CEventSms(const char *_szMessage, unsigned short _nCommand, - time_t _tTime, unsigned long _nFlags); + CEventSms(const char *_szNumber, const char *_szMessage, + unsigned short _nCommand, time_t _tTime, unsigned long _nFlags); virtual ~CEventSms(); virtual CEventSms *Copy() - { - CEventSms *e = new CEventSms(m_szMessage, m_nCommand, m_tTime, m_nFlags); - e->CopyBase(this); - return e; - } + { + CEventSms *e = new CEventSms(m_szNumber, m_szMessage, m_nCommand, m_tTime, m_nFlags); + e->CopyBase(this); + return e; + } + const char *Number() { return m_szNumber; } const char *Message() { return m_szMessage; } virtual void AddToHistory(ICQUser *, direction); static CEventSms *Parse(char *sz, unsigned short nCmd, time_t nTime, unsigned long nFlags); protected: void CreateDescription(); + char *m_szNumber; char *m_szMessage; }; |