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

module TestNameSpace

class Test3 < KDE::ConfigSkeleton

  #
  # Set Enable automatic saving of calendar
  #
  def setAutoSave(v)
    item = findItem("AutoSave")
    if !item.immutable?
      item.property = @autoSave = Qt::Variant.fromValue(v)
    end
  end

  def autoSave=(v)
    setAutoSave(v)
  end

  #
  # Get Enable automatic saving of calendar
  #
  def autoSave
    @autoSave = findItem("AutoSave").property
    return @autoSave.value
  end

  #
  # Get Item object corresponding to AutoSave()
  #
  def autoSaveItem
    return @autoSaveItem
  end

  #
  # Set Blubb
  #
  def setBlubb(v)
    item = findItem("Blubb")
    if !item.immutable?
      item.property = @blubb = Qt::Variant.fromValue(v)
    end
  end

  def blubb=(v)
    setBlubb(v)
  end

  #
  # Get Blubb
  #
  def blubb
    @blubb = findItem("Blubb").property
    return @blubb.value
  end

  #
  # Get Item object corresponding to Blubb()
  #
  def blubbItem
    return @blubbItem
  end

  #
  # Set BlahBlah
  #
  def setBlahBlah(v)
    item = findItem("BlahBlah")
    if !item.immutable?
      item.property = @blahBlah = Qt::Variant.fromValue(v)
    end
  end

  def blahBlah=(v)
    setBlahBlah(v)
  end

  #
  # Get BlahBlah
  #
  def blahBlah
    @blahBlah = findItem("BlahBlah").property
    return @blahBlah.value
  end

  #
  # Get Item object corresponding to BlahBlah()
  #
  def blahBlahItem
    return @blahBlahItem
  end

  #
  # Set MyPassword
  #
  def setMyPassword(v)
    item = findItem("MyPassword")
    if !item.immutable?
      item.property = @myPassword = Qt::Variant.fromValue(v)
    end
  end

  def myPassword=(v)
    setMyPassword(v)
  end

  #
  # Get MyPassword
  #
  def myPassword
    @myPassword = findItem("MyPassword").property
    return @myPassword.value
  end

  #
  # Get Item object corresponding to MyPassword()
  #
  def myPasswordItem
    return @myPasswordItem
  end

  def initialize()
    super("test3rc")

    # General
    @autoSave = Qt::Variant.fromValue(false)

    # Blah
    @blubb = Qt::Variant.fromValue(0)
    @blahBlah = Qt::Variant.fromValue("")
    @myPassword = Qt::Variant.fromValue("")
    setCurrentGroup("General")

    @autoSaveItem = ItemBool.new(currentGroup(), "Auto Save", @autoSave.value, false)
    @autoSaveItem.property = @autoSave
    addItem(@autoSaveItem, "AutoSave")

    setCurrentGroup("Blah")

    @blubbItem = ItemInt.new(currentGroup(), "Blubb", @blubb.value, 10)
    @blubbItem.property = @blubb
    addItem(@blubbItem)
    @blahBlahItem = ItemString.new(currentGroup(), "BlahBlah", @blahBlah.value, "a string")
    @blahBlahItem.property = @blahBlah
    addItem(@blahBlahItem)
    @myPasswordItem = ItemPassword.new(currentGroup(), "MyPassword", @myPassword.value)
    @myPasswordItem.property = @myPassword
    addItem(@myPasswordItem)
  end

end
end
