static public Method

Internal.getMocArguments(reply_type, member)

There's no documentation for this item.

Source Code

# File qt/qtruby4.rb, line 2387
def Internal.getMocArguments(reply_type, member)
        argStr = member.sub(/.*\(/, '').sub(/\)$/, '')
        args = argStr.scan(/([^,]*<[^>]+>)|([^,]+)/)
        args.unshift reply_type
        mocargs = allocateMocArguments(args.length)
        args.each_with_index do |arg, i|
                arg = arg.to_s
                a = arg.sub(/^const\s+/, '')
                a = (a =~ /^(bool|int|double|char\*|QString)&?$/) ? $1 : 'ptr'
                valid = setMocType(mocargs, i, arg, a)
        end
        result = []
        result << args.length << mocargs
        result
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.