From: Christoph Egger Date: Tue, 24 Mar 2015 15:58:37 +0000 (+0100) Subject: Fix last commit X-Git-Tag: v0.1~20 X-Git-Url: https://git.siccegge.de//index.cgi?a=commitdiff_plain;h=aa319613a727e4573733b02a537196cce3470ec1;p=frida%2Ffrida.git Fix last commit Test after doing fancy rewrite foo! --- diff --git a/src/core/Comment.cxx b/src/core/Comment.cxx index e864ef6..6ef19a2 100644 --- a/src/core/Comment.cxx +++ b/src/core/Comment.cxx @@ -2,6 +2,7 @@ #include "Function.hxx" #include "InformationManager.hxx" #include "events/ChangeCommentEvent.hxx" +#include "gui/qt.hxx" Comment::Comment(uint64_t address, InformationManager* manager) : address(address) 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);