ruby-qt6-qtdbus 2.1.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3414aa8397d8fbaa8cce955436d681a1d8d8bd21e181f8f240c94634f58a0176
4
- data.tar.gz: 31e16bafd846d404ca27eb7f62526886db7417f90a14c8b1f6ca22ac67e559a6
3
+ metadata.gz: 921610a9bbaf288cc955aa97e66cfddb1d9d8894be99a2d0e882f42e7df6360d
4
+ data.tar.gz: 95f78476b4619d26077d0655c20acb99ef7eb456ed35fbd10ce0fd600569311e
5
5
  SHA512:
6
- metadata.gz: e1daef53964e33c6f29d3987225cb69f0147ac6c916e6b43562da9df8cc8f08f4b22cd2da3368c8aafff108dd75ec0d0d0a0debdf5afb49233c6cfaf0fc005a7
7
- data.tar.gz: 6b199a8a13f9dff988f9bbc057da350fa93c08810278aabe46124943324bc4edb390fc1d27b2e1b30f43a7cda4e1efd3bef5c397a5d7d26903c1595cc3117b9f
6
+ metadata.gz: 24e7819bce613e65c31682306877f6f5a898769235920d877968dc914aa835dccaa20cc31185af45604c8e07d02b15fde17998361975da6347bffcd3c575b899
7
+ data.tar.gz: 40de43f58499818ab0bd956934465a2d15d087d3bf4236ad8d9b52eb8943f6bf12a8cc9e318e260d1e78fd9f61a744828d96c58fc7298331508c2e96fa660243
@@ -9,7 +9,8 @@ void Init_qdbusabstractadaptor(Module rb_mQt6QtDBus)
9
9
  {
10
10
  rb_cQDBusAbstractAdaptor =
11
11
  // RubyQt6::QtDBus::QDBusAbstractAdaptor
12
- define_class_under<QDBusAbstractAdaptor, QObject>(rb_mQt6QtDBus, "QDBusAbstractAdaptor")
12
+ define_qlass_under<QDBusAbstractAdaptor, QObject>(rb_mQt6QtDBus, "QDBusAbstractAdaptor")
13
13
  // RubyQt6-Defined Functions
14
+ .define_singleton_function("_qobject_cast", [](QObject *object) -> const QDBusAbstractAdaptor * { return qobject_cast<QDBusAbstractAdaptor *>(object); })
14
15
  .define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QDBusAbstractAdaptor::staticMetaObject; });
15
16
  }
@@ -9,8 +9,9 @@ void Init_qdbusabstractinterface(Module rb_mQt6QtDBus)
9
9
  {
10
10
  rb_cQDBusAbstractInterface =
11
11
  // RubyQt6::QtDBus::QDBusAbstractInterface
12
- define_class_under<QDBusAbstractInterface, QObject>(rb_mQt6QtDBus, "QDBusAbstractInterface")
12
+ define_qlass_under<QDBusAbstractInterface, QObject>(rb_mQt6QtDBus, "QDBusAbstractInterface")
13
13
  // RubyQt6-Defined Functions
14
+ .define_singleton_function("_qobject_cast", [](QObject *object) -> const QDBusAbstractInterface * { return qobject_cast<QDBusAbstractInterface *>(object); })
14
15
  .define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QDBusAbstractInterface::staticMetaObject; })
15
16
  // Public Functions
16
17
  .define_method("async_call_with_argument_list", &QDBusAbstractInterface::asyncCallWithArgumentList, Arg("method"), Arg("args"))
@@ -16,7 +16,7 @@ void Init_qdbusconnection(Module rb_mQt6QtDBus)
16
16
  {
17
17
  rb_cQDBusConnection =
18
18
  // RubyQt6::QtDBus::QDBusConnection
19
- define_class_under<QDBusConnection>(rb_mQt6QtDBus, "QDBusConnection")
19
+ define_qlass_under<QDBusConnection>(rb_mQt6QtDBus, "QDBusConnection")
20
20
  // Constructor
21
21
  .define_constructor(Constructor<QDBusConnection, const QString &>(), Arg("name"))
22
22
  // Public Functions
@@ -10,8 +10,9 @@ void Init_qdbusconnectioninterface(Module rb_mQt6QtDBus)
10
10
  {
11
11
  rb_cQDBusConnectionInterface =
12
12
  // RubyQt6::QtDBus::QDBusConnectionInterface
13
- define_class_under<QDBusConnectionInterface, QDBusAbstractInterface>(rb_mQt6QtDBus, "QDBusConnectionInterface")
13
+ define_qlass_under<QDBusConnectionInterface, QDBusAbstractInterface>(rb_mQt6QtDBus, "QDBusConnectionInterface")
14
14
  // RubyQt6-Defined Functions
15
+ .define_singleton_function("_qobject_cast", [](QObject *object) -> const QDBusConnectionInterface * { return qobject_cast<QDBusConnectionInterface *>(object); })
15
16
  .define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QDBusConnectionInterface::staticMetaObject; })
16
17
  // Public Functions
17
18
  .define_method("activatable_service_names", &QDBusConnectionInterface::activatableServiceNames)
@@ -12,7 +12,7 @@ void Init_qdbuserror(Module rb_mQt6QtDBus)
12
12
  {
13
13
  rb_cQDBusError =
14
14
  // RubyQt6::QtDBus::QDBusError
15
- define_class_under<QDBusError>(rb_mQt6QtDBus, "QDBusError")
15
+ define_qlass_under<QDBusError>(rb_mQt6QtDBus, "QDBusError")
16
16
  // Constructor
17
17
  .define_constructor(Constructor<QDBusError, const QDBusMessage&>(), Arg("message"))
18
18
  .define_constructor(Constructor<QDBusError, QDBusError::ErrorType, const QString &>(), Arg("type"), Arg("message"))
@@ -9,8 +9,9 @@ void Init_qdbusinterface(Module rb_mQt6QtDBus)
9
9
  {
10
10
  rb_cQDBusInterface =
11
11
  // RubyQt6::QtDBus::QDBusInterface
12
- define_class_under<QDBusInterface, QDBusAbstractInterface>(rb_mQt6QtDBus, "QDBusInterface")
12
+ define_qlass_under<QDBusInterface, QDBusAbstractInterface>(rb_mQt6QtDBus, "QDBusInterface")
13
13
  // RubyQt6-Defined Functions
14
+ .define_singleton_function("_qobject_cast", [](QObject *object) -> const QDBusInterface * { return qobject_cast<QDBusInterface *>(object); })
14
15
  .define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QDBusInterface::staticMetaObject; })
15
16
  // Constructor
16
17
  .define_constructor(Constructor<QDBusInterface, const QString &, const QString &, const QString &, const QDBusConnection &, QObject *>(), Arg("service"), Arg("path"), Arg("interface"), Arg("connection"), Arg("parent"));
@@ -10,7 +10,7 @@ void Init_qdbusmessage(Module rb_mQt6QtDBus)
10
10
  {
11
11
  rb_cQDBusMessage =
12
12
  // RubyQt6::QtDBus::QDBusMessage
13
- define_class_under<QDBusMessage>(rb_mQt6QtDBus, "QDBusMessage")
13
+ define_qlass_under<QDBusMessage>(rb_mQt6QtDBus, "QDBusMessage")
14
14
  // Constructor
15
15
  .define_constructor(Constructor<QDBusMessage>())
16
16
  // Public Functions
@@ -14,8 +14,9 @@ void Init_qdbusservicewatcher(Module rb_mQt6QtDBus)
14
14
  {
15
15
  rb_cQDBusServiceWatcher =
16
16
  // RubyQt6::QtDBus::QDBusServiceWatcher
17
- define_class_under<QDBusServiceWatcher, QObject>(rb_mQt6QtDBus, "QDBusServiceWatcher")
17
+ define_qlass_under<QDBusServiceWatcher, QObject>(rb_mQt6QtDBus, "QDBusServiceWatcher")
18
18
  // RubyQt6-Defined Functions
19
+ .define_singleton_function("_qobject_cast", [](QObject *object) -> const QDBusServiceWatcher * { return qobject_cast<QDBusServiceWatcher *>(object); })
19
20
  .define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QDBusServiceWatcher::staticMetaObject; })
20
21
  // Constructor
21
22
  .define_constructor(Constructor<QDBusServiceWatcher, QObject *>(), Arg("parent"))
@@ -10,7 +10,7 @@ void Init_qdbusvariant(Module rb_mQt6QtDBus)
10
10
 
11
11
  rb_cQDBusVariant =
12
12
  // RubyQt6::QtDBus::QDBusVariant
13
- define_class_under<QDBusVariant>(rb_mQt6QtDBus, "QDBusVariant")
13
+ define_qlass_under<QDBusVariant>(rb_mQt6QtDBus, "QDBusVariant")
14
14
  // RubyQt6-Defined Functions
15
15
  .define_singleton_function("_qvariant_register_metatype", []() -> int { return qRegisterMetaType<QDBusVariant>(); })
16
16
  .define_singleton_function("_qvariant_from_value", [](const QDBusVariant &value) -> QVariant { return QVariant::fromValue(value); })
@@ -1,4 +1,5 @@
1
1
  #include "qtdbus-rb.hpp"
2
+ #include "qtdbuspreludes-rb.hpp"
2
3
  #include "qtdbusversion-rb.hpp"
3
4
  #include "qdbus-rb.hpp"
4
5
 
@@ -26,6 +27,7 @@ extern "C" void Init_qtdbus()
26
27
  Module rb_mQt6 = define_module("RubyQt6");
27
28
  Module rb_mQt6QtDBus = define_module_under(rb_mQt6, "QtDBus");
28
29
 
30
+ Init_qtdbuspreludes(rb_mQt6);
29
31
  Init_qtdbusversion(rb_mQt6QtDBus);
30
32
  Init_qdbus(rb_mQt6QtDBus);
31
33
 
@@ -0,0 +1,9 @@
1
+ #include "qtdbuspreludes-rb.hpp"
2
+ #include <rice/qt6/preludes/libqt6core.hpp>
3
+
4
+ RICE4RUBYQT6_USE_NAMESPACE
5
+
6
+ void Init_qtdbuspreludes(Module rb_mQt6)
7
+ {
8
+ declare_qlass_under_libqt6core(rb_mQt6);
9
+ }
@@ -0,0 +1,5 @@
1
+ #include <rice/qt6.hpp>
2
+
3
+ RICE4RUBYQT6_USE_NAMESPACE
4
+
5
+ void Init_qtdbuspreludes(Module rb_mQt6);
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RubyQt6
4
4
  module QtDBus
5
- QTDBUS_RUBYGEM_VERSION = "2.1.0"
5
+ QTDBUS_RUBYGEM_VERSION = "6.0.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-qt6-qtdbus
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 6.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Doe
@@ -15,28 +15,28 @@ dependencies:
15
15
  requirements:
16
16
  - - '='
17
17
  - !ruby/object:Gem::Version
18
- version: 2.1.0
18
+ version: 6.0.0
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - '='
24
24
  - !ruby/object:Gem::Version
25
- version: 2.1.0
25
+ version: 6.0.0
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: ruby-qt6-qtcore
28
28
  requirement: !ruby/object:Gem::Requirement
29
29
  requirements:
30
30
  - - "~>"
31
31
  - !ruby/object:Gem::Version
32
- version: 2.1.0
32
+ version: 6.0.0
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 2.1.0
39
+ version: 6.0.0
40
40
  description: Ruby Bindings for Qt D-Bus.
41
41
  email:
42
42
  - johndoe@example.com
@@ -77,6 +77,8 @@ files:
77
77
  - ext/qt6/qtdbus/qdbusvariant-rb.hpp
78
78
  - ext/qt6/qtdbus/qtdbus-rb.cpp
79
79
  - ext/qt6/qtdbus/qtdbus-rb.hpp
80
+ - ext/qt6/qtdbus/qtdbuspreludes-rb.cpp
81
+ - ext/qt6/qtdbus/qtdbuspreludes-rb.hpp
80
82
  - ext/qt6/qtdbus/qtdbusversion-rb.cpp
81
83
  - ext/qt6/qtdbus/qtdbusversion-rb.hpp
82
84
  - ext/qt6/qtdbus/t-qtdbus-rb.cpp