1 #ifndef __creaImageIOGimmick_h_INCLUDED__
2 #define __creaImageIOGimmick_h_INCLUDED__
4 #include <creaImageIOSQLiteTreeHandler.h>
9 * \defgroup Controller Controller
15 * \defgroup Model Model
22 //=======================================================================
23 /// Central controler of the gimmick application
32 /// Initialize (read/creates databases, etc.)
35 /// Finalize (closes databases, etc.)
38 /// Sets level for messages "Gimmick!"
39 void SetMessageLevel(int level);
41 /// Add a file to the local database
42 void AddFileToLocalDatabase(const std::string&);
43 /// Add a dir to the local database
44 void AddDirToLocalDatabase(const std::string&, bool recurse);
47 void PrintLocalDatabase();
50 SQLiteTreeHandler* GetLocalDatabase() { return mLocalDatabase; }
52 const SQLiteTreeHandler* GetLocalDatabase() const { return mLocalDatabase; }
55 const std::string& GetHomeDirectory();
56 const std::string& GetUserSettingsDirectory();
57 bool CreateUserSettingsDirectory();
58 const std::string& GetLocalDatabasePath();
61 SQLiteTreeHandler* mLocalDatabase;
63 std::string mCurrentDirectory;
64 std::string mHomeDirectory;
65 std::string mUserSettingsDirectory;
66 std::string mLocalDatabasePath;
70 //=======================================================================
73 } // EO namespace creaImageIO