|
Public Member Functions |
| | Message () |
| | to create empty Message
|
| | Message (const JString &xml) |
| | to create from XML
|
| | Message (XMLNode *node) |
| | to create from XML node
|
| | Message (const Message &msg) |
| | to create from other message
|
| | Message (const JString &from, const JString &to, const JString &type) |
| | Create from values.
|
| | Message (const JString &from, const JString &to, const JString &type, const JString &content, const JString &language) |
| | Create from values with content and language.
|
| | Message (const JString &from, const JString &to, const JString &type, Object *obj) |
| | Create from values with object.
|
| | ~Message () |
| bool | init () |
| bool | unitTest () |
| Object * | clone () const |
| Message * | shallowClone () const |
| Message * | tinyClone () const |
| Message & | operator= (const Message &msg) |
| bool | equals (const Object *o2) const |
| int | compare (const Object *o2) const |
| bool | fromXML (XMLNode *xmlNode) |
| | Read XML node into this Message...
|
| bool | fromXML (const JString &xml) |
| | Read XML node into this Message...
|
| JString | toXML () |
| | Convert Message to XML...
|
| JString | toHTMLTable (const JString &tags="") |
| | Nicely formatted HTML without.
|
| JString | getHistoryHTML (const JString &urlformat) |
| | Nicely formatted HTML for History field
.
|
| JString | print () |
| | Nicely formatted text print.
|
| JString | printShort () |
| | One line text print.
|
| virtual unsigned long | getPayloadSize () const |
| | Get total size of payload.
|
| long | getBinarySize (int chunk) |
| | Get the size of binary data chunk, -1 for all chunks.
|
| int | getBinaryChunkCount () |
| | Get the number of data chunks.
|
| long | toBinaryBuffer (int chunk, char *buffer, int maxlen) |
| | Write binary data to buffer at chunk number 'chunk'.
|
| bool | fromBinaryBuffer (int chunk, char *buffer, long len) |
| | Set the data after separate reception.
|
| bool | set (const JString &name, const JString &value) |
| | Set a field in the Message.
|
| JString | get (const JString &name) |
| | Get a field in the Message.
|
| bool | setAux (const JString &name, const JString &value) |
| | Set an aux field in the Message.
|
| JString | getAux (const JString &name) |
| | Get an aux field in the Message.
|
| bool | setTime (const JString &name, const JTime &t) |
| | Set a JTime field in the Message.
|
| JTime | getTime (const JString &name) |
| | Get a JTime field in the Message.
|
| bool | addReferenceToHistory (Message *msg, const JString &author) |
| | Add a Message to the History field in the Message.
|
| bool | addReferenceToHistory (Reference *ref, const JString &author) |
| | Add a Reference to the History field in the Message.
|
| ObjectDictionary * | getAllHistory () |
| | Get the History collection in the Message.
|
| ObjectCollection * | getHistoryFromAuthor (const JString &author) |
| | Get the History collection in the Message from an Author.
|
| bool | deleteHistory () |
| | Delete all History.
|
| bool | setObject (Object *obj) |
| | Set the attached Object for the Message.
|
| Object * | getObject () |
| | Get the attached Object for the Message or NULL.
|
| JString | getObjectType () |
| | Get the attached Object type (Class name) for the Message.
|
| bool | deleteObject () |
| | Delete the attached Object; NB: Will destroy object.
|
| Object * | takeObject () |
| | Takes away the attached object.
|
| bool | doesTypeMatch (const JString &match) |
| | Compare type including star notation.
|
| JString | getID () |
| | Get a copy of ID.
|
| Reference * | getInReplyTo () |
| | Get a copy of in-reply-to.
|
| JString | getFrom () |
| | Get a copy of from.
|
| JString | getTo () |
| | Get a copy of to.
|
| JString | getCC () |
| | Get a copy of cc.
|
| JString | getType () |
| | Get a copy of type.
|
| JString | getContent () |
| | Get a copy of content.
|
| JString | getOrigin () |
| | Get a copy of origin.
|
| JString | getComment () |
| | Get the comment for the Message.
|
| double | getPriority () |
| | Get the Message priority.
|
| double | getTimeToLive () |
| | Get the Message priority.
|
| JString | getLanguage () |
| | Get Message language.
|
| JString | getStored () |
| | Get Message stored.
|
| JTime | getTimestamp () |
| | Get Message creation time.
|
| JTime | getPostedTime () |
| | Get Message posted time.
|
| JTime | getReceivedTime () |
| | Get Message received time.
|
| bool | setID (const JString &id) |
| | Set Message ID, autogenerated if not set.
|
| bool | setInReplyTo (Message *msg) |
| | Set in-reply-to.
|
| bool | setInReplyTo (Reference *ref) |
| bool | setFrom (const JString &frm) |
| | Set from.
|
| bool | setTo (const JString &t) |
| | Set to.
|
| bool | setCC (const JString &cc) |
| | Set cc.
|
| bool | setType (const JString &t) |
| | Set type.
|
| bool | setContent (const JString &cont, const JString &language) |
| | Set content and language.
|
| bool | setContentNoParse (const JString &cont, const JString &language) |
| | Set content and language without parsing XML.
|
| bool | setOrigin (const JString &orig) |
| | Set origin.
|
| bool | setComment (const JString &str) |
| | Set human readable comment field.
|
| bool | setPriority (double val) |
| | Set Message priority.
|
| bool | setTimeToLive (double val) |
| | Set Message timeToLive.
|
| bool | setLanguage (const JString &language) |
| | Set Message language.
|
| bool | setStored (const JString &stored) |
| | Set Message stored.
|
| bool | setTimestamp (const JTime &t) |
| | Set Message creation time.
|
| bool | setPostedTime (const JTime &t) |
| | Set Message posted time.
|
| bool | setReceivedTime (const JTime &t) |
| | Set Message received time.
|
Public Attributes |
| Dictionary * | auxDict |
| | Dictionary of generic text entries.
|
| ObjectDictionary * | timeDict |
| | Dictionary of Timestamps.
|
| ObjectDictionary * | history |
| | Other Messages in the past, id = timestamp.
|
| Object * | object |
| Collection * | htmlCol |
| | Which entries to print in HTML view.
|
| JString | from |
| JString | to |
| JString | type |
| JString | id |
| JString | cc |
| JString | origin |
| JString | comment |
| double | priority |
| double | timeToLive |
| JString | stored |
| Reference * | inReplyTo |
| JString | isResponse |
| JString | noreply |
| JTime | postedTime |
| JTime | receivedTime |
| JString | language |
| JString | content |
| ObjectCollection * | attachedMsgs |