Classified ads
binaryfile.h
Go to the documentation of this file.
1 /* -*-C++-*- -*-coding: utf-8-unix;-*-
2  Classified Ads is Copyright (c) Antti Jarvinen 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 CLASSIFIED_BINARYFILE_H
22 #define CLASSIFIED_BINARYFILE_H
23 #include <QString>
24 #include "../util/hash.h" // for class Hash
25 
26 class MController ;
27 
37 class BinaryFile {
38 public:
44  } ;
45  BinaryFile(const Hash& aHash) ;
46  ~BinaryFile() ;
53  QString displayName() const ;
54  QByteArray asJSon(const MController& aController) const ;
55  bool fromJSon(const QByteArray &aJSonBytes,
56  const MController& aController ) ;
57  const Hash iFingerPrint ;
58  QString iMimeType ;
59  QString iDescription ;
60  QString iOwner ;
61  QString iContentOwner ;
62  QString iLicense ;
63  QString iFileName ;
64  quint32 iTimeOfPublish ;
65  bool iIsEncrypted ;
66  bool iIsCompressed ;
68 } ;
69 #endif
LocalStorageStatus
Definition: binaryfile.h:40
QString iLicense
Definition: binaryfile.h:62
quint32 iTimeOfPublish
Definition: binaryfile.h:64
QByteArray asJSon(const MController &aController) const
BinaryFile(const Hash &aHash)
QString iOwner
Definition: binaryfile.h:60
Hash is class that carries 160-bit digest.
Definition: hash.h:38
QString iDescription
Definition: binaryfile.h:59
QString iMimeType
Definition: binaryfile.h:58
bool iIsCompressed
Definition: binaryfile.h:66
Carrier-class for binary blob.
Definition: binaryfile.h:37
QString iFileName
Definition: binaryfile.h:63
Definition: binaryfile.h:42
LocalStorageStatus iLocalStorageStatus
Definition: binaryfile.h:67
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:48
QString iContentOwner
Definition: binaryfile.h:61
bool fromJSon(const QByteArray &aJSonBytes, const MController &aController)
const Hash iFingerPrint
Definition: binaryfile.h:57
Definition: binaryfile.h:41
bool iIsEncrypted
Definition: binaryfile.h:65
Definition: binaryfile.h:43
QString displayName() const