qdbusconnectioninterface.sip 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // qdbusconnectioninterface.sip generated by MetaSIP
  2. //
  3. // This file is part of the QtDBus Python extension module.
  4. //
  5. // Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. //
  7. // This file is part of PyQt6.
  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. class QDBusConnectionInterface : public QDBusAbstractInterface
  22. {
  23. %TypeHeaderCode
  24. #include <qdbusconnectioninterface.h>
  25. %End
  26. QDBusConnectionInterface(const QDBusConnection &connection, QObject *parent /TransferThis/);
  27. virtual ~QDBusConnectionInterface();
  28. public:
  29. enum ServiceQueueOptions
  30. {
  31. DontQueueService,
  32. QueueService,
  33. ReplaceExistingService,
  34. };
  35. enum ServiceReplacementOptions
  36. {
  37. DontAllowReplacement,
  38. AllowReplacement,
  39. };
  40. enum RegisterServiceReply
  41. {
  42. ServiceNotRegistered,
  43. ServiceRegistered,
  44. ServiceQueued,
  45. };
  46. QDBusReply<QStringList> registeredServiceNames() const /ReleaseGIL/;
  47. QDBusReply<QStringList> activatableServiceNames() const /ReleaseGIL/;
  48. QDBusReply<bool> isServiceRegistered(const QString &serviceName) const /ReleaseGIL/;
  49. QDBusReply<QString> serviceOwner(const QString &name) const /ReleaseGIL/;
  50. QDBusReply<bool> unregisterService(const QString &serviceName) /ReleaseGIL/;
  51. QDBusReply<QDBusConnectionInterface::RegisterServiceReply> registerService(const QString &serviceName, QDBusConnectionInterface::ServiceQueueOptions qoption = QDBusConnectionInterface::DontQueueService, QDBusConnectionInterface::ServiceReplacementOptions roption = QDBusConnectionInterface::DontAllowReplacement) /ReleaseGIL/;
  52. QDBusReply<unsigned int> servicePid(const QString &serviceName) const /ReleaseGIL/;
  53. QDBusReply<unsigned int> serviceUid(const QString &serviceName) const /ReleaseGIL/;
  54. QDBusReply<void> startService(const QString &name) /ReleaseGIL/;
  55. %If (Qt_6_10_0 -)
  56. QDBusReply<QMap<QString, QVariant>> serviceCredentials(const QString &serviceName) const /ReleaseGIL/;
  57. %End
  58. signals:
  59. void serviceRegistered(const QString &service);
  60. void serviceUnregistered(const QString &service);
  61. void serviceOwnerChanged(const QString &name, const QString &oldOwner, const QString &newOwner);
  62. void callWithCallbackFailed(const QDBusError &error, const QDBusMessage &call);
  63. protected:
  64. virtual void connectNotify(const QMetaMethod &);
  65. virtual void disconnectNotify(const QMetaMethod &);
  66. };