ResourceItem: added property "author"

Added new property "author" for retaining authorship information of
files. Furthermore this allows filtering for authors in ResourceBrowser.

Signed-off-by: Tobias Doerffel <tobias.doerffel@gmail.com>
This commit is contained in:
Tobias Doerffel
2009-06-19 09:42:03 +02:00
parent 9ca93040de
commit 4bc010cea9
6 changed files with 24 additions and 1 deletions

View File

@@ -70,6 +70,7 @@ public:
BaseDirectory _base_dir = BaseWorkingDir,
const QString & _path = QString::null,
const QString & _hash = QString::null,
const QString & _author = QString::null,
const QString & _tags = QString::null,
int _size = -1,
const QDateTime & _last_mod = QDateTime() );
@@ -125,6 +126,11 @@ public:
return m_hash;
}
const QString & author( void ) const
{
return m_author;
}
int size( void ) const
{
return m_size;
@@ -208,6 +214,7 @@ private:
BaseDirectory m_baseDir;
QString m_path;
QString m_hash;
QString m_author;
int m_size;
QDateTime m_lastMod;
QString m_tags;