]> git.siccegge.de Git - frida/frida.git/blobdiff - src/core/InformationManager.hxx
Finish archive loading
[frida/frida.git] / src / core / InformationManager.hxx
index f6eeb30f4cede67fbe4b28989993ea0815305133..557816877ec9ded8804bd0f88118191818573062 100644 (file)
@@ -1,12 +1,14 @@
 #ifndef INCLUDE__InformationManager_hxx
 #define INCLUDE__InformationManager_hxx
 
+#include <log4cxx/logger.h>
 #include <boost/signals2.hpp>
 #include <functional>
 #include <string>
 #include <map>
 
 #include "disassembler/Disassembler.hxx"
+#include <QTemporaryFile>
 
 class Function;
 class BasicBlock;
@@ -18,10 +20,12 @@ 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)
@@ -90,6 +94,10 @@ private:
        std::unique_ptr<Disassembler> disassembler;
        std::map<uint64_t, Function*> functions;
        std::map<uint64_t, BasicBlock*> blocks;
+       std::string filename;
+       std::unique_ptr<QTemporaryFile> tmpfile;
+
+       log4cxx::LoggerPtr logger;
 };
 
 #endif /* INCLUDE__InformationManager_hxx */