Method: Qt::DBusReply#initialize
- Defined in:
- lib/Qt/qtruby4.rb
#initialize(reply) ⇒ DBusReply
Returns a new instance of DBusReply.
869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 |
# File 'lib/Qt/qtruby4.rb', line 869 def initialize(reply) @error = Qt::DBusError.new(reply) if @error.valid? @data = Qt::Variant.new return end if reply.arguments.length >= 1 @data = reply.arguments[0] return end # error @error = Qt::DBusError.new( Qt::DBusError::InvalidSignature, "Unexpected reply signature" ) @data = Qt::Variant.new # clear it end |