summaryrefslogtreecommitdiff
path: root/lib/db_file.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:15:16 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:15:16 +0200
commitbd6336c629841c6db3a6ca53a936d629d34db53b (patch)
tree3721ef997864108df175ce677a8a7d4342a6f1d2 /lib/db_file.h
parent4.0 (diff)
downloadFreeFileSync-bd6336c629841c6db3a6ca53a936d629d34db53b.tar.gz
FreeFileSync-bd6336c629841c6db3a6ca53a936d629d34db53b.tar.bz2
FreeFileSync-bd6336c629841c6db3a6ca53a936d629d34db53b.zip
4.1
Diffstat (limited to 'lib/db_file.h')
-rw-r--r--lib/db_file.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/db_file.h b/lib/db_file.h
new file mode 100644
index 00000000..d6d765cc
--- /dev/null
+++ b/lib/db_file.h
@@ -0,0 +1,31 @@
+// **************************************************************************
+// * This file is part of the FreeFileSync project. It is distributed under *
+// * GNU General Public License: http://www.gnu.org/licenses/gpl.html *
+// * Copyright (C) 2008-2011 ZenJu (zhnmju123 AT gmx.de) *
+// **************************************************************************
+
+#ifndef DBFILE_H_INCLUDED
+#define DBFILE_H_INCLUDED
+
+#include <zen/file_error.h>
+#include "../file_hierarchy.h"
+
+namespace zen
+{
+const Zstring SYNC_DB_FILE_ENDING = Zstr(".ffs_db");
+
+void saveToDisk(const BaseDirMapping& baseMapping); //throw FileError
+
+struct DirInformation
+{
+ HardFilter::FilterRef filter; //filter settings (used when retrieving directory data)
+ DirContainer baseDirContainer; //hierarchical directory information
+};
+typedef std::shared_ptr<const DirInformation> DirInfoPtr;
+
+DEFINE_NEW_FILE_ERROR(FileErrorDatabaseNotExisting);
+
+std::pair<DirInfoPtr, DirInfoPtr> loadFromDisk(const BaseDirMapping& baseMapping); //throw FileError, FileErrorDatabaseNotExisting -> return value always bound!
+}
+
+#endif // DBFILE_H_INCLUDED
bgstack15