KUnifiedPush
gotifypushprovider.cpp
48 connect(m_socket, &QWebSocket::textMessageReceived, this, &GotifyPushProvider::wsMessageReceived);
void disconnected(KUnifiedPush::AbstractPushProvider::Error error, const QString &errorMsg={})
Emitted after the connection to the push provider disconnected or failed to be established.
QJsonObject object() const const
QJsonDocument fromJson(const QByteArray &json, QJsonParseError *error)
QString number(int n, int base)
void setHeader(QNetworkRequest::KnownHeaders header, const QVariant &value)
Q_EMITQ_EMIT
ConnectedState
void clientUnregistered(const KUnifiedPush::Client &client, KUnifiedPush::AbstractPushProvider::Error error=NoError)
Emitted after successful client unregistration.
void disconnectFromProvider() override
Disconnect and existing connection to the push provider.
Definition: gotifypushprovider.cpp:72
int64_t Id
Base class for push provider protocol implementations.
Definition: abstractpushprovider.h:23
void registerClient(const Client &client) override
Register a new client with the provider.
Definition: gotifypushprovider.cpp:88
void stateChanged(QAbstractSocket::SocketState state)
QString errorString() const const
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void connected()
Emitted after the connection to the push provider has been established successfully.
void setScheme(const QString &scheme)
bool isValid() const const
void deleteLater()
void connectToProvider() override
Attempt to establish a connection to the push provider.
Definition: gotifypushprovider.cpp:34
QString toString(QUrl::FormattingOptions options) const const
QNetworkReply * post(const QNetworkRequest &request, QIODevice *data)
QJsonObject::iterator insert(const QString &key, const QJsonValue &value)
void close(QWebSocketProtocol::CloseCode closeCode, const QString &reason)
bool isEmpty() const const
QByteArray toUtf8() const const
QVariant value(const QString &key, const QVariant &defaultValue) const const
void messageReceived(const KUnifiedPush::Message &msg)
Inform about a received push notification.
Compact
@ ProviderRejected
communication worked, but the provider refused to complete the operation
Definition: abstractpushprovider.h:31
void setQuery(const QString &query, QUrl::ParsingMode mode)
void unregisterClient(const Client &client) override
Unregister a client from the provider.
Definition: gotifypushprovider.cpp:132
void setRawHeader(const QByteArray &headerName, const QByteArray &headerValue)
QString path(QUrl::ComponentFormattingOptions options) const const
void clientRegistered(const KUnifiedPush::Client &client, KUnifiedPush::AbstractPushProvider::Error error=NoError, const QString &errorMsg={})
Emitted after successful client registration.
ContentTypeHeader
void setPath(const QString &path, QUrl::ParsingMode mode)
NoError
void setParent(QObject *parent)
void finished()
void textMessageReceived(const QString &message)
bool loadSettings(const QSettings &settings) override
Load connection settings.
Definition: gotifypushprovider.cpp:26
void open(const QUrl &url)
QNetworkReply * deleteResource(const QNetworkRequest &request)
QString toString() const const
QAbstractSocket::SocketState state() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Dec 5 2023 03:51:24 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Dec 5 2023 03:51:24 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.