|
Classified ads
|
Carrier-class for comments of a profile. More...
#include <profilecomment.h>

Public Member Functions | |
| ProfileComment (const Hash &aHash=KNullHash) | |
| ~ProfileComment () | |
| QByteArray | asJSon (const MController &aController) const |
| bool | fromJSon (const QByteArray &aJSonBytes, const MController &aController) |
| QVariant | asQVariant (const MController &aController) const |
| bool | setFromQVariant (const QVariantMap &aJSonAsQVariant, const MController &aController) |
Public Attributes | |
| Hash | iFingerPrint |
| Hash | iProfileFingerPrint |
| Hash | iCommentorHash |
| QList< Hash > | iAttachedFiles |
| QString | iCommentText |
| QString | iSubject |
| bool | iIsPrivate |
| quint32 | iTimeOfPublish |
| QByteArray | iKeyOfCommentor |
| QString | iCommentorNickName |
| Hash | iReferences |
| ProtocolItemType | iTypeOfObjectReferenced |
Carrier-class for comments of a profile.
Profile-comment data-item behaves much in same way as profile. These are either public or encrypted to profile readers, they might follow the same publish/retrieval procedures as profiles do.
Constructor. Fingerprint must be given, this is normal when fetching a comment from storage. When publishing a new comment, the fingerprint naturally is not known in advance, in which case KNullHash may be used and real fingerprint can be then updated during publish-processconstructor
| ProfileComment::~ProfileComment | ( | ) |
destructor
| QByteArray ProfileComment::asJSon | ( | const MController & | aController | ) | const |
returns profile comment data as JSon stream
| QVariant ProfileComment::asQVariant | ( | const MController & | aController | ) | const |
Method for getting profile comment as JSon / QVariant
| bool ProfileComment::fromJSon | ( | const QByteArray & | aJSonBytes, |
| const MController & | aController | ||
| ) |
parses json into members
| bool ProfileComment::setFromQVariant | ( | const QVariantMap & | aJSonAsQVariant, |
| const MController & | aController | ||
| ) |
reverse of asQVariant()
| QList<Hash> ProfileComment::iAttachedFiles |
| Hash ProfileComment::iCommentorHash |
fingerprint of profile that posted the comment
| QString ProfileComment::iCommentorNickName |
if commentor is public profile, its nick
| QString ProfileComment::iCommentText |
| Hash ProfileComment::iFingerPrint |
fingerprint of the comment
| bool ProfileComment::iIsPrivate |
if set to true, profile, and this comment too, is published encrypted
| QByteArray ProfileComment::iKeyOfCommentor |
public key of profile that sent the comment
| Hash ProfileComment::iProfileFingerPrint |
fingerprint of the profile commented
| Hash ProfileComment::iReferences |
if comment is reply to another comment, this is the hash of the commented comment
| QString ProfileComment::iSubject |
| quint32 ProfileComment::iTimeOfPublish |
seconds since 1-jan-1970
| ProtocolItemType ProfileComment::iTypeOfObjectReferenced |
if comment reference is CA, or profile, or another comment
1.8.8