Sha256: 7b78f293adc91f1d1130ceeb44d635e7bd5af507269c798619a3cc4108ce0604

Contents?: true

Size: 1.04 KB

Versions: 15

Compression:

Stored size: 1.04 KB

Contents

# Copyright (c) 2023 M.J.N. Corino, The Netherlands
#
# This software is released under the MIT license.

###
# wxRuby3 Defs director
###

module WXRuby3

  class Director

    class DialUpManager < Director

      def setup
        super
        spec.gc_as_untracked
        spec.make_abstract 'wxDialUpManager'
        spec.disable_proxies
        spec.ignore 'wxDialUpManager::GetISPNames', ignore_doc: false
        spec.add_extend_code 'wxDialUpManager', <<~__HEREDOC
          VALUE get_isp_names() const
          {
            VALUE rb_isps = rb_ary_new();
            wxArrayString isps;
            size_t n_isps = $self->GetISPNames(isps);
            for (size_t i=0; i<n_isps ;++i)
            {
              rb_ary_push(rb_isps, WXSTR_TO_RSTR(isps.Item(i)));
            }
            return rb_isps;
          }
          __HEREDOC
        spec.map 'wxArrayString& names', swig: false do
          map_in ignore: true, code: ''
          map_out ignore: 'size_t'
          map_argout as: 'Array<String>'
        end
      end

    end

  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
wxruby3-1.3.1 rakelib/lib/director/dialup_manager.rb
wxruby3-1.3.0 rakelib/lib/director/dialup_manager.rb
wxruby3-1.2.1 rakelib/lib/director/dialup_manager.rb
wxruby3-1.2.0 rakelib/lib/director/dialup_manager.rb
wxruby3-1.1.2 rakelib/lib/director/dialup_manager.rb
wxruby3-1.1.1 rakelib/lib/director/dialup_manager.rb
wxruby3-1.1.0 rakelib/lib/director/dialup_manager.rb
wxruby3-1.0.1 rakelib/lib/director/dialup_manager.rb
wxruby3-0.9.8 rakelib/lib/director/dialup_manager.rb
wxruby3-0.9.7 rakelib/lib/director/dialup_manager.rb
wxruby3-0.9.5 rakelib/lib/director/dialup_manager.rb
wxruby3-0.9.4 rakelib/lib/director/dialup_manager.rb
wxruby3-0.9.3 rakelib/lib/director/dialup_manager.rb
wxruby3-0.9.2 rakelib/lib/director/dialup_manager.rb
wxruby3-0.9.1 rakelib/lib/director/dialup_manager.rb