Inherits QObject.
|
| WorkspaceLibraryDb ()=delete |
|
| WorkspaceLibraryDb (const WorkspaceLibraryDb &other)=delete |
|
| WorkspaceLibraryDb (Workspace &ws) |
| Constructor to open the library database of an existing workspace. More...
|
|
| ~WorkspaceLibraryDb () noexcept |
|
const FilePath & | getFilePath () const noexcept |
|
QMultiMap< Version, FilePath > | getLibraries () const |
|
QMultiMap< Version, FilePath > | getLibraries (const Uuid &uuid) const |
|
QMultiMap< Version, FilePath > | getComponentCategories (const Uuid &uuid) const |
|
QMultiMap< Version, FilePath > | getPackageCategories (const Uuid &uuid) const |
|
QMultiMap< Version, FilePath > | getSymbols (const Uuid &uuid) const |
|
QMultiMap< Version, FilePath > | getPackages (const Uuid &uuid) const |
|
QMultiMap< Version, FilePath > | getComponents (const Uuid &uuid) const |
|
QMultiMap< Version, FilePath > | getDevices (const Uuid &uuid) const |
|
FilePath | getLatestLibrary (const Uuid &uuid) const |
|
FilePath | getLatestComponentCategory (const Uuid &uuid) const |
|
FilePath | getLatestPackageCategory (const Uuid &uuid) const |
|
FilePath | getLatestSymbol (const Uuid &uuid) const |
|
FilePath | getLatestPackage (const Uuid &uuid) const |
|
FilePath | getLatestComponent (const Uuid &uuid) const |
|
FilePath | getLatestDevice (const Uuid &uuid) const |
|
template<typename ElementType > |
QList< Uuid > | getElementsBySearchKeyword (const QString &keyword) const |
|
template<typename ElementType > |
QList< FilePath > | getLibraryElements (const FilePath &lib) const |
|
template<typename ElementType > |
void | getElementTranslations (const FilePath &elemDir, const QStringList &localeOrder, QString *name=nullptr, QString *desc=nullptr, QString *keywords=nullptr) const |
|
template<typename ElementType > |
void | getElementMetadata (const FilePath elemDir, Uuid *uuid=nullptr, Version *version=nullptr) const |
|
void | getLibraryMetadata (const FilePath libDir, QPixmap *icon=nullptr) const |
|
void | getDeviceMetadata (const FilePath &devDir, Uuid *pkgUuid=nullptr, Uuid *cmpUuid=nullptr) const |
|
QSet< Uuid > | getComponentCategoryChilds (const tl::optional< Uuid > &parent) const |
|
QSet< Uuid > | getPackageCategoryChilds (const tl::optional< Uuid > &parent) const |
|
QList< Uuid > | getComponentCategoryParents (const Uuid &category) const |
|
QList< Uuid > | getPackageCategoryParents (const Uuid &category) const |
|
void | getComponentCategoryElementCount (const tl::optional< Uuid > &category, int *categories, int *symbols, int *components, int *devices) const |
|
void | getPackageCategoryElementCount (const tl::optional< Uuid > &category, int *categories, int *packages) const |
|
QSet< Uuid > | getSymbolsByCategory (const tl::optional< Uuid > &category) const |
|
QSet< Uuid > | getPackagesByCategory (const tl::optional< Uuid > &category) const |
|
QSet< Uuid > | getComponentsByCategory (const tl::optional< Uuid > &category) const |
|
QSet< Uuid > | getDevicesByCategory (const tl::optional< Uuid > &category) const |
|
QSet< Uuid > | getDevicesOfComponent (const Uuid &component) const |
|
void | startLibraryRescan () noexcept |
| Rescan the whole library directory and update the SQLite database. More...
|
|
WorkspaceLibraryDb & | operator= (const WorkspaceLibraryDb &rhs)=delete |
|
template<> |
QList< Uuid > | getElementsBySearchKeyword (const QString &keyword) const |
|
template<> |
QList< Uuid > | getElementsBySearchKeyword (const QString &keyword) const |
|
template<> |
QList< Uuid > | getElementsBySearchKeyword (const QString &keyword) const |
|
template<> |
QList< Uuid > | getElementsBySearchKeyword (const QString &keyword) const |
|
template<> |
QList< Uuid > | getElementsBySearchKeyword (const QString &keyword) const |
|
template<> |
QList< Uuid > | getElementsBySearchKeyword (const QString &keyword) const |
|
template<> |
QList< Uuid > | getElementsBySearchKeyword (const QString &keyword) const |
|
template<> |
QList< FilePath > | getLibraryElements (const FilePath &lib) const |
|
template<> |
QList< FilePath > | getLibraryElements (const FilePath &lib) const |
|
template<> |
QList< FilePath > | getLibraryElements (const FilePath &lib) const |
|
template<> |
QList< FilePath > | getLibraryElements (const FilePath &lib) const |
|
template<> |
QList< FilePath > | getLibraryElements (const FilePath &lib) const |
|
template<> |
QList< FilePath > | getLibraryElements (const FilePath &lib) const |
|
template<> |
void | getElementTranslations (const FilePath &elemDir, const QStringList &localeOrder, QString *name, QString *desc, QString *keywords) const |
|
template<> |
void | getElementTranslations (const FilePath &elemDir, const QStringList &localeOrder, QString *name, QString *desc, QString *keywords) const |
|
template<> |
void | getElementTranslations (const FilePath &elemDir, const QStringList &localeOrder, QString *name, QString *desc, QString *keywords) const |
|
template<> |
void | getElementTranslations (const FilePath &elemDir, const QStringList &localeOrder, QString *name, QString *desc, QString *keywords) const |
|
template<> |
void | getElementTranslations (const FilePath &elemDir, const QStringList &localeOrder, QString *name, QString *desc, QString *keywords) const |
|
template<> |
void | getElementTranslations (const FilePath &elemDir, const QStringList &localeOrder, QString *name, QString *desc, QString *keywords) const |
|
template<> |
void | getElementTranslations (const FilePath &elemDir, const QStringList &localeOrder, QString *name, QString *desc, QString *keywords) const |
|
template<> |
void | getElementMetadata (const FilePath elemDir, Uuid *uuid, Version *version) const |
|
template<> |
void | getElementMetadata (const FilePath elemDir, Uuid *uuid, Version *version) const |
|
template<> |
void | getElementMetadata (const FilePath elemDir, Uuid *uuid, Version *version) const |
|
template<> |
void | getElementMetadata (const FilePath elemDir, Uuid *uuid, Version *version) const |
|
template<> |
void | getElementMetadata (const FilePath elemDir, Uuid *uuid, Version *version) const |
|
template<> |
void | getElementMetadata (const FilePath elemDir, Uuid *uuid, Version *version) const |
|
template<> |
void | getElementMetadata (const FilePath elemDir, Uuid *uuid, Version *version) const |
|
|
void | getElementTranslations (const QString &table, const QString &idRow, const FilePath &elemDir, const QStringList &localeOrder, QString *name, QString *desc, QString *keywords) const |
|
void | getElementMetadata (const QString &table, const FilePath elemDir, Uuid *uuid, Version *version) const |
|
QMultiMap< Version, FilePath > | getElementFilePathsFromDb (const QString &tablename, const Uuid &uuid) const |
|
FilePath | getLatestVersionFilePath (const QMultiMap< Version, FilePath > &list) const noexcept |
|
QSet< Uuid > | getCategoryChilds (const QString &tablename, const tl::optional< Uuid > &categoryUuid) const |
|
QList< Uuid > | getCategoryParents (const QString &tablename, const Uuid &category) const |
|
tl::optional< Uuid > | getCategoryParent (const QString &tablename, const Uuid &category) const |
|
int | getCategoryChildCount (const QString &tablename, const tl::optional< Uuid > &category) const |
|
int | getCategoryElementCount (const QString &tablename, const QString &idrowname, const tl::optional< Uuid > &category) const |
|
QSet< Uuid > | getElementsByCategory (const QString &tablename, const QString &idrowname, const tl::optional< Uuid > &categoryUuid) const |
|
QList< Uuid > | getElementsBySearchKeyword (const QString &tablename, const QString &idrowname, const QString &keyword) const |
|
int | getLibraryId (const FilePath &lib) const |
|
QList< FilePath > | getLibraryElements (const FilePath &lib, const QString &tablename) const |
|
void | createAllTables () |
|
void | setDbVersion (int version) |
|
int | getDbVersion () const noexcept |
|