mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 11:04:25 -04:00
Add method for getting the db container path from a library id
This commit is contained in:
@ -29,6 +29,11 @@ QString YACReaderLibraries::getPath(int id)
|
||||
return "";
|
||||
}
|
||||
|
||||
QString YACReaderLibraries::getDBPath(int id)
|
||||
{
|
||||
return getPath(id) + "/.yacreaderlibrary";
|
||||
}
|
||||
|
||||
QString YACReaderLibraries::getName(int id)
|
||||
{
|
||||
foreach (QString name, libraries.keys())
|
||||
|
@ -13,6 +13,7 @@ public:
|
||||
QList<QString> getNames();
|
||||
QString getPath(const QString &name);
|
||||
QString getPath(int id);
|
||||
QString getDBPath(int id);
|
||||
QString getName(int id);
|
||||
bool isEmpty();
|
||||
bool contains(const QString &name);
|
||||
|
Reference in New Issue
Block a user