summaryrefslogtreecommitdiff
path: root/src/xmpp/xmpp_stanza.hpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-05-26 04:22:40 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-05-28 17:40:45 +0200
commit1c93afc9a7ec33d90c81062c3f1077b5cf84c212 (patch)
treecb6bb832454044a1bcdc436a0de4b131f7cf2db6 /src/xmpp/xmpp_stanza.hpp
parenta350caf6e0fb95263e929fde7dd4f58931f0825c (diff)
downloadbiboumi-1c93afc9a7ec33d90c81062c3f1077b5cf84c212.tar.gz
biboumi-1c93afc9a7ec33d90c81062c3f1077b5cf84c212.tar.bz2
biboumi-1c93afc9a7ec33d90c81062c3f1077b5cf84c212.tar.xz
biboumi-1c93afc9a7ec33d90c81062c3f1077b5cf84c212.zip
Change the way the namespaces are handled in the XmlNode class
Diffstat (limited to 'src/xmpp/xmpp_stanza.hpp')
-rw-r--r--src/xmpp/xmpp_stanza.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xmpp/xmpp_stanza.hpp b/src/xmpp/xmpp_stanza.hpp
index 476596b..cc8d53a 100644
--- a/src/xmpp/xmpp_stanza.hpp
+++ b/src/xmpp/xmpp_stanza.hpp
@@ -69,7 +69,7 @@ public:
/**
* Get a pointer to the first child element with that name
*/
- XmlNode* get_child(const std::string& name) const;
+ XmlNode* get_child(const std::string& name, const std::string& xmlns) const;
/**
* Add a node child to this node. Assign this node to the child’s parent.
* Returns a pointer to the newly added child.
@@ -87,6 +87,7 @@ public:
*/
void close();
XmlNode* get_parent() const;
+ void set_name(const std::string& name);
const std::string get_name() const;
/**
* Serialize the stanza into a string