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 
12 class QSettings;
13 class OrgUnifiedpushConnector1Interface;
14 
15 namespace KUnifiedPush {
16 
17 /** Information about a registered client */
18 class Client
19 {
20 public:
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 
41 Q_DECLARE_METATYPE(KUnifiedPush::Client)
42 
43 #endif // KUNIFIEDPUSH_CLIENT_H
Client-side integration with UnifiedPush.
Definition: connector.h:16
bool isValid() const
Contains all required information for a client.
Definition: client.cpp:41
OrgUnifiedpushConnector1Interface connector() const
D-Bus UnifiedPush connector interface.
Definition: client.cpp:52
void activate() const
Activate client on D-Bus.
Definition: client.cpp:46
Information about a registered client.
Definition: client.h:18
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Thu Feb 15 2024 03:49:11 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.