Loading...
Searching...
No Matches
QXmppServerPlugin.h
// SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPSERVERPLUGIN_H
#define QXMPPSERVERPLUGIN_H
#include "QXmppGlobal.h"
#include <QtPlugin>
class QXmppServer;
class QXmppServerExtension;
class QXMPP_EXPORT QXmppServerPluginInterface
{
public:
virtual QXmppServerExtension *create(const QString &key) = 0;
virtual QStringList keys() const = 0;
};
Q_DECLARE_INTERFACE(QXmppServerPluginInterface, "com.googlecode.qxmpp.ServerPlugin/1.0")
class QXMPP_EXPORT QXmppServerPlugin : public QObject, public QXmppServerPluginInterface
{
Q_OBJECT
Q_INTERFACES(QXmppServerPluginInterface)
public:
QXmppServerExtension *create(const QString &key) override = 0;
QStringList keys() const override = 0;
};
#endif
QXmppServerExtension
The QXmppServerExtension class is the base class for QXmppServer extensions.
Definition QXmppServerExtension.h:29
QXmppServerPlugin
The QXmppServerPlugin class is the base class for QXmppServer plugins.
Definition QXmppServerPlugin.h:31
QXmppServerPlugin::create
QXmppServerExtension * create(const QString &key) override=0
QXmppServerPlugin::keys
QStringList keys() const override=0
QXmppServer
The QXmppServer class represents an XMPP server.
Definition QXmppServer.h:41