[qet] [1489] Added QETApp::collectionCache() for the currently unique SQLite cache to be usable by most classes. |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 1489
Author: xavier
Date: 2012-02-06 22:19:58 +0100 (Mon, 06 Feb 2012)
Log Message:
-----------
Added QETApp::collectionCache() for the currently unique SQLite cache to be usable by most classes.
Modified Paths:
--------------
branches/0.3/sources/qetapp.cpp
branches/0.3/sources/qetapp.h
Modified: branches/0.3/sources/qetapp.cpp
===================================================================
--- branches/0.3/sources/qetapp.cpp 2012-02-05 19:33:11 UTC (rev 1488)
+++ branches/0.3/sources/qetapp.cpp 2012-02-06 21:19:58 UTC (rev 1489)
@@ -297,6 +297,13 @@
}
/**
+ @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
*/
Modified: branches/0.3/sources/qetapp.h
===================================================================
--- branches/0.3/sources/qetapp.h 2012-02-05 19:33:11 UTC (rev 1488)
+++ branches/0.3/sources/qetapp.h 2012-02-06 21:19:58 UTC (rev 1489)
@@ -72,6 +72,7 @@
static ElementsCollection *commonElementsCollection();
static ElementsCollection *customElementsCollection();
static QList<ElementsCollection *> availableCollections();
+ static ElementsCollectionCache *collectionCache();
static TitleBlockTemplatesFilesCollection *commonTitleBlockTemplatesCollection();
static TitleBlockTemplatesFilesCollection *customTitleBlockTemplatesCollection();