]> git.siccegge.de Git - frida/frida.git/blob - src/core/Comment.hxx
Make GUI Widget move Comments through the backend properly
[frida/frida.git] / src / core / Comment.hxx
1 #ifndef INCLUDE__Comment_hxx
2 #define INCLUDE__Comment_hxx
3
4 #include <string>
5
6 class Function;
7 class InformationManager;
8
9 class Comment {
10 public:
11 bool isLocal() const {return location == NULL;}
12
13 void setText(const std::string& text);
14 std::string getText() const {return text;}
15 uint64_t getAddress();
16 Function* getLocation();
17 private:
18 Comment(uint64_t address, InformationManager* manager);
19 Comment(uint64_t address, Function* location, InformationManager* manager);
20
21 uint64_t address;
22 Function* location;
23 InformationManager* manager;
24 std::string text;
25
26 friend class InformationManager;
27 };
28
29 #endif /* INCLUDE__Comment_hxx */