qdbusmessage.sip 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. // qdbusmessage.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 QDBusMessage
  22. {
  23. %TypeHeaderCode
  24. #include <qdbusmessage.h>
  25. %End
  26. public:
  27. enum MessageType
  28. {
  29. InvalidMessage,
  30. MethodCallMessage,
  31. ReplyMessage,
  32. ErrorMessage,
  33. SignalMessage,
  34. };
  35. QDBusMessage();
  36. QDBusMessage(const QDBusMessage &other);
  37. ~QDBusMessage();
  38. static QDBusMessage createSignal(const QString &path, const QString &interface, const QString &name);
  39. static QDBusMessage createMethodCall(const QString &service, const QString &path, const QString &interface, const QString &method);
  40. static QDBusMessage createError(const QString &name, const QString &msg);
  41. static QDBusMessage createError(const QDBusError &error);
  42. static QDBusMessage createError(QDBusError::ErrorType type, const QString &msg);
  43. QDBusMessage createReply(const QList<QVariant> &arguments = QList<QVariant>()) const;
  44. QDBusMessage createReply(const QVariant &argument) const;
  45. QDBusMessage createErrorReply(const QString &name, const QString &msg) const;
  46. QDBusMessage createErrorReply(const QDBusError &error) const;
  47. QDBusMessage createErrorReply(QDBusError::ErrorType type, const QString &msg) const;
  48. QString service() const;
  49. QString path() const;
  50. QString interface() const;
  51. QString member() const;
  52. QString errorName() const;
  53. QString errorMessage() const;
  54. QDBusMessage::MessageType type() const;
  55. QString signature() const;
  56. bool isReplyRequired() const;
  57. void setDelayedReply(bool enable) const;
  58. bool isDelayedReply() const;
  59. void setAutoStartService(bool enable);
  60. bool autoStartService() const;
  61. void setArguments(const QList<QVariant> &arguments);
  62. QList<QVariant> arguments() const;
  63. QDBusMessage &operator<<(const QVariant &arg);
  64. void swap(QDBusMessage &other /Constrained/);
  65. static QDBusMessage createTargetedSignal(const QString &service, const QString &path, const QString &interface, const QString &name);
  66. void setInteractiveAuthorizationAllowed(bool enable);
  67. bool isInteractiveAuthorizationAllowed() const;
  68. };