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
7  modify it under the terms of the GNU Lesser General Public
8  License as published by the Free Software Foundation; either
9  version 2.1 of the License, or (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 GNU
14  Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public
17  License along with Classified Ads; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20 
21 #ifndef PRIVATE_MESSAGE_H
22 #define PRIVATE_MESSAGE_H
23 #include <QString>
24 #include "../util/hash.h" // for class Hash
25 
26 class MController ;
27 class Profile ;
28 class Node ;
29 
36 class PrivMessage {
37 public:
38  PrivMessage() ;
39  ~PrivMessage() ;
45  QString displayName() const ;
46  QByteArray asJSon(const MController& aController) const ;
47  bool fromJSon(const QByteArray &aJSonBytes,
48  const MController& aController ) ;
52  QString iSenderName ;
54  quint32 iTimeOfPublish ;
59  QList<Hash> iAttachedFiles ;
60  QString iSubject ;
63  QString iMessageText ;
64  QByteArray iProfileKey ;
67 } ;
68 #endif
Carrier-class for private msg inside classified ads.
Definition: privmsg.h:36
Node is a peer in network.
Definition: node.h:40
QString iMessageText
Definition: privmsg.h:63
QByteArray asJSon(const MController &aController) const
Hash iSenderHash
Definition: privmsg.h:53
Hash is class that carries 160-bit digest.
Definition: hash.h:38
QString displayName() const
Hash iReplyToCa
Definition: privmsg.h:62
Hash iReplyToMsg
Definition: privmsg.h:61
bool fromJSon(const QByteArray &aJSonBytes, const MController &aController)
QByteArray iProfileKey
Definition: privmsg.h:64
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:48
quint32 iTimeOfPublish
Definition: privmsg.h:54
QString iSenderName
Definition: privmsg.h:52
Node * iNodeOfSender
Definition: privmsg.h:66
Hash iRecipient
Definition: privmsg.h:65
Carrier-class for user-profile data.
Definition: profile.h:37
Hash iFingerPrint
Definition: privmsg.h:51
QList< Hash > iAttachedFiles
Definition: privmsg.h:59
QString iSubject
Definition: privmsg.h:60