Fix last commit
authorChristoph Egger <Christoph.Egger@fau.de>
Tue, 24 Mar 2015 15:58:37 +0000 (16:58 +0100)
committerChristoph Egger <Christoph.Egger@fau.de>
Tue, 24 Mar 2015 15:58:37 +0000 (16:58 +0100)
Test after doing fancy rewrite foo!

src/core/Comment.cxx
src/core/Comment.hxx

index e864ef673cb71abc182a0b51cbc1d2aa8528a667..6ef19a2baa09dfa99186e8ddb359a149f27336d3 100644 (file)
@@ -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)
index ca3e89cb6ab017ff327738f18ebc4e800e9f1392..45ed369a4d8eefa5613891e695ca3556c55dc59e 100644 (file)
@@ -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);