|
Hydra 0.20
|
#include <Records.h>

Public Types | |
| typedef hydra::Tags | tags_t |
Public Member Functions | |
| virtual void | save (QDataStream &out) const |
| saver, throws exceptions on errors | |
| virtual void | load (QDataStream &in) |
| loader, throws exceptions on errors | |
| quint64 | modtimeAsInt64 (void) const |
| void | setModtimeFromInt64 (quint64 i) |
Public Attributes | |
| QUuid | id |
| QString | title |
| QString | desc |
| qint32 | filetype |
| tags_t | tags |
| QDateTime | modtime |
The main file record, keyed by their UUID. This contains all the information, like tags, for a particular file.
key=UUID db=main.sqlite table=fileitems
| QDateTime hydra::FileItemRecord::modtime |
The modificationTime of this record new records are created with invalid QDateTime only after the user deliberatly updates the record does the record get a real modtime.
(move this to the DB layer eventually? - probably not, as this is very specific)