Classified ads
privmsg.h
Go to the documentation of this file.
1 /* -*-C++-*- -*-coding: utf-8-unix;-*-
2  Classified Ads is Copyright (c) Antti Järvinen 2013.
3 
4  This file is part of Classified Ads.
5 
6  Classified Ads is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  Classified Ads is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with Classified Ads. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 #ifndef PRIVATE_MESSAGE_H
21 #define PRIVATE_MESSAGE_H
22 #include <QString>
23 #include "../util/hash.h" // for class Hash
24 
25 class MController ;
26 class Profile ;
27 class Node ;
28 
35 class PrivMessage {
36 public:
37  PrivMessage() ;
38  ~PrivMessage() ;
44  QString displayName() const ;
45  QByteArray asJSon(const MController& aController) const ;
46  bool fromJSon(const QByteArray &aJSonBytes,
47  const MController& aController ) ;
51  QString iSenderName ;
53  quint32 iTimeOfPublish ;
58  QList<Hash> iAttachedFiles ;
59  QString iSubject ;
62  QString iMessageText ;
63  QByteArray iProfileKey ;
66 } ;
67 #endif
QByteArray asJSon(const MController &aController) const
Carrier-class for private msg inside classified ads.
Definition: privmsg.h:35
Node is a peer in network.
Definition: node.h:39
QString iMessageText
Definition: privmsg.h:62
Hash iSenderHash
Definition: privmsg.h:52
Hash is class that carries 160-bit digest.
Definition: hash.h:37
Hash iReplyToCa
Definition: privmsg.h:61
Hash iReplyToMsg
Definition: privmsg.h:60
bool fromJSon(const QByteArray &aJSonBytes, const MController &aController)
QByteArray iProfileKey
Definition: privmsg.h:63
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:39
quint32 iTimeOfPublish
Definition: privmsg.h:53
QString iSenderName
Definition: privmsg.h:51
Node * iNodeOfSender
Definition: privmsg.h:65
Hash iRecipient
Definition: privmsg.h:64
Carrier-class for user-profile data.
Definition: profile.h:36
Hash iFingerPrint
Definition: privmsg.h:50
QList< Hash > iAttachedFiles
Definition: privmsg.h:58
QString displayName() const
QString iSubject
Definition: privmsg.h:59