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 QXmppIq::Type Q_DECL_DEPRECATED getType() const;
00063
00064 protected:
00065 virtual void parseElementFromChild(const QDomElement &element);
00066 virtual void toXmlElementFromChild(QXmlStreamWriter *writer) const;
00068
00069 private:
00070 QString getTypeStr() const;
00071 void setTypeFromStr(const QString& str);
00072
00073 Type m_type;
00074 };
00075
00076 #endif // QXMPPIQ_H