summaryrefslogtreecommitdiffstats
path: root/src/svnqt/cache/LogCache.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2021-03-19 10:06:06 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-03-19 10:06:06 +0900
commit283bc34244d24be02e90b767a82826a4ca8da186 (patch)
tree5b9d49d503a44b8ceea82744f11b8014e3b41ca3 /src/svnqt/cache/LogCache.h
parent971ab170cfa851d20a42864231676f05f4cdb4cc (diff)
downloadtdesvn-283bc34244d24be02e90b767a82826a4ca8da186.tar.gz
tdesvn-283bc34244d24be02e90b767a82826a4ca8da186.zip
Renaming of files in preparation for code style tools.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/svnqt/cache/LogCache.h')
-rw-r--r--src/svnqt/cache/LogCache.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/svnqt/cache/LogCache.h b/src/svnqt/cache/LogCache.h
new file mode 100644
index 0000000..5e43b40
--- /dev/null
+++ b/src/svnqt/cache/LogCache.h
@@ -0,0 +1,42 @@
+#ifndef _LOG_CACHE_HPP
+#define _LOG_CACHE_HPP
+
+#include <tqstring.h>
+#include <tqdir.h>
+#include <tqmutex.h>
+
+#include "svnqt/svnqt_defines.h"
+#include "svnqt/shared_pointer.h"
+
+namespace svn {
+ namespace cache {
+
+ class LogCacheData;
+
+ class SVNTQT_EXPORT LogCache
+ {
+ private:
+ svn::SharedPointer<LogCacheData> m_CacheData;
+
+ protected:
+ LogCache();
+ static LogCache* mSelf;
+ TQString m_BasePath;
+ static TQString s_CACHE_FOLDER;
+ void setupCachePath();
+ void setupMainDb();
+
+ public:
+ ///! should used for testing only!
+ LogCache(const TQString&aBasePath);
+ virtual ~LogCache();
+ static LogCache* self();
+ TQDataBase reposDb(const TQString&aRepository);
+ TQStringList cachedRepositories()const;
+
+ bool valid()const;
+ };
+ }
+}
+
+#endif