X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fcore%2FComment.hxx;h=45ed369a4d8eefa5613891e695ca3556c55dc59e;hp=98febe41392380150900cdbd4cfeed6e340022a8;hb=aa319613a727e4573733b02a537196cce3470ec1;hpb=d1b23c7274d6430ccc70bf2baf616437db9f5706 diff --git a/src/core/Comment.hxx b/src/core/Comment.hxx index 98febe4..45ed369 100644 --- a/src/core/Comment.hxx +++ b/src/core/Comment.hxx @@ -6,13 +6,21 @@ 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, InformationManager* manager); Comment(uint64_t address, Function* location, InformationManager* manager);