]> Creatis software - creaImageIO.git/blobdiff - src2/creaImageIOGimmick.h
Compil Linux
[creaImageIO.git] / src2 / creaImageIOGimmick.h
index dfd176e27e83dde6ae7e2f5b56064a2ee8a7862c..6c3b1cc6e231754cced691044bd385d7009da19a 100644 (file)
@@ -5,6 +5,7 @@
 #include <creaImageIOTreeHandlerImageAdder.h>
 #include <creaImageIOTimestampDatabaseHandler.h>
 #include <creaImageIOSynchron.h>
+#include <creaImageIOSettings.h>
 
 namespace creaImageIO
 {
@@ -95,9 +96,13 @@ namespace creaImageIO
        void RemoveFile(const std::string& d, 
                        tree::Node* filename);
 
-       ///Synchronizes the loaded data with the database. If remove is true the database will be updated, otherwise 
+       /// Copies the files into the local directory
+       void CopyFiles(const std::vector<std::string>& filenames, const std::string& d );
+  
+
+       ///Synchronizes the loaded data with the database d. If repair is true the database will be updated, otherwise 
        ///only a warning sign will be issued
-       std::string Synchronize(bool repair, bool checkAttributes);
+       std::string Synchronize(const std::string& d, bool repair, bool checkAttributes);
 
     /// Prints the tree handled by the handler
     void Print(const std::string& handler);
@@ -121,7 +126,8 @@ namespace creaImageIO
     const SQLiteTreeHandler* GetLocalDatabase() const 
     { return mLocalDatabase; }
 
-    
+       // add DB from Settings file
+    void addDBSettings();
 
     /// 
     const std::string& GetHomeDirectory();
@@ -143,7 +149,7 @@ namespace creaImageIO
     std::string mUserSettingsDirectory;
     std::string mLocalDatabasePath;
        std::string mTimestampDatabasePath;
-
+       Settings        *mSettings;
     TreeHandlerImageAdder mImageAdder;
   };
   // EO class Gimmick