Class: Qt::DBusReply
Instance Method Summary collapse
- #error ⇒ Object
-
#initialize(reply) ⇒ DBusReply
constructor
A new instance of DBusReply.
- #isValid ⇒ Object
- #valid? ⇒ Boolean
- #value ⇒ Object
Constructor Details
#initialize(reply) ⇒ DBusReply
Returns a new instance of DBusReply.
852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 |
# File 'lib/Qt/qtruby4.rb', line 852 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 |
Instance Method Details
#error ⇒ Object
883 884 885 |
# File 'lib/Qt/qtruby4.rb', line 883 def error return @error end |
#isValid ⇒ Object
871 872 873 |
# File 'lib/Qt/qtruby4.rb', line 871 def isValid return !@error.isValid end |
#valid? ⇒ Boolean
875 876 877 |
# File 'lib/Qt/qtruby4.rb', line 875 def valid? return !@error.isValid end |
#value ⇒ Object
879 880 881 |
# File 'lib/Qt/qtruby4.rb', line 879 def value return @data.value end |