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

#include "configbase.h"

ConfigBase::ConfigBase(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "kcmcddbrc" ) )
{
  setCurrentGroup( TQString::fromLatin1( "Lookup" ) );

  TDEConfigSkeleton::ItemString  *itemHostname;
  itemHostname = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "hostname" ), mHostname, TQString::fromLatin1( "gnudb.gnudb.org" ) );
  addItem( itemHostname, TQString::fromLatin1( "hostname" ) );
  TDEConfigSkeleton::ItemInt  *itemPort;
  itemPort = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "port" ), mPort, 80 );
  addItem( itemPort, TQString::fromLatin1( "port" ) );
  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuescachePolicy;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "OnlyCache" );
    valuescachePolicy.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "UseCache" );
    valuescachePolicy.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "IgnoreCache" );
    valuescachePolicy.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemCachePolicy;
  itemCachePolicy = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "cachePolicy" ), mCachePolicy, valuescachePolicy, EnumCachePolicy::UseCache );
  addItem( itemCachePolicy, TQString::fromLatin1( "cachePolicy" ) );
  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valueslookupTransport;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "CDDBP" );
    valueslookupTransport.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "HTTP" );
    valueslookupTransport.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemLookupTransport;
  itemLookupTransport = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "lookupTransport" ), mLookupTransport, valueslookupTransport, EnumLookupTransport::HTTP );
  addItem( itemLookupTransport, TQString::fromLatin1( "lookupTransport" ) );
  TDEConfigSkeleton::ItemPathList  *itemCacheLocations;
  itemCacheLocations = new TDEConfigSkeleton::ItemPathList( currentGroup(), TQString::fromLatin1( "cacheLocations" ), mCacheLocations, TQDir::homeDirPath()+"/.cddb/" );
  addItem( itemCacheLocations, TQString::fromLatin1( "cacheLocations" ) );

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

  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuessubmitTransport;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "HTTP" );
    valuessubmitTransport.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "SMTP" );
    valuessubmitTransport.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemSubmitTransport;
  itemSubmitTransport = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "submitTransport" ), mSubmitTransport, valuessubmitTransport, EnumSubmitTransport::HTTP );
  addItem( itemSubmitTransport, TQString::fromLatin1( "submitTransport" ) );
  TDEConfigSkeleton::ItemString  *itemEmailAddress;
  itemEmailAddress = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "emailAddress" ), mEmailAddress );
  addItem( itemEmailAddress, TQString::fromLatin1( "emailAddress" ) );
  TDEConfigSkeleton::ItemString  *itemHttpSubmitServer;
  itemHttpSubmitServer = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "httpSubmitServer" ), mHttpSubmitServer, TQString::fromLatin1( "gnudb.gnudb.org" ) );
  addItem( itemHttpSubmitServer, TQString::fromLatin1( "httpSubmitServer" ) );
  TDEConfigSkeleton::ItemInt  *itemHttpSubmitPort;
  itemHttpSubmitPort = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "httpSubmitPort" ), mHttpSubmitPort, 80 );
  addItem( itemHttpSubmitPort, TQString::fromLatin1( "httpSubmitPort" ) );
  TDEConfigSkeleton::ItemInt  *itemSmtpPort;
  itemSmtpPort = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "smtpPort" ), mSmtpPort, 25 );
  addItem( itemSmtpPort, TQString::fromLatin1( "smtpPort" ) );
  TDEConfigSkeleton::ItemString  *itemSmtpUsername;
  itemSmtpUsername = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "smtpUsername" ), mSmtpUsername );
  addItem( itemSmtpUsername, TQString::fromLatin1( "smtpUsername" ) );
  TDEConfigSkeleton::ItemBool  *itemUseGlobalEmail;
  itemUseGlobalEmail = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "useGlobalEmail" ), mUseGlobalEmail, true );
  addItem( itemUseGlobalEmail, TQString::fromLatin1( "useGlobalEmail" ) );
  TDEConfigSkeleton::ItemString  *itemReplyTo;
  itemReplyTo = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "replyTo" ), mReplyTo );
  addItem( itemReplyTo, TQString::fromLatin1( "replyTo" ) );
  TDEConfigSkeleton::ItemString  *itemSmtpHostname;
  itemSmtpHostname = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "smtpHostname" ), mSmtpHostname );
  addItem( itemSmtpHostname, TQString::fromLatin1( "smtpHostname" ) );
  TDEConfigSkeleton::ItemString  *itemSubmitAddress;
  itemSubmitAddress = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "submitAddress" ), mSubmitAddress, TQString::fromLatin1( "freedb-submit@freedb.org" ) );
  addItem( itemSubmitAddress, TQString::fromLatin1( "submitAddress" ) );
}

ConfigBase::~ConfigBase()
{
}

