From aa319613a727e4573733b02a537196cce3470ec1 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Tue, 24 Mar 2015 16:58:37 +0100 Subject: [PATCH] Fix last commit Test after doing fancy rewrite foo! --- src/core/Comment.cxx | 1 + src/core/Comment.hxx | 7 +++++++ 2 files changed, 8 insertions(+) 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); -- 2.39.2