3
* Copyright (C) 2006 Remko Troncon
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* as published by the Free Software Foundation; either version 2
8
* of the License, or (at your option) any later version.
10
* This program 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
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this library; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30
#include "xmpp_features.h"
38
class CapsManager : public QObject
43
CapsManager(XMPP::Client*);
46
void setEnabled(bool);
48
void updateCaps(const Jid& jid, const QString& node, const QString& ver, const QString& ext);
49
void disableCaps(const Jid& jid);
50
bool capsEnabled(const Jid& jid) const;
51
XMPP::Features features(const Jid& jid) const;
52
QString clientName(const Jid& jid) const;
53
QString clientVersion(const Jid& jid) const;
57
* This signal is emitted when the feature list of a given JID have changed.
59
void capsChanged(const Jid& jid);
63
void capsRegistered(const CapsSpec&);
66
void requestDiscoInfo(const Jid& jid, const QString& node);
69
XMPP::Client* client_;
71
QMap<QString,CapsSpec> capsSpecs_;
72
QMap<CapsSpec,QList<QString> > capsJids_;