3
* Copyright (C) 2003 Justin Karneges
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public
7
* License as published by the Free Software Foundation; either
8
* version 2.1 of the License, or (at your option) any later version.
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Lesser General Public License for more details.
15
* You should have received a copy of the GNU Lesser General Public
16
* License along with this library; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
34
class Task : public QObject
40
Task(Client *, bool isRoot);
44
Client *client() const;
45
QDomDocument *doc() const;
49
int statusCode() const;
50
const QString & statusString() const;
52
void go(bool autoDelete=false);
53
virtual bool take(const QDomElement &);
61
virtual void onDisconnect();
62
void send(const QDomElement &);
63
void setSuccess(int code=0, const QString &str="");
64
void setError(const QDomElement &);
65
void setError(int code=0, const QString &str="");
66
void debug(const char *, ...);
67
void debug(const QString &);
68
bool iqVerify(const QDomElement &x, const Jid &to, const QString &id, const QString &xmlns="");
71
void clientDisconnected();