#ifndef _ice_Mesg_h_ #define _ice_Mesg_h_ #include class MessageObject { private: int msgID; int priority; int expire; LPVOID htProp; char* sText; public: MessageObject(); MessageObject(MessageObject &peer); ~MessageObject(); MessageObject &operator=(MessageObject &peer); int getMessageID() { return msgID; } void setMessageID(int id) { msgID = id; } int getPriority() { return priority; } void setPriority(int pri) { priority = pri; } int getExpiration() { return expire; } void setExpiration(int exp) { expire = exp; } char* getText() { return sText; } void setText(char *str); // Properties BOOL isPropertyExist(char *name); void clearProperties(); BOOL propertyExists(char *name); // Enumeration getPropertyNames(); BOOL getBooleanProperty(char *name); BYTE getByteProperty(char *name); short getShortProperty(char *name); int getIntProperty(char *name); float getFloatProperty(char *name); double getDoubleProperty(char *name); char* getStringProperty(char *name); void setBooleanProperty(char *name, BOOL value); void setByteProperty(char *name, BYTE value); void setShortProperty(char *name, short value); void setIntProperty(char *name, int value); void setFloatProperty(char *name, float value); void setDoubleProperty(char *name, double value); void setStringProperty(char *name, char *value); LPVOID getProperty() { return htProp; } MessageObject* dup(); }; #endif // _ice_Mesg_h_