summaryrefslogtreecommitdiff
path: root/lib/db_file.h
diff options
context:
space:
mode:
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