static public Method

DBusReply.new(reply)

There's no documentation for this item.

Source Code

# File qt/qtruby4.rb, line 513
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
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.