diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-02-22 17:43:50 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-02-22 17:43:50 +0000 |
| commit | 48209ff6f17233b995b4a1dc9879a4ef15757c81 (patch) | |
| tree | fd64e7ee39ad6c7e3a4e601cd6cf674f8ad3fa4a /source/QXmppStanza.h | |
| parent | eddc6bebeed612f448bb1b59dfba1f942032b046 (diff) | |
| download | qxmpp-48209ff6f17233b995b4a1dc9879a4ef15757c81.tar.gz | |
make it possible to get/set stanza error code
Diffstat (limited to 'source/QXmppStanza.h')
| -rw-r--r-- | source/QXmppStanza.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/QXmppStanza.h b/source/QXmppStanza.h index d7365d03..6fde2cfc 100644 --- a/source/QXmppStanza.h +++ b/source/QXmppStanza.h @@ -80,11 +80,13 @@ public: Error(Type type, Condition cond, const QString& text=""); Error(const QString& type, const QString& cond, const QString& text=""); + void setCode(int code); void setText(const QString& text); void setCondition(Condition cond); void setConditionFromStr(const QString& cond); void setType(Type type); void setTypeFromStr(const QString& type); + int getCode() const; QString getText() const; Condition getCondition() const; Type getType() const; @@ -93,6 +95,7 @@ public: QString getTypeStr() const; private: + int m_code; Type m_type; Condition m_condition; QString m_text; |
