#ifndef __creaImageIOGimmick_h_INCLUDED__ #define __creaImageIOGimmick_h_INCLUDED__ #include namespace creaImageIO { /** * \defgroup Controller Controller */ /** * \defgroup View View */ /** * \defgroup Model Model */ /** * \ingroup Controller */ //======================================================================= /// Central controler of the gimmick application class Gimmick { public: /// Ctor Gimmick(); /// Dtor ~Gimmick(); /// Initialize (read/creates databases, etc.) void Initialize(); /// Finalize (closes databases, etc.) void Finalize(); /// Sets level for messages "Gimmick!" void SetMessageLevel(int level); /// Sets level for debug messages "Gimmick! DEBUG" void SetDebugMessageLevel(int level); /// Add a file to the local database void AddFileToLocalDatabase(const std::string&); /// Add a dir to the local database void AddDirToLocalDatabase(const std::string&, bool recurse); /// void PrintLocalDatabase(); /// SQLiteTreeHandler* GetLocalDatabase() { return mLocalDatabase; } const SQLiteTreeHandler* GetLocalDatabase() const { return mLocalDatabase; } /// const std::string& GetHomeDirectory(); const std::string& GetUserSettingsDirectory(); void CreateUserSettingsDirectory(); const std::string& GetLocalDatabasePath(); private: SQLiteTreeHandler* mLocalDatabase; std::string mCurrentDirectory; std::string mHomeDirectory; std::string mUserSettingsDirectory; std::string mLocalDatabasePath; }; // EO class Gimmick //======================================================================= } // EO namespace creaImageIO // EOF #endif