Element SQLite cache : replace the column mtime by uuid.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4223 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2015-10-03 15:41:59 +00:00
parent 4edd1f3f24
commit 3e42c3918b
5 changed files with 170 additions and 88 deletions

View File

@@ -29,7 +29,8 @@ class ElementDefinition;
definitions of elements and building full CustomElement objects when
(re)loading the elements panel.
*/
class ElementsCollectionCache : public QObject {
class ElementsCollectionCache : public QObject
{
public:
// constructor, destructor
ElementsCollectionCache(const QString &database_path, QObject * = 0);
@@ -47,10 +48,10 @@ class ElementsCollectionCache : public QObject {
QString name() const;
QPixmap pixmap() const;
bool fetchData(const ElementsLocation &);
bool fetchNameFromCache(const QString &, const QDateTime &);
bool fetchPixmapFromCache(const QString &, const QDateTime &);
bool cacheName(const QString &, const QDateTime & = QDateTime::currentDateTime());
bool cachePixmap(const QString &, const QDateTime & = QDateTime::currentDateTime());
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());
bool cachePixmap(const QString &path, const QUuid &uuid = QUuid::createUuid());
// attributes
private: