Test after doing fancy rewrite foo!
#include "Function.hxx"
#include "InformationManager.hxx"
#include "events/ChangeCommentEvent.hxx"
+#include "gui/qt.hxx"
Comment::Comment(uint64_t address, InformationManager* manager)
: address(address)
class Function;
class InformationManager;
+class QXmlStreamWriter;
+class QXmlStreamReader;
+
class Comment {
public:
bool isLocal() const {return location == NULL;}
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);