21 #ifndef SCIMAGECACHEDIR_H
22 #define SCIMAGECACHEDIR_H
27 #include <QStringList>
29 #include "scribusapi.h"
43 typedef unsigned int AccessCounter;
47 ScImageCacheDir *newSubDir(
const QString & dir,
bool scanFiles =
false,
const QStringList & suffixList = QStringList());
48 const QString & name()
const {
return m_name; }
49 QString path(
bool relative =
false)
const;
50 QString path(
const QString & file)
const;
54 bool updateFile(
const QString & file);
55 bool updateAccess(
const QString & dir, AccessCounter from, AccessCounter to);
57 static bool lastAccess(
const QString & dir, AccessCounter & access);
59 static const QString accessFileName;
67 typedef QHash<QString, ScImageCacheDir *> DirMap;
68 typedef QHash<QString, ScImageCacheFile *> FileMap;
73 bool updateFile(
const QStringList & parts,
int level = 0);
74 bool updateAccess(
const QStringList & parts, AccessCounter from, AccessCounter to,
int level = 0);
77 const QStringList m_suffix;
80 bool m_lastAccessValid;
81 AccessCounter m_lastAccess;
Representation of a directory node in the image cache tree.
Definition: scimagecachedir.h:38
Representation of a file node in the image cache tree.
Definition: scimagecachefile.h:37