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

#include "configbase.h"

class ConfigBasePrivate
{
  public:

    // Lookup
    QString hostname;
    int port;
    bool musicBrainzLookupEnabled;
    bool freedbLookupEnabled;
    bool cacheLookupEnabled;
    int freedbLookupTransport;
    QStringList cacheLocations;

    // Submit
    int freedbSubmitTransport;
    QString emailAddress;
    QString httpSubmitServer;
    int httpSubmitPort;
    int smtpPort;
    QString smtpUsername;
    bool useGlobalEmail;
    QString replyTo;
    QString smtpHostname;
    QString submitAddress;

    // items
    KConfigSkeleton::ItemString *itemHostname;
    KConfigSkeleton::ItemInt *itemPort;
    KConfigSkeleton::ItemBool *itemMusicBrainzLookupEnabled;
    KConfigSkeleton::ItemBool *itemFreedbLookupEnabled;
    KConfigSkeleton::ItemBool *itemCacheLookupEnabled;
    KConfigSkeleton::ItemEnum *itemFreedbLookupTransport;
    KConfigSkeleton::ItemPathList *itemCacheLocations;
    KConfigSkeleton::ItemEnum *itemFreedbSubmitTransport;
    KConfigSkeleton::ItemString *itemEmailAddress;
    KConfigSkeleton::ItemString *itemHttpSubmitServer;
    KConfigSkeleton::ItemInt *itemHttpSubmitPort;
    KConfigSkeleton::ItemInt *itemSmtpPort;
    KConfigSkeleton::ItemString *itemSmtpUsername;
    KConfigSkeleton::ItemBool *itemUseGlobalEmail;
    KConfigSkeleton::ItemString *itemReplyTo;
    KConfigSkeleton::ItemString *itemSmtpHostname;
    KConfigSkeleton::ItemString *itemSubmitAddress;
};

ConfigBase::ConfigBase(  )
  : KConfigSkeleton( QStringLiteral( "kcmcddbrc" ) )
{
  d = new ConfigBasePrivate;
  setCurrentGroup( QStringLiteral( "Lookup" ) );

  d->itemHostname = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "hostname" ), d->hostname, QStringLiteral( "freedb.freedb.org" ) );
  addItem( d->itemHostname, QStringLiteral( "hostname" ) );
  d->itemPort = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "port" ), d->port, 80 );
  addItem( d->itemPort, QStringLiteral( "port" ) );
  d->itemMusicBrainzLookupEnabled = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "MusicBrainzLookupEnabled" ), d->musicBrainzLookupEnabled, true );
  addItem( d->itemMusicBrainzLookupEnabled, QStringLiteral( "MusicBrainzLookupEnabled" ) );
  d->itemFreedbLookupEnabled = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "FreedbLookupEnabled" ), d->freedbLookupEnabled, true );
  addItem( d->itemFreedbLookupEnabled, QStringLiteral( "FreedbLookupEnabled" ) );
  d->itemCacheLookupEnabled = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "CacheLookupEnabled" ), d->cacheLookupEnabled, true );
  addItem( d->itemCacheLookupEnabled, QStringLiteral( "CacheLookupEnabled" ) );
  QList<KConfigSkeleton::ItemEnum::Choice> valuesFreedbLookupTransport;
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("CDDBP");
    valuesFreedbLookupTransport.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("HTTP");
    valuesFreedbLookupTransport.append( choice );
  }
  d->itemFreedbLookupTransport = new KConfigSkeleton::ItemEnum( currentGroup(), QStringLiteral( "FreedbLookupTransport" ), d->freedbLookupTransport, valuesFreedbLookupTransport, EnumFreedbLookupTransport::HTTP );
  addItem( d->itemFreedbLookupTransport, QStringLiteral( "FreedbLookupTransport" ) );
  d->itemCacheLocations = new KConfigSkeleton::ItemPathList( currentGroup(), QStringLiteral( "cacheLocations" ), d->cacheLocations, QStringList(QDir::homePath()+QLatin1String("/.cddb/")) );
  addItem( d->itemCacheLocations, QStringLiteral( "cacheLocations" ) );

  setCurrentGroup( QStringLiteral( "Submit" ) );

  QList<KConfigSkeleton::ItemEnum::Choice> valuesFreedbSubmitTransport;
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("HTTP");
    valuesFreedbSubmitTransport.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("SMTP");
    valuesFreedbSubmitTransport.append( choice );
  }
  d->itemFreedbSubmitTransport = new KConfigSkeleton::ItemEnum( currentGroup(), QStringLiteral( "FreedbSubmitTransport" ), d->freedbSubmitTransport, valuesFreedbSubmitTransport, EnumFreedbSubmitTransport::HTTP );
  addItem( d->itemFreedbSubmitTransport, QStringLiteral( "FreedbSubmitTransport" ) );
  d->itemEmailAddress = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "emailAddress" ), d->emailAddress );
  addItem( d->itemEmailAddress, QStringLiteral( "emailAddress" ) );
  d->itemHttpSubmitServer = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "httpSubmitServer" ), d->httpSubmitServer, QStringLiteral( "freedb.freedb.org" ) );
  addItem( d->itemHttpSubmitServer, QStringLiteral( "httpSubmitServer" ) );
  d->itemHttpSubmitPort = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "httpSubmitPort" ), d->httpSubmitPort, 80 );
  addItem( d->itemHttpSubmitPort, QStringLiteral( "httpSubmitPort" ) );
  d->itemSmtpPort = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "smtpPort" ), d->smtpPort, 25 );
  addItem( d->itemSmtpPort, QStringLiteral( "smtpPort" ) );
  d->itemSmtpUsername = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "smtpUsername" ), d->smtpUsername );
  addItem( d->itemSmtpUsername, QStringLiteral( "smtpUsername" ) );
  d->itemUseGlobalEmail = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "useGlobalEmail" ), d->useGlobalEmail, true );
  addItem( d->itemUseGlobalEmail, QStringLiteral( "useGlobalEmail" ) );
  d->itemReplyTo = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "replyTo" ), d->replyTo );
  addItem( d->itemReplyTo, QStringLiteral( "replyTo" ) );
  d->itemSmtpHostname = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "smtpHostname" ), d->smtpHostname );
  addItem( d->itemSmtpHostname, QStringLiteral( "smtpHostname" ) );
  d->itemSubmitAddress = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "submitAddress" ), d->submitAddress, QStringLiteral( "freedb-submit@freedb.org" ) );
  addItem( d->itemSubmitAddress, QStringLiteral( "submitAddress" ) );
}

void ConfigBase::setHostname( const QString & v )
{
      if (!isImmutable( QStringLiteral( "hostname" ) ))
        d->hostname = v;
}

QString ConfigBase::hostname() const
{
  return d->hostname;
}


void ConfigBase::setPort( int v )
{
      if (!isImmutable( QStringLiteral( "port" ) ))
        d->port = v;
}

int ConfigBase::port() const
{
  return d->port;
}


void ConfigBase::setMusicBrainzLookupEnabled( bool v )
{
      if (!isImmutable( QStringLiteral( "MusicBrainzLookupEnabled" ) ))
        d->musicBrainzLookupEnabled = v;
}

bool ConfigBase::musicBrainzLookupEnabled() const
{
  return d->musicBrainzLookupEnabled;
}


void ConfigBase::setFreedbLookupEnabled( bool v )
{
      if (!isImmutable( QStringLiteral( "FreedbLookupEnabled" ) ))
        d->freedbLookupEnabled = v;
}

bool ConfigBase::freedbLookupEnabled() const
{
  return d->freedbLookupEnabled;
}


void ConfigBase::setCacheLookupEnabled( bool v )
{
      if (!isImmutable( QStringLiteral( "CacheLookupEnabled" ) ))
        d->cacheLookupEnabled = v;
}

bool ConfigBase::cacheLookupEnabled() const
{
  return d->cacheLookupEnabled;
}


void ConfigBase::setFreedbLookupTransport( int v )
{
      if (!isImmutable( QStringLiteral( "FreedbLookupTransport" ) ))
        d->freedbLookupTransport = v;
}

int ConfigBase::freedbLookupTransport() const
{
  return d->freedbLookupTransport;
}


void ConfigBase::setCacheLocations( const QStringList & v )
{
      if (!isImmutable( QStringLiteral( "cacheLocations" ) ))
        d->cacheLocations = v;
}

QStringList ConfigBase::cacheLocations() const
{
  return d->cacheLocations;
}


void ConfigBase::setFreedbSubmitTransport( int v )
{
      if (!isImmutable( QStringLiteral( "FreedbSubmitTransport" ) ))
        d->freedbSubmitTransport = v;
}

int ConfigBase::freedbSubmitTransport() const
{
  return d->freedbSubmitTransport;
}


void ConfigBase::setEmailAddress( const QString & v )
{
      if (!isImmutable( QStringLiteral( "emailAddress" ) ))
        d->emailAddress = v;
}

QString ConfigBase::emailAddress() const
{
  return d->emailAddress;
}


void ConfigBase::setHttpSubmitServer( const QString & v )
{
      if (!isImmutable( QStringLiteral( "httpSubmitServer" ) ))
        d->httpSubmitServer = v;
}

QString ConfigBase::httpSubmitServer() const
{
  return d->httpSubmitServer;
}


void ConfigBase::setHttpSubmitPort( int v )
{
      if (!isImmutable( QStringLiteral( "httpSubmitPort" ) ))
        d->httpSubmitPort = v;
}

int ConfigBase::httpSubmitPort() const
{
  return d->httpSubmitPort;
}


void ConfigBase::setSmtpPort( int v )
{
      if (!isImmutable( QStringLiteral( "smtpPort" ) ))
        d->smtpPort = v;
}

int ConfigBase::smtpPort() const
{
  return d->smtpPort;
}


void ConfigBase::setSmtpUsername( const QString & v )
{
      if (!isImmutable( QStringLiteral( "smtpUsername" ) ))
        d->smtpUsername = v;
}

QString ConfigBase::smtpUsername() const
{
  return d->smtpUsername;
}


void ConfigBase::setUseGlobalEmail( bool v )
{
      if (!isImmutable( QStringLiteral( "useGlobalEmail" ) ))
        d->useGlobalEmail = v;
}

bool ConfigBase::useGlobalEmail() const
{
  return d->useGlobalEmail;
}


void ConfigBase::setReplyTo( const QString & v )
{
      if (!isImmutable( QStringLiteral( "replyTo" ) ))
        d->replyTo = v;
}

QString ConfigBase::replyTo() const
{
  return d->replyTo;
}


void ConfigBase::setSmtpHostname( const QString & v )
{
      if (!isImmutable( QStringLiteral( "smtpHostname" ) ))
        d->smtpHostname = v;
}

QString ConfigBase::smtpHostname() const
{
  return d->smtpHostname;
}


void ConfigBase::setSubmitAddress( const QString & v )
{
      if (!isImmutable( QStringLiteral( "submitAddress" ) ))
        d->submitAddress = v;
}

QString ConfigBase::submitAddress() const
{
  return d->submitAddress;
}


ConfigBase::~ConfigBase()
{
  delete d;
}

