QXmpp Version:0.3.91
QXmppBindIq.h
00001 /*
00002  * Copyright (C) 2008-2011 The QXmpp developers
00003  *
00004  * Authors:
00005  *  Manjeet Dahiya
00006  *  Jeremy Lainé
00007  *
00008  * Source:
00009  *  http://code.google.com/p/qxmpp
00010  *
00011  * This file is a part of QXmpp library.
00012  *
00013  * This library is free software; you can redistribute it and/or
00014  * modify it under the terms of the GNU Lesser General Public
00015  * License as published by the Free Software Foundation; either
00016  * version 2.1 of the License, or (at your option) any later version.
00017  *
00018  * This library is distributed in the hope that it will be useful,
00019  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00021  * Lesser General Public License for more details.
00022  *
00023  */
00024 
00025 
00026 #ifndef QXMPPBINDIQ_H
00027 #define QXMPPBINDIQ_H
00028 
00029 #include "QXmppIq.h"
00030 
00035 
00036 class QXmppBindIq : public QXmppIq
00037 {
00038 public:
00039     QString jid() const;
00040     void setJid(const QString&);
00041 
00042     QString resource() const;
00043     void setResource(const QString&);
00044 
00046     static bool isBindIq(const QDomElement &element);
00048 
00049 protected:
00051     void parseElementFromChild(const QDomElement &element);
00052     void toXmlElementFromChild(QXmlStreamWriter *writer) const;
00054 
00055 private:
00056     QString m_jid;
00057     QString m_resource;
00058 };
00059 
00060 #endif // QXMPPBIND_H
 All Classes Functions Enumerations Enumerator Properties