X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fcore%2FInformationManager.hxx;h=86e4d8cd80039fbe0b4c3fc43205a4b5d41585f0;hp=f6eeb30f4cede67fbe4b28989993ea0815305133;hb=55eb2a804c19c35a9006a2241a0feefe219bf21e;hpb=f7cd60ef2104cf8f74ea06f58906acda4aef3e29 diff --git a/src/core/InformationManager.hxx b/src/core/InformationManager.hxx index f6eeb30..86e4d8c 100644 --- a/src/core/InformationManager.hxx +++ b/src/core/InformationManager.hxx @@ -1,6 +1,7 @@ #ifndef INCLUDE__InformationManager_hxx #define INCLUDE__InformationManager_hxx +#include #include #include #include @@ -13,19 +14,22 @@ class BasicBlock; class Comment; class QString; +class QTemporaryFile; class RenameFunctionEvent; class InformationManager { public: + InformationManager(); ~InformationManager(); void reset(const std::string& filename); - void save(const QString& filename); + void load(const std::string& filename); + void save(const std::string& filename); void signal_new_function(Function* f); void signal_new_dyn_symbol(const std::string& f) - { new_dyn_symbol_signal(f); } + { new_dyn_symbol_signal(f); } boost::signals2::connection connect_new_function_signal(std::function f) @@ -82,6 +86,7 @@ public: void deleteFunction(Function* f); void deleteBasicBlock(BasicBlock* b); void deleteComment(Comment* c); + private: boost::signals2::signal reset_signal; boost::signals2::signal new_function_signal; @@ -90,6 +95,10 @@ private: std::unique_ptr disassembler; std::map functions; std::map blocks; + std::string filename; + std::unique_ptr tmpfile; + + log4cxx::LoggerPtr logger; }; #endif /* INCLUDE__InformationManager_hxx */