Added QETApp::collectionCache() for the currently unique SQLite cache to be usable by most classes.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1489 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier 2012-02-06 21:19:58 +00:00
parent 6b8506c61e
commit 4adbba85df
2 changed files with 8 additions and 0 deletions

View File

@ -296,6 +296,13 @@ QList<ElementsCollection *> QETApp::availableCollections() {
return(coll_list);
}
/**
@return the collection cache provided by the application itself.
*/
ElementsCollectionCache *QETApp::collectionCache() {
return(collections_cache_);
}
/**
@return the common title block templates collection, i.e. the one provided
by QElecrotTech

View File

@ -72,6 +72,7 @@ class QETApp : public QETSingleApplication {
static ElementsCollection *commonElementsCollection();
static ElementsCollection *customElementsCollection();
static QList<ElementsCollection *> availableCollections();
static ElementsCollectionCache *collectionCache();
static TitleBlockTemplatesFilesCollection *commonTitleBlockTemplatesCollection();
static TitleBlockTemplatesFilesCollection *customTitleBlockTemplatesCollection();