From 4adbba85df2b6e3302cbe6e2986093a4a53f3636 Mon Sep 17 00:00:00 2001 From: xavier Date: Mon, 6 Feb 2012 21:19:58 +0000 Subject: [PATCH] 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 --- sources/qetapp.cpp | 7 +++++++ sources/qetapp.h | 1 + 2 files changed, 8 insertions(+) diff --git a/sources/qetapp.cpp b/sources/qetapp.cpp index cbc457fd5..f16cffc1a 100644 --- a/sources/qetapp.cpp +++ b/sources/qetapp.cpp @@ -296,6 +296,13 @@ QList 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 diff --git a/sources/qetapp.h b/sources/qetapp.h index a0d04336f..bcd2e6720 100644 --- a/sources/qetapp.h +++ b/sources/qetapp.h @@ -72,6 +72,7 @@ class QETApp : public QETSingleApplication { static ElementsCollection *commonElementsCollection(); static ElementsCollection *customElementsCollection(); static QList availableCollections(); + static ElementsCollectionCache *collectionCache(); static TitleBlockTemplatesFilesCollection *commonTitleBlockTemplatesCollection(); static TitleBlockTemplatesFilesCollection *customTitleBlockTemplatesCollection();