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
21
#ifndef XMPP_FEATURES_H
22
#define XMPP_FEATURES_H
24
#include <QStringList>
34
Features(const QStringList &);
35
Features(const QString &);
38
QStringList list() const; // actual featurelist
39
void setList(const QStringList &);
40
void addFeature(const QString&);
43
bool canRegister() const;
44
bool canSearch() const;
45
bool canMulticast() const;
46
bool canGroupchat() const;
47
bool canVoice() const;
48
bool canDisco() const;
49
bool canChatState() const;
50
bool canCommand() const;
51
bool isGateway() const;
52
bool haveVCard() const;
65
// private Psi actions
70
bool test(const QStringList &) const;
73
static QString name(long id);
74
static QString name(const QString &feature);
77
static long id(const QString &feature);
78
static QString feature(long id);