// This file is generated by tdeconfig_compiler from kgpg.kcfg.
// All changes you do to this file will be lost.

#include "kgpgsettings.h"

#include <kstaticdeleter.h>

KGpgSettings *KGpgSettings::mSelf = 0;
static KStaticDeleter<KGpgSettings> staticKGpgSettingsDeleter;

KGpgSettings *KGpgSettings::self()
{
  if ( !mSelf ) {
    staticKGpgSettingsDeleter.setObject( mSelf, new KGpgSettings() );
    mSelf->readConfig();
  }

  return mSelf;
}

KGpgSettings::KGpgSettings(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "kgpgrc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "Decryption" ) );

  TDEConfigSkeleton::ItemString  *itemCustomDecrypt;
  itemCustomDecrypt = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "custom_decrypt" ), mCustomDecrypt );
  addItem( itemCustomDecrypt, TQString::fromLatin1( "CustomDecrypt" ) );

  setCurrentGroup( TQString::fromLatin1( "Encryption" ) );

  TDEConfigSkeleton::ItemString  *itemCustomEncryptionOptions;
  itemCustomEncryptionOptions = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "custom_option" ), mCustomEncryptionOptions );
  addItem( itemCustomEncryptionOptions, TQString::fromLatin1( "CustomEncryptionOptions" ) );
  TDEConfigSkeleton::ItemBool  *itemAllowCustomEncryptionOptions;
  itemAllowCustomEncryptionOptions = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "allow_custom_option" ), mAllowCustomEncryptionOptions, false );
  addItem( itemAllowCustomEncryptionOptions, TQString::fromLatin1( "AllowCustomEncryptionOptions" ) );
  TDEConfigSkeleton::ItemString  *itemFileKey;
  itemFileKey = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "file_key" ), mFileKey );
  addItem( itemFileKey, TQString::fromLatin1( "FileKey" ) );
  TDEConfigSkeleton::ItemBool  *itemAsciiArmor;
  itemAsciiArmor = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "Ascii_armor" ), mAsciiArmor, true );
  addItem( itemAsciiArmor, TQString::fromLatin1( "AsciiArmor" ) );
  TDEConfigSkeleton::ItemBool  *itemAllowUntrustedKeys;
  itemAllowUntrustedKeys = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "Allow_untrusted_keys" ), mAllowUntrustedKeys, false );
  addItem( itemAllowUntrustedKeys, TQString::fromLatin1( "AllowUntrustedKeys" ) );
  TDEConfigSkeleton::ItemBool  *itemHideUserID;
  itemHideUserID = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "Hide_user_ID" ), mHideUserID, false );
  addItem( itemHideUserID, TQString::fromLatin1( "HideUserID" ) );
  TDEConfigSkeleton::ItemBool  *itemShredSource;
  itemShredSource = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "shred_source" ), mShredSource, false );
  addItem( itemShredSource, TQString::fromLatin1( "ShredSource" ) );
  TDEConfigSkeleton::ItemBool  *itemPgpCompatibility;
  itemPgpCompatibility = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "PGP_compatibility" ), mPgpCompatibility, false );
  addItem( itemPgpCompatibility, TQString::fromLatin1( "PgpCompatibility" ) );
  TDEConfigSkeleton::ItemBool  *itemPgpExtension;
  itemPgpExtension = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "Pgp_extension" ), mPgpExtension, false );
  addItem( itemPgpExtension, TQString::fromLatin1( "PgpExtension" ) );

  setCurrentGroup( TQString::fromLatin1( "GPG Settings" ) );

  TDEConfigSkeleton::ItemPath  *itemGpgConfigPath;
  itemGpgConfigPath = new TDEConfigSkeleton::ItemPath( currentGroup(), TQString::fromLatin1( "gpg_config_path" ), mGpgConfigPath );
  addItem( itemGpgConfigPath, TQString::fromLatin1( "GpgConfigPath" ) );
  TDEConfigSkeleton::ItemString  *itemGroups;
  itemGroups = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "Groups" ), mGroups );
  addItem( itemGroups, TQString::fromLatin1( "Groups" ) );
  TDEConfigSkeleton::ItemBool  *itemOnlyAdditional;
  itemOnlyAdditional = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "OnlyAdditional" ), mOnlyAdditional, false );
  addItem( itemOnlyAdditional, TQString::fromLatin1( "OnlyAdditional" ) );
  TDEConfigSkeleton::ItemBool  *itemPubKeyring;
  itemPubKeyring = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "PubKeyring" ), mPubKeyring, false );
  addItem( itemPubKeyring, TQString::fromLatin1( "PubKeyring" ) );
  TDEConfigSkeleton::ItemBool  *itemPrivKeyring;
  itemPrivKeyring = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "PrivKeyring" ), mPrivKeyring, false );
  addItem( itemPrivKeyring, TQString::fromLatin1( "PrivKeyring" ) );
  TDEConfigSkeleton::ItemPath  *itemPubKeyringUrl;
  itemPubKeyringUrl = new TDEConfigSkeleton::ItemPath( currentGroup(), TQString::fromLatin1( "PubKeyringUrl" ), mPubKeyringUrl );
  addItem( itemPubKeyringUrl, TQString::fromLatin1( "PubKeyringUrl" ) );
  TDEConfigSkeleton::ItemPath  *itemPrivKeyringUrl;
  itemPrivKeyringUrl = new TDEConfigSkeleton::ItemPath( currentGroup(), TQString::fromLatin1( "PrivKeyringUrl" ), mPrivKeyringUrl );
  addItem( itemPrivKeyringUrl, TQString::fromLatin1( "PrivKeyringUrl" ) );

  setCurrentGroup( TQString::fromLatin1( "General Options" ) );

  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesPhotoProperties;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Disable" );
    valuesPhotoProperties.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Small" );
    valuesPhotoProperties.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Medium" );
    valuesPhotoProperties.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Big" );
    valuesPhotoProperties.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemPhotoProperties;
  itemPhotoProperties = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "photo properties" ), mPhotoProperties, valuesPhotoProperties, EnumPhotoProperties::Disable );
  addItem( itemPhotoProperties, TQString::fromLatin1( "PhotoProperties" ) );
  TDEConfigSkeleton::ItemBool  *itemFirstRun;
  itemFirstRun = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "First run" ), mFirstRun, true );
  addItem( itemFirstRun, TQString::fromLatin1( "FirstRun" ) );
  TDEConfigSkeleton::ItemSize  *itemEditorGeometry;
  itemEditorGeometry = new TDEConfigSkeleton::ItemSize( currentGroup(), TQString::fromLatin1( "Geometry" ), mEditorGeometry );
  addItem( itemEditorGeometry, TQString::fromLatin1( "EditorGeometry" ) );
  TDEConfigSkeleton::ItemBool  *itemShowTrust;
  itemShowTrust = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "show_trust" ), mShowTrust, true );
  addItem( itemShowTrust, TQString::fromLatin1( "ShowTrust" ) );
  TDEConfigSkeleton::ItemBool  *itemShowExpi;
  itemShowExpi = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "show_expi" ), mShowExpi, true );
  addItem( itemShowExpi, TQString::fromLatin1( "ShowExpi" ) );
  TDEConfigSkeleton::ItemBool  *itemShowSize;
  itemShowSize = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "show_size" ), mShowSize, true );
  addItem( itemShowSize, TQString::fromLatin1( "ShowSize" ) );
  TDEConfigSkeleton::ItemBool  *itemShowCreat;
  itemShowCreat = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "show_creat" ), mShowCreat, true );
  addItem( itemShowCreat, TQString::fromLatin1( "ShowCreat" ) );

  setCurrentGroup( TQString::fromLatin1( "User Interface" ) );

  TDEConfigSkeleton::ItemBool  *itemUseMouseSelection;
  itemUseMouseSelection = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "selection_clipboard" ), mUseMouseSelection, false );
  addItem( itemUseMouseSelection, TQString::fromLatin1( "UseMouseSelection" ) );
  TDEConfigSkeleton::ItemBool  *itemAutoStart;
  itemAutoStart = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "AutoStart" ), mAutoStart, false );
  addItem( itemAutoStart, TQString::fromLatin1( "AutoStart" ) );
  TDEConfigSkeleton::ItemBool  *itemRemoteFileWarn;
  itemRemoteFileWarn = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "remote_file_warn" ), mRemoteFileWarn, false );
  addItem( itemRemoteFileWarn, TQString::fromLatin1( "RemoteFileWarn" ) );
  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesLeftClick;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "KeyManager" );
    valuesLeftClick.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Editor" );
    valuesLeftClick.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemLeftClick;
  itemLeftClick = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "left_click" ), mLeftClick, valuesLeftClick );
  addItem( itemLeftClick, TQString::fromLatin1( "LeftClick" ) );
  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesEncryptedDropEvent;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "DecryptAndSave" );
    valuesEncryptedDropEvent.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "DecryptAndOpen" );
    valuesEncryptedDropEvent.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Ask" );
    valuesEncryptedDropEvent.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemEncryptedDropEvent;
  itemEncryptedDropEvent = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "encrypted_drop_event" ), mEncryptedDropEvent, valuesEncryptedDropEvent );
  addItem( itemEncryptedDropEvent, TQString::fromLatin1( "EncryptedDropEvent" ) );
  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesUnencryptedDropEvent;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Encrypt" );
    valuesUnencryptedDropEvent.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Sign" );
    valuesUnencryptedDropEvent.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Ask" );
    valuesUnencryptedDropEvent.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemUnencryptedDropEvent;
  itemUnencryptedDropEvent = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "unencrypted_drop_event" ), mUnencryptedDropEvent, valuesUnencryptedDropEvent );
  addItem( itemUnencryptedDropEvent, TQString::fromLatin1( "UnencryptedDropEvent" ) );
  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesSignMenu;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Disabled" );
    valuesSignMenu.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "AllFiles" );
    valuesSignMenu.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemSignMenu;
  itemSignMenu = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "sign_menu" ), mSignMenu, valuesSignMenu, EnumSignMenu::Disabled );
  addItem( itemSignMenu, TQString::fromLatin1( "SignMenu" ) );
  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesDecryptMenu;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Disabled" );
    valuesDecryptMenu.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "AllFiles" );
    valuesDecryptMenu.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "EncryptedFiles" );
    valuesDecryptMenu.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemDecryptMenu;
  itemDecryptMenu = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "decrypt_menu" ), mDecryptMenu, valuesDecryptMenu, EnumDecryptMenu::Disabled );
  addItem( itemDecryptMenu, TQString::fromLatin1( "DecryptMenu" ) );

  setCurrentGroup( TQString::fromLatin1( "TipOfDay" ) );

  TDEConfigSkeleton::ItemBool  *itemShowTipOfDay;
  itemShowTipOfDay = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "RunOnStart" ), mShowTipOfDay, true );
  addItem( itemShowTipOfDay, TQString::fromLatin1( "ShowTipOfDay" ) );

  setCurrentGroup( TQString::fromLatin1( "Key Colors" ) );

  TDEConfigSkeleton::ItemColor  *itemColorGood;
  itemColorGood = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "color_good" ), mColorGood, TQColor( 144,255,0 ) );
  addItem( itemColorGood, TQString::fromLatin1( "ColorGood" ) );
  TDEConfigSkeleton::ItemColor  *itemColorRev;
  itemColorRev = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "color_revoked" ), mColorRev, TQColor( 30,30,30 ) );
  addItem( itemColorRev, TQString::fromLatin1( "ColorRev" ) );
  TDEConfigSkeleton::ItemColor  *itemColorUnknown;
  itemColorUnknown = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "color_unknown" ), mColorUnknown, TQColor( 255,255,255 ) );
  addItem( itemColorUnknown, TQString::fromLatin1( "ColorUnknown" ) );
  TDEConfigSkeleton::ItemColor  *itemColorBad;
  itemColorBad = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "color_bad" ), mColorBad, TQColor( 172,0,0 ) );
  addItem( itemColorBad, TQString::fromLatin1( "ColorBad" ) );

  setCurrentGroup( TQString::fromLatin1( "Text Font" ) );

  TDEConfigSkeleton::ItemFont  *itemFont;
  itemFont = new TDEConfigSkeleton::ItemFont( currentGroup(), TQString::fromLatin1( "KEditFont" ), mFont, TDEGlobalSettings::fixedFont() );
  addItem( itemFont, TQString::fromLatin1( "Font" ) );

  setCurrentGroup( TQString::fromLatin1( "Key Servers" ) );

  TDEConfigSkeleton::ItemBool  *itemUseProxy;
  itemUseProxy = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "use_proxy" ), mUseProxy, false );
  addItem( itemUseProxy, TQString::fromLatin1( "UseProxy" ) );
}

KGpgSettings::~KGpgSettings()
{
  if ( mSelf == this )
    staticKGpgSettingsDeleter.setObject( mSelf, 0, false );
}

