QXmpp Version:0.7.6

- Main Page
- Modules
- Classes
- Files

- File List

All Classes Functions Variables Enumerations Enumerator Properties Groups
QXmppRegisterIq.h
1 /*
2 * Copyright (C) 2008-2012 The QXmpp developers
3 *
4 * Author:
5 * Jeremy Lainé
6 *
7 * Source:
8 * http://code.google.com/p/qxmpp
9 *
10 * This file is a part of QXmpp library.
11 *
12 * This library is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Lesser General Public
14 * License as published by the Free Software Foundation; either
15 * version 2.1 of the License, or (at your option) any later version.
16 *
17 * This library is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Lesser General Public License for more details.
21 *
22 */
23
24
25 #ifndef QXMPPREGISTERIQ_H
26 #define QXMPPREGISTERIQ_H
27
28 #include "QXmppDataForm.h"
29 #include "QXmppIq.h"
30
37
38 class QXMPP_EXPORT QXmppRegisterIq : public QXmppIq
39 {
40 public:
41 QString email() const;
42 void setEmail(const QString &email);
43
44 QXmppDataForm form() const;
45 void setForm(const QXmppDataForm &form);
46
47 QString instructions() const;
48 void setInstructions(const QString &instructions);
49
50 QString password() const;
51 void setPassword(const QString &username);
52
53 QString username() const;
54 void setUsername(const QString &username);
55
57 static bool isRegisterIq(const QDomElement &element);
59
60 protected:
62 void parseElementFromChild(const QDomElement &element);
63 void toXmlElementFromChild(QXmlStreamWriter *writer) const;
65
66 private:
67 QXmppDataForm m_form;
68 QString m_email;
69 QString m_instructions;
70 QString m_password;
71 QString m_username;
72 };
73
74 #endif