QXmpp
Version:0.7.3
Main Page
Modules
Classes
Files
File List
All
Classes
Functions
Variables
Enumerations
Enumerator
Properties
Groups
src
base
QXmppResultSet.h
1
/*
2
* Copyright (C) 2008-2012 The QXmpp developers
3
*
4
* Author:
5
* Olivier Goffart <ogoffart@woboq.com>
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
#ifndef QXMPPRESULTSET_H
25
#define QXMPPRESULTSET_H
26
27
#include "QXmppElement.h"
28
#include <QDateTime>
29
30
class
QXmlStreamWriter;
31
class
QDomElement;
32
35
36
class
QXMPP_EXPORT
QXmppResultSetQuery
37
{
38
public
:
39
QXmppResultSetQuery
();
40
41
int
max()
const
;
42
void
setMax(
int
max);
43
44
int
index()
const
;
45
void
setIndex(
int
index);
46
47
QString before()
const
;
48
void
setBefore(
const
QString &before );
49
50
QString after()
const
;
51
void
setAfter(
const
QString &after );
52
53
bool
isNull()
const
;
54
56
void
parse(
const
QDomElement &element);
57
void
toXml(QXmlStreamWriter *writer)
const
;
59
60
private
:
61
int
m_index;
62
int
m_max;
63
QString m_after;
64
QString m_before;
65
};
66
69
70
class
QXMPP_EXPORT
QXmppResultSetReply
71
{
72
public
:
73
QXmppResultSetReply
();
74
75
QString first()
const
;
76
void
setFirst(
const
QString &first );
77
78
QString last()
const
;
79
void
setLast(
const
QString &last );
80
81
int
count()
const
;
82
void
setCount(
int
count);
83
84
int
index()
const
;
85
void
setIndex(
int
index);
86
87
bool
isNull()
const
;
88
90
void
parse(
const
QDomElement &element);
91
void
toXml(QXmlStreamWriter *writer)
const
;
93
94
private
:
95
int
m_count;
96
int
m_index;
97
QString m_first;
98
QString m_last;
99
};
100
101
#endif // QXMPPRESULTSET_H
Generated by
1.8.1.2