| Classified ads
    | 
Carrier-class for binary blob. More...
#include <binaryfile.h>

| Public Types | |
| enum | LocalStorageStatus { FileIsLocallyStored, FileIsNotLocallyStored, LocalStorageStatusUnknown } | 
| Public Member Functions | |
| BinaryFile (const Hash &aHash) | |
| ~BinaryFile () | |
| QString | displayName () const | 
| QByteArray | asJSon (const MController &aController) const | 
| bool | fromJSon (const QByteArray &aJSonBytes, const MController &aController) | 
| Public Attributes | |
| const Hash | iFingerPrint | 
| QString | iMimeType | 
| QString | iDescription | 
| QString | iOwner | 
| QString | iContentOwner | 
| QString | iLicense | 
| QString | iFileName | 
| quint32 | iTimeOfPublish | 
| bool | iIsEncrypted | 
| bool | iIsCompressed | 
| LocalStorageStatus | iLocalStorageStatus | 
Carrier-class for binary blob.
Instances of this class are stored and retrieved using BinaryFileModel. Lets decide that this class carries the metadata only, actual octet-stream of the file is retrieved using a QByteArray only, there is method for that in the model.
| BinaryFile::BinaryFile | ( | const Hash & | aHash | ) | 
constructor
| BinaryFile::~BinaryFile | ( | ) | 
destructor
| QByteArray BinaryFile::asJSon | ( | const MController & | aController | ) | const | 
returns file data as JSon stream
| QString BinaryFile::displayName | ( | ) | const | 
method for string that is shown to user about the file. Most often could be original name from filesystem but other explanation too..
| bool BinaryFile::fromJSon | ( | const QByteArray & | aJSonBytes, | 
| const MController & | aController | ||
| ) | 
parses json into members
| QString BinaryFile::iContentOwner | 
if someone owns the content, name or SHA1 fp
| QString BinaryFile::iDescription | 
what is inside
| QString BinaryFile::iFileName | 
name of the file-system file
| const Hash BinaryFile::iFingerPrint | 
file hash
| bool BinaryFile::iIsCompressed | 
needs to be in DB, not in JSon
| bool BinaryFile::iIsEncrypted | 
| QString BinaryFile::iLicense | 
restriction in usage;PD or GPL or C-C or anything?
| LocalStorageStatus BinaryFile::iLocalStorageStatus | 
| QString BinaryFile::iMimeType | 
what kind of data
| QString BinaryFile::iOwner | 
fingerprint of publisher
| quint32 BinaryFile::iTimeOfPublish | 
seconds since 1-jan-1970
 1.8.13
 1.8.13