KUnifiedPush
autopushprovider.cpp
110 qCCritical(Log) << "Got registration for a different client!" << channelId << m_currentClient.remoteId;
122 m.content = QByteArray::fromBase64(msgObj.value("data"_L1).toString().toLatin1(), QByteArray::Base64UrlEncoding);
131 qCCritical(Log) << "Got unregistration for a different client!" << channelId << m_currentClient.remoteId;
174void AutopushProvider::acknowledgeMessage(const Client &client, const QString &messageIdentifier)
Base class for push provider protocol implementations.
Definition abstractpushprovider.h:26
void messageReceived(const KUnifiedPush::Message &msg)
Inform about a received push notification.
virtual void doChangeUrgency(Urgency urgency)
Re-implement if urgency leve changes are done as a separate command.
Definition abstractpushprovider.cpp:40
void connected()
Emitted after the connection to the push provider has been established successfully.
Urgency urgency() const
The urgency level currently used by this provider.
Definition abstractpushprovider.cpp:51
void clientUnregistered(const KUnifiedPush::Client &client, KUnifiedPush::AbstractPushProvider::Error error=NoError)
Emitted after successful client unregistration.
void disconnected(KUnifiedPush::AbstractPushProvider::Error error, const QString &errorMsg={})
Emitted after the connection to the push provider disconnected or failed to be established.
void urgencyChanged()
Emitted when the urgency level change request has been executed.
void clientRegistered(const KUnifiedPush::Client &client, KUnifiedPush::AbstractPushProvider::Error error=NoError, const QString &errorMsg={})
Emitted after successful client registration.
@ ProviderRejected
communication worked, but the provider refused to complete the operation
Definition abstractpushprovider.h:33
void messageAcknowledged(const KUnifiedPush::Client &client, const QString &messageIdentifier)
Emitted after a message reception has been acknowledge to the push server.
void registerClient(const Client &client) override
Register a new client with the provider.
Definition autopushprovider.cpp:144
void unregisterClient(const Client &client) override
Unregister a client from the provider.
Definition autopushprovider.cpp:162
void doChangeUrgency(Urgency urgency) override
Re-implement if urgency leve changes are done as a separate command.
Definition autopushprovider.cpp:191
bool loadSettings(const QSettings &settings) override
Load connection settings.
Definition autopushprovider.cpp:31
void acknowledgeMessage(const Client &client, const QString &messageIdentifier) override
Acknowledge a message.
Definition autopushprovider.cpp:174
void connectToProvider(Urgency urgency) override
Attempt to establish a connection to the push provider.
Definition autopushprovider.cpp:43
void disconnectFromProvider() override
Disconnect and existing connection to the push provider.
Definition autopushprovider.cpp:83
Q_SCRIPTABLE CaptureState status()
int64_t Id
ConnectedState
Base64UrlEncoding
QByteArray fromBase64(const QByteArray &base64, Base64Options options)
Compact
QJsonDocument fromJson(const QByteArray &json, QJsonParseError *error)
QJsonObject object() const const
QJsonValue value(QLatin1StringView key) const const
QString toString() const const
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void beginGroup(QAnyStringView prefix)
void setValue(QAnyStringView key, const QVariant &value)
QVariant value(QAnyStringView key) const const
QString fromUtf8(QByteArrayView str)
QString & insert(qsizetype position, QChar ch)
bool isEmpty() const const
QByteArray toUtf8() const const
VeryCoarseTimer
void timeout()
WithoutBraces
QUuid createUuid()
QString toString(StringFormat mode) const const
QString toString() const const
qint64 sendTextMessage(const QString &message)
void stateChanged(QAbstractSocket::SocketState state)
void textMessageReceived(const QString &message)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Apr 18 2025 12:16:55 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Apr 18 2025 12:16:55 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.