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::PrivMessage ( )

constructor

◆ ~PrivMessage()

PrivMessage::~PrivMessage ( )

destructor

Member Function Documentation

◆ asJSon()

QByteArray PrivMessage::asJSon ( const MController aController) const

returns msg data as JSon stream

◆ displayName()

QString PrivMessage::displayName ( ) const

method for string that is shown to user about the message.

Returns
string to display to user

◆ fromJSon()

bool PrivMessage::fromJSon ( const QByteArray &  aJSonBytes,
const MController aController 
)

parses json into members

Member Data Documentation

◆ iAttachedFiles

QList<Hash> PrivMessage::iAttachedFiles

file attachements ; they're published as normal binary blobs and then just listed here

◆ iFingerPrint

Hash PrivMessage::iFingerPrint

hash of the message text .. more specifically hash of the message when it is serialized into json

◆ iMessageText

QString PrivMessage::iMessageText

actual message here

◆ iNodeOfSender

Node* PrivMessage::iNodeOfSender

When sending a reply, send it here

◆ iProfileKey

QByteArray PrivMessage::iProfileKey

key of the message sender

◆ iRecipient

Hash PrivMessage::iRecipient

Hash of the profile that will receive the msg

◆ iReplyToCa

Hash PrivMessage::iReplyToCa

Possible reference to classified ad post that this is reply to

◆ iReplyToMsg

Hash PrivMessage::iReplyToMsg

Possible reference to another private message that this is reply to

◆ iSenderHash

Hash PrivMessage::iSenderHash

profile fingerprint of the sender

◆ iSenderName

QString PrivMessage::iSenderName

nickname/display-name of sender ; may empty if private profile

◆ iSubject

QString PrivMessage::iSubject

Subject of the post

◆ iTimeOfPublish

quint32 PrivMessage::iTimeOfPublish

seconds since 1-jan-1970


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