QXmpp Version: 1.10.0
QXmppServerPlugin.h
1// SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef QXMPPSERVERPLUGIN_H
6#define QXMPPSERVERPLUGIN_H
7
8#include "QXmppGlobal.h"
9
10#include <QtPlugin>
11
12class QXmppServer;
14
15class QXMPP_EXPORT QXmppServerPluginInterface
16{
17public:
19 virtual QXmppServerExtension *create(const QString &key) = 0;
20
22 virtual QStringList keys() const = 0;
23};
24
25Q_DECLARE_INTERFACE(QXmppServerPluginInterface, "com.googlecode.qxmpp.ServerPlugin/1.0")
26
27
29
30class QXMPP_EXPORT QXmppServerPlugin : public QObject, public QXmppServerPluginInterface
31{
32 Q_OBJECT
33 Q_INTERFACES(QXmppServerPluginInterface)
34
35public:
39 QXmppServerExtension *create(const QString &key) override = 0;
40
43 QStringList keys() const override = 0;
44};
45
46#endif
The QXmppServerExtension class is the base class for QXmppServer extensions.
Definition: QXmppServerExtension.h:29
The QXmppServerPlugin class is the base class for QXmppServer plugins.
Definition: QXmppServerPlugin.h:31
QXmppServerExtension * create(const QString &key) override=0
QStringList keys() const override=0
The QXmppServer class represents an XMPP server.
Definition: QXmppServer.h:41