EventMessage Class Reference

#include <EventMessage.h>

List of all members.

Public Member Functions

void SetStatus (int i)
void SetReasonCode (int i)
void SetReasonString (const std::string &s)
void SetFileType (uint8_t t)
void SetFileSize (int t)
void SetFileName (const std::string &s)
void SetFilePath (const std::string &s)
void SetSearchID (int i)
int GetStatus ()
int GetReasonCode ()
std::string GetReasonString ()
uint8_t GetFileType ()
int GetFileSize ()
std::string GetFileName ()
std::string GetFilePath ()
int GetSearchID ()
void SetRelatedModule (uint8_t t)
uint8_t GetRelatedModule ()
virtual void serialize (std::string &sBuf) const
virtual int deserialize (const std::string &sBuf)

Private Attributes

int m_iStatus
int m_iReasonCode
int m_iReasonStringLen
std::string m_sReasonString
uint8_t m_8FileType
int m_iFileSize
int m_iFileNameLen
std::string m_sFileName
int m_iFilePathLen
std::string m_sFilePath
int m_iSearchID
uint8_t m_8RelatedModule


Detailed Description

An event message class. This class is used to send events in: a socket pair between main thread and the network thread. to communicate between policy component and the communication component. For serialization/deserialization, it inherits ISerializable class.


Member Function Documentation

int EventMessage::deserialize ( const std::string &  sBuf  )  [virtual]

Deserialize the message after receiving from the network.

std::string EventMessage::GetFileName (  )  [inline]

Gets the file name.

std::string EventMessage::GetFilePath (  )  [inline]

Gets the file path.

int EventMessage::GetFileSize (  )  [inline]

Gets the file size.

uint8_t EventMessage::GetFileType (  )  [inline]

Gets the file type.

int EventMessage::GetReasonCode (  )  [inline]

Gets the reason code of the message.

std::string EventMessage::GetReasonString (  )  [inline]

Gets the reason string of the message.

uint8_t EventMessage::GetRelatedModule (  )  [inline]

Gets the source module name.

int EventMessage::GetSearchID (  )  [inline]

Gets the search id. Only useful for KAD file transfer.

int EventMessage::GetStatus (  )  [inline]

Gets the status of the message.

void EventMessage::serialize ( std::string &  sBuf  )  const [virtual]

Serialize the message before sending in the network.

void EventMessage::SetFileName ( const std::string &  s  )  [inline]

Sets the File name.

void EventMessage::SetFilePath ( const std::string &  s  )  [inline]

Sets the File path.

void EventMessage::SetFileSize ( int  t  )  [inline]

Sets the File size.

void EventMessage::SetFileType ( uint8_t  t  )  [inline]

Sets the File type.

void EventMessage::SetReasonCode ( int  i  )  [inline]

Sets the reason of the message.

void EventMessage::SetReasonString ( const std::string &  s  )  [inline]

Sets the reason string of the message for human readibility.

void EventMessage::SetRelatedModule ( uint8_t  t  )  [inline]

Sets the source module name.

void EventMessage::SetSearchID ( int  i  )  [inline]

Sets the search id. Only required for KAD file transfer.

void EventMessage::SetStatus ( int  i  )  [inline]

Sets the status of the message.


The documentation for this class was generated from the following files:
Generated on Thu Sep 16 11:29:42 2010 for Policy Component by  doxygen 1.4.7