mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-26 21:40:52 +01:00
Elements collection cache can fully fetch and cache element data from elementLocation
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4323 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -17,10 +17,11 @@
|
||||
*/
|
||||
#ifndef ELEMENTS_COLLECTION_CACHE_H
|
||||
#define ELEMENTS_COLLECTION_CACHE_H
|
||||
#include <QtCore>
|
||||
#include <QtSql>
|
||||
|
||||
#include <QSqlDatabase>
|
||||
#include "elementslocation.h"
|
||||
#include "elementlocation.h"
|
||||
|
||||
class ElementsCollection;
|
||||
class ElementsCategory;
|
||||
class ElementDefinition;
|
||||
@@ -50,6 +51,7 @@ class ElementsCollectionCache : public QObject
|
||||
QString name() const;
|
||||
QPixmap pixmap() const;
|
||||
bool fetchData(const ElementsLocation &);
|
||||
bool fetchData(ElementLocation &location);
|
||||
bool fetchNameFromCache(const QString &path, const QUuid &uuid);
|
||||
bool fetchPixmapFromCache(const QString &path, const QUuid &uuid);
|
||||
bool cacheName(const QString &path, const QUuid &uuid = QUuid::createUuid());
|
||||
|
||||
Reference in New Issue
Block a user