00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef QXMPPIQ_H
00026 #define QXMPPIQ_H
00027
00028 #include "QXmppStanza.h"
00029
00030
00031
00032
00033
00034 #include <QXmlStreamWriter>
00035
00039
00040 class QXmppIq : public QXmppStanza
00041 {
00042 public:
00044 enum Type
00045 {
00046 Error = 0,
00047 Get,
00048 Set,
00049 Result
00050 };
00051
00052 QXmppIq(QXmppIq::Type type = QXmppIq::Get);
00053
00054 QXmppIq::Type type() const;
00055 void setType(QXmppIq::Type);
00056
00058 void parse(const QDomElement &element);
00059 void toXml(QXmlStreamWriter *writer) const;
00060
00061
00062
00063 QXmppIq::Type Q_DECL_DEPRECATED getType() const;
00064
00065 protected:
00066 virtual void parseElementFromChild(const QDomElement &element);
00067 virtual void toXmlElementFromChild(QXmlStreamWriter *writer) const;
00069
00070 private:
00071 QString getTypeStr() const;
00072 void setTypeFromStr(const QString& str);
00073
00074 Type m_type;
00075 };
00076
00077 #endif // QXMPPIQ_H