diff options
Diffstat (limited to 'src/Data/Info.h')
-rw-r--r-- | src/Data/Info.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Data/Info.h b/src/Data/Info.h index bc51855..1678b81 100644 --- a/src/Data/Info.h +++ b/src/Data/Info.h @@ -21,6 +21,7 @@ #define ZOOMEDIT_DATA_INFO_H_ #include <libxml++/nodes/element.h> +#include <libxml++/nodes/textnode.h> namespace ZoomEdit { namespace Data { @@ -35,6 +36,24 @@ class Info { public: Info(xmlpp::Element *node); + + const Glib::ustring& getName() const { + return name; + } + + void setName(const Glib::ustring &n) { + name = n; + nameNode->get_child_text()->set_content(n); + } + + const Glib::ustring& getDescription() const { + return desc; + } + + void setDescription(const Glib::ustring &d) { + desc = d; + descNode->get_child_text()->set_content(d); + } }; } |