1// qdbusconnectioninterface.sip generated by MetaSIP
2//
3// This file is part of the QtDBus Python extension module.
4//
5// Copyright (c) 2021 Riverbank Computing Limited <info@riverbankcomputing.com>
6//
7// This file is part of PyQt5.
8//
9// This file may be used under the terms of the GNU General Public License
10// version 3.0 as published by the Free Software Foundation and appearing in
11// the file LICENSE included in the packaging of this file.  Please review the
12// following information to ensure the GNU General Public License version 3.0
13// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
14//
15// If you do not wish to use this file under the terms of the GPL version 3.0
16// then you may purchase a commercial license.  For more information contact
17// info@riverbankcomputing.com.
18//
19// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21
22
23class QDBusConnectionInterface : QDBusAbstractInterface
24{
25%TypeHeaderCode
26#include <qdbusconnectioninterface.h>
27%End
28
29    QDBusConnectionInterface(const QDBusConnection &connection, QObject *parent /TransferThis/);
30    virtual ~QDBusConnectionInterface();
31
32public:
33    enum ServiceQueueOptions
34    {
35        DontQueueService,
36        QueueService,
37        ReplaceExistingService,
38    };
39
40    enum ServiceReplacementOptions
41    {
42        DontAllowReplacement,
43        AllowReplacement,
44    };
45
46    enum RegisterServiceReply
47    {
48        ServiceNotRegistered,
49        ServiceRegistered,
50        ServiceQueued,
51    };
52
53    QDBusReply<QStringList> registeredServiceNames() const /ReleaseGIL/;
54%If (Qt_5_14_0 -)
55    QDBusReply<QStringList> activatableServiceNames() const /ReleaseGIL/;
56%End
57    QDBusReply<bool> isServiceRegistered(const QString &serviceName) const /ReleaseGIL/;
58    QDBusReply<QString> serviceOwner(const QString &name) const /ReleaseGIL/;
59    QDBusReply<bool> unregisterService(const QString &serviceName) /ReleaseGIL/;
60    QDBusReply<QDBusConnectionInterface::RegisterServiceReply> registerService(const QString &serviceName, QDBusConnectionInterface::ServiceQueueOptions qoption = QDBusConnectionInterface::DontQueueService, QDBusConnectionInterface::ServiceReplacementOptions roption = QDBusConnectionInterface::DontAllowReplacement) /ReleaseGIL/;
61    QDBusReply<unsigned int> servicePid(const QString &serviceName) const /ReleaseGIL/;
62    QDBusReply<unsigned int> serviceUid(const QString &serviceName) const /ReleaseGIL/;
63    QDBusReply<void> startService(const QString &name) /ReleaseGIL/;
64
65signals:
66    void serviceRegistered(const QString &service);
67    void serviceUnregistered(const QString &service);
68    void serviceOwnerChanged(const QString &name, const QString &oldOwner, const QString &newOwner);
69    void callWithCallbackFailed(const QDBusError &error, const QDBusMessage &call);
70
71protected:
72    virtual void connectNotify(const QMetaMethod &);
73    virtual void disconnectNotify(const QMetaMethod &);
74};
75