QXmpp
Version:0.9.3
|
00001 /* 00002 * Copyright (C) 2008-2014 The QXmpp developers 00003 * 00004 * Author: 00005 * Olivier Goffart <ogoffart@woboq.com> 00006 * 00007 * Source: 00008 * https://github.com/qxmpp-project/qxmpp 00009 * 00010 * This file is a part of QXmpp library. 00011 * 00012 * This library is free software; you can redistribute it and/or 00013 * modify it under the terms of the GNU Lesser General Public 00014 * License as published by the Free Software Foundation; either 00015 * version 2.1 of the License, or (at your option) any later version. 00016 * 00017 * This library is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00020 * Lesser General Public License for more details. 00021 * 00022 */ 00023 00024 #ifndef QXMPPRESULTSET_H 00025 #define QXMPPRESULTSET_H 00026 00027 #include <QDateTime> 00028 00029 #include "QXmppStanza.h" 00030 00033 00034 class QXMPP_EXPORT QXmppResultSetQuery 00035 { 00036 public: 00037 QXmppResultSetQuery(); 00038 00039 int max() const; 00040 void setMax(int max); 00041 00042 int index() const; 00043 void setIndex(int index); 00044 00045 QString before() const; 00046 void setBefore(const QString &before ); 00047 00048 QString after() const; 00049 void setAfter(const QString &after ); 00050 00051 bool isNull() const; 00052 00054 void parse(const QDomElement &element); 00055 void toXml(QXmlStreamWriter *writer) const; 00057 00058 private: 00059 int m_index; 00060 int m_max; 00061 QString m_after; 00062 QString m_before; 00063 }; 00064 00067 00068 class QXMPP_EXPORT QXmppResultSetReply 00069 { 00070 public: 00071 QXmppResultSetReply(); 00072 00073 QString first() const; 00074 void setFirst(const QString &first ); 00075 00076 QString last() const; 00077 void setLast(const QString &last ); 00078 00079 int count() const; 00080 void setCount(int count); 00081 00082 int index() const; 00083 void setIndex(int index); 00084 00085 bool isNull() const; 00086 00088 void parse(const QDomElement &element); 00089 void toXml(QXmlStreamWriter *writer) const; 00091 00092 private: 00093 int m_count; 00094 int m_index; 00095 QString m_first; 00096 QString m_last; 00097 }; 00098 00099 #endif // QXMPPRESULTSET_H