Classified ads
|
Carrier-class for private msg inside classified ads. More...
#include <privmsg.h>
Public Member Functions | |
PrivMessage () | |
~PrivMessage () | |
QString | displayName () const |
QByteArray | asJSon (const MController &aController) const |
bool | fromJSon (const QByteArray &aJSonBytes, const MController &aController) |
Public Attributes | |
Hash | iFingerPrint |
QString | iSenderName |
Hash | iSenderHash |
quint32 | iTimeOfPublish |
QList< Hash > | iAttachedFiles |
QString | iSubject |
Hash | iReplyToMsg |
Hash | iReplyToCa |
QString | iMessageText |
QByteArray | iProfileKey |
Hash | iRecipient |
Node * | iNodeOfSender |
Carrier-class for private msg inside classified ads.
Instances of this class are stored and retrieved using PrivateMessageModel.
PrivMessage::PrivMessage | ( | ) |
constructor
PrivMessage::~PrivMessage | ( | ) |
destructor
QByteArray PrivMessage::asJSon | ( | const MController & | aController | ) | const |
returns msg data as JSon stream
QString PrivMessage::displayName | ( | ) | const |
method for string that is shown to user about the message.
bool PrivMessage::fromJSon | ( | const QByteArray & | aJSonBytes, |
const MController & | aController | ||
) |
parses json into members
QList<Hash> PrivMessage::iAttachedFiles |
file attachements ; they're published as normal binary blobs and then just listed here
Hash PrivMessage::iFingerPrint |
hash of the message text .. more specifically hash of the message when it is serialized into json
QString PrivMessage::iMessageText |
actual message here
Node* PrivMessage::iNodeOfSender |
When sending a reply, send it here
QByteArray PrivMessage::iProfileKey |
key of the message sender
Hash PrivMessage::iReplyToCa |
Possible reference to classified ad post that this is reply to
Hash PrivMessage::iReplyToMsg |
Possible reference to another private message that this is reply to
Hash PrivMessage::iSenderHash |
profile fingerprint of the sender
QString PrivMessage::iSenderName |
nickname/display-name of sender ; may empty if private profile
QString PrivMessage::iSubject |
Subject of the post
quint32 PrivMessage::iTimeOfPublish |
seconds since 1-jan-1970