Loading...
Searching...
No Matches
QXmppExternalServiceDiscoveryManager.h
// SPDX-FileCopyrightText: 2023 Tibor Csötönyi <work@taibsu.de>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPEXTERNALSERVICEDISCOVERYMANAGER_H
#define QXMPPEXTERNALSERVICEDISCOVERYMANAGER_H
#include "QXmppClientExtension.h"
#include "QXmppError.h"
#include "QXmppExternalService.h"
#include "QXmppTask.h"
#include <variant>
class QDateTime;
class QXmppExternalServicePrivate;
class QXMPP_EXPORT QXmppExternalServiceDiscoveryManager : public QXmppClientExtension
{
Q_OBJECT
public:
QXmppExternalServiceDiscoveryManager();
~QXmppExternalServiceDiscoveryManager();
using ServicesResult = std::variant<QVector<QXmppExternalService>, QXmppError>;
QXmppTask<ServicesResult> requestServices(const QString &jid, const QString &node = {});
QStringList discoveryFeatures() const override;
};
#endif // QXMPPEXTERNALSERVICEDISCOVERYMANAGER_H
QXmppClientExtension
The QXmppClientExtension class is the base class for QXmppClient extensions.
Definition QXmppClientExtension.h:32
QXmppClientExtension::discoveryFeatures
virtual QStringList discoveryFeatures() const
Definition QXmppClientExtension.cpp:22
QXmppTask
Definition QXmppTask.h:62
QXmppError
Definition QXmppError.h:17