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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user