mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-18 04:27:07 +01:00
library: Add accessors to directory structures
Add const accessors to the Directory and Subdirectory structures.
This commit is contained in:
parent
6412790723
commit
fd3a2a2f12
@ -31,6 +31,9 @@ struct Directory {
|
|||||||
return path == other.path && id == other.id;
|
return path == other.path && id == other.id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const QString& GetPath() const { return path; }
|
||||||
|
int GetId() const { return id; }
|
||||||
|
|
||||||
QString path;
|
QString path;
|
||||||
int id;
|
int id;
|
||||||
};
|
};
|
||||||
@ -42,6 +45,10 @@ Q_DECLARE_METATYPE(DirectoryList)
|
|||||||
struct Subdirectory {
|
struct Subdirectory {
|
||||||
Subdirectory() : directory_id(-1), mtime(0) {}
|
Subdirectory() : directory_id(-1), mtime(0) {}
|
||||||
|
|
||||||
|
int GetDirectoryId() const { return directory_id; }
|
||||||
|
const QString& GetPath() const { return path; }
|
||||||
|
uint GetMtime() const { return mtime; }
|
||||||
|
|
||||||
int directory_id;
|
int directory_id;
|
||||||
QString path;
|
QString path;
|
||||||
uint mtime;
|
uint mtime;
|
||||||
|
Loading…
Reference in New Issue
Block a user