Classified ads
Public Member Functions | Public Attributes | List of all members
PrivMessage Class Reference

Carrier-class for private msg inside classified ads. More...

#include <privmsg.h>

Collaboration diagram for PrivMessage:
Collaboration graph
[legend]

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< HashiAttachedFiles
 
QString iSubject
 
Hash iReplyToMsg
 
Hash iReplyToCa
 
QString iMessageText
 
QByteArray iProfileKey
 
Hash iRecipient
 
NodeiNodeOfSender
 

Detailed Description

Carrier-class for private msg inside classified ads.

Instances of this class are stored and retrieved using PrivateMessageModel.

Constructor & Destructor Documentation

PrivMessage::PrivMessage ( )

constructor

PrivMessage::~PrivMessage ( )

destructor

Member Function Documentation

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.

Returns
string to display to user
bool PrivMessage::fromJSon ( const QByteArray &  aJSonBytes,
const MController aController 
)

parses json into members

Member Data Documentation

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::iRecipient

Hash of the profile that will receive the msg

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


The documentation for this class was generated from the following file: