KUnifiedPush

client.h
1/*
2 SPDX-FileCopyrightText: 2022 Volker Krause <vkrause@kde.org>
3 SPDX-License-Identifier: LGPL-2.0-or-later
4*/
5
6#ifndef KUNIFIEDPUSH_CLIENT_H
7#define KUNIFIEDPUSH_CLIENT_H
8
9#include <QMetaType>
10#include <QString>
11
12class QSettings;
13class OrgUnifiedpushConnector1Interface;
14
15namespace KUnifiedPush {
16
17/** Information about a registered client */
18class Client
19{
20public:
21 void store(QSettings &settings) const;
22 static Client load(const QString &token, QSettings &settings);
23
24 /** Contains all required information for a client. */
25 bool isValid() const;
26
27 /** Activate client on D-Bus. */
28 void activate() const;
29 /** D-Bus UnifiedPush connector interface. */
30 OrgUnifiedpushConnector1Interface connector() const;
31
32 QString serviceName;
33 QString token;
34 QString remoteId;
35 QString endpoint;
36 QString description;
37};
38
39}
40
41Q_DECLARE_METATYPE(KUnifiedPush::Client)
42
43#endif // KUNIFIEDPUSH_CLIENT_H
Information about a registered client.
Definition client.h:19
OrgUnifiedpushConnector1Interface connector() const
D-Bus UnifiedPush connector interface.
Definition client.cpp:52
void activate() const
Activate client on D-Bus.
Definition client.cpp:46
bool isValid() const
Contains all required information for a client.
Definition client.cpp:41
Client-side integration with UnifiedPush.
Definition connector.h:16
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 14 2024 11:51:55 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.