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