X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fcore%2FComment.hxx;h=45ed369a4d8eefa5613891e695ca3556c55dc59e;hp=ca3e89cb6ab017ff327738f18ebc4e800e9f1392;hb=HEAD;hpb=9fd091260777a95432902173a35e15a475f6f9f9 diff --git a/src/core/Comment.hxx b/src/core/Comment.hxx index ca3e89c..45ed369 100644 --- a/src/core/Comment.hxx +++ b/src/core/Comment.hxx @@ -6,6 +6,9 @@ class Function; class InformationManager; +class QXmlStreamWriter; +class QXmlStreamReader; + class Comment { public: bool isLocal() const {return location == NULL;} @@ -14,6 +17,10 @@ public: 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, InformationManager* manager); Comment(uint64_t address, Function* location, InformationManager* manager);