# This file is generated by rbkconfig_compiler from test10.kcfg.
# All changes you do to this file will be lost.

require 'singleton'

class Test10 < KDE::ConfigSkeleton
  include Singleton

  #
  # Get foo bar
  #
  def fooBar
    @fooBar = findItem("FooBar").property
    return @fooBar.value
  end

  #
  # Get bar foo
  #
  def barFoo
    @barFoo = findItem("BarFoo").property
    return @barFoo.value
  end

  def initialize()
    super("test10rc")

    # Foo
    @fooBar = Qt::Variant.fromValue(KDE::Url.new)
    @barFoo = Qt::Variant.fromValue([])
    setCurrentGroup("Foo")

    itemFooBar = ItemUrl.new(currentGroup(), "foo bar", @fooBar.value)
    itemFooBar.property = @fooBar
    addItem(itemFooBar, "FooBar")
    itemBarFoo = ItemUrlList.new(currentGroup(), "bar foo", @barFoo.value)
    itemBarFoo.property = @barFoo
    addItem(itemBarFoo, "BarFoo")
    readConfig
  end

end
