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 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 CLASSIFIED_BINARYFILE_H
21 #define CLASSIFIED_BINARYFILE_H
22 #include <QString>
23 #include "../util/hash.h" // for class Hash
24 
25 class MController ;
26 
36 class BinaryFile {
37 public:
43  } ;
44  BinaryFile(const Hash& aHash) ;
45  ~BinaryFile() ;
52  QString displayName() const ;
53  QByteArray asJSon(const MController& aController) const ;
54  bool fromJSon(const QByteArray &aJSonBytes,
55  const MController& aController ) ;
56  const Hash iFingerPrint ;
57  QString iMimeType ;
58  QString iDescription ;
59  QString iOwner ;
60  QString iLicense ;
61  QString iFileName ;
62  quint32 iTimeOfPublish ;
63  bool iIsEncrypted ;
64  bool iIsCompressed ;
66 } ;
67 #endif
LocalStorageStatus
Definition: binaryfile.h:39
QString iLicense
Definition: binaryfile.h:60
quint32 iTimeOfPublish
Definition: binaryfile.h:62
BinaryFile(const Hash &aHash)
QString iOwner
Definition: binaryfile.h:59
Hash is class that carries 160-bit digest.
Definition: hash.h:37
QString iDescription
Definition: binaryfile.h:58
QString iMimeType
Definition: binaryfile.h:57
bool iIsCompressed
Definition: binaryfile.h:64
Carrier-class for binary blob.
Definition: binaryfile.h:36
QString displayName() const
QString iFileName
Definition: binaryfile.h:61
Definition: binaryfile.h:41
LocalStorageStatus iLocalStorageStatus
Definition: binaryfile.h:65
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:39
QByteArray asJSon(const MController &aController) const
bool fromJSon(const QByteArray &aJSonBytes, const MController &aController)
const Hash iFingerPrint
Definition: binaryfile.h:56
Definition: binaryfile.h:40
bool iIsEncrypted
Definition: binaryfile.h:63
Definition: binaryfile.h:42