]> git.siccegge.de Git - frida/frida.git/blobdiff - src/core/Comment.hxx
Add doc repo as submodule
[frida/frida.git] / src / core / Comment.hxx
index e151f5a09b0f796de028883d6b3231610bfafbdb..45ed369a4d8eefa5613891e695ca3556c55dc59e 100644 (file)
@@ -4,18 +4,33 @@
 #include <string>
 
 class Function;
+class InformationManager;
+
+class QXmlStreamWriter;
+class QXmlStreamReader;
 
 class Comment {
 public:
        bool isLocal() const {return location == NULL;}
 
+       void setText(const std::string& text);
+       std::string getText() const {return text;}
+       uint64_t getAddress();
+       Function* getLocation();
+
+       void serialize(QXmlStreamWriter& stream);
+       static Comment* deserialize(QXmlStreamReader& stream, InformationManager* manager, Function* function = NULL);
+
 private:
-       Comment(uint64_t address);
-       Comment(uint64_t address, Function* location);
+       Comment(uint64_t address, InformationManager* manager);
+       Comment(uint64_t address, Function* location, InformationManager* manager);
 
        uint64_t address;
        Function* location;
+       InformationManager* manager;
        std::string text;
+
+       friend class InformationManager;
 };
 
 #endif /* INCLUDE__Comment_hxx */