// This file is generated by kconfig_compiler from libkcddb.kcfg.
// All changes you do to this file will be lost.
#ifndef CONFIGBASE_H
#define CONFIGBASE_H

#include <kconfigskeleton.h>

class ConfigBase : public KConfigSkeleton
{
  public:
    class EnumCachePolicy
    {
      public:
      enum { OnlyCache, UseCache, IgnoreCache, COUNT };
    };
    class EnumLookupTransport
    {
      public:
      enum { CDDBP, HTTP, COUNT };
    };
    class EnumSubmitTransport
    {
      public:
      enum { None, SMTP, HTTP, COUNT };
    };

    ConfigBase( );
    ~ConfigBase();

    /**
      Set hostname
    */
    void setHostname( const QString & v )
    {
      if (!isImmutable( QString::fromLatin1( "hostname" ) ))
        mHostname = v;
    }

    /**
      Get hostname
    */
    QString hostname() const
    {
      return mHostname;
    }

    /**
      Set port
    */
    void setPort( int v )
    {
      if (!isImmutable( QString::fromLatin1( "port" ) ))
        mPort = v;
    }

    /**
      Get port
    */
    int port() const
    {
      return mPort;
    }

    /**
      Set cachePolicy
    */
    void setCachePolicy( int v )
    {
      if (!isImmutable( QString::fromLatin1( "cachePolicy" ) ))
        mCachePolicy = v;
    }

    /**
      Get cachePolicy
    */
    int cachePolicy() const
    {
      return mCachePolicy;
    }

    /**
      Set lookupTransport
    */
    void setLookupTransport( int v )
    {
      if (!isImmutable( QString::fromLatin1( "lookupTransport" ) ))
        mLookupTransport = v;
    }

    /**
      Get lookupTransport
    */
    int lookupTransport() const
    {
      return mLookupTransport;
    }

    /**
      Set cacheLocations
    */
    void setCacheLocations( const QStringList & v )
    {
      if (!isImmutable( QString::fromLatin1( "cacheLocations" ) ))
        mCacheLocations = v;
    }

    /**
      Get cacheLocations
    */
    QStringList cacheLocations() const
    {
      return mCacheLocations;
    }

    /**
      Set submitTransport
    */
    void setSubmitTransport( int v )
    {
      if (!isImmutable( QString::fromLatin1( "submitTransport" ) ))
        mSubmitTransport = v;
    }

    /**
      Get submitTransport
    */
    int submitTransport() const
    {
      return mSubmitTransport;
    }

    /**
      Set smtpPort
    */
    void setSmtpPort( int v )
    {
      if (!isImmutable( QString::fromLatin1( "smtpPort" ) ))
        mSmtpPort = v;
    }

    /**
      Get smtpPort
    */
    int smtpPort() const
    {
      return mSmtpPort;
    }

    /**
      Set smtpUsername
    */
    void setSmtpUsername( const QString & v )
    {
      if (!isImmutable( QString::fromLatin1( "smtpUsername" ) ))
        mSmtpUsername = v;
    }

    /**
      Get smtpUsername
    */
    QString smtpUsername() const
    {
      return mSmtpUsername;
    }

    /**
      Set useGlobalEmail
    */
    void setUseGlobalEmail( bool v )
    {
      if (!isImmutable( QString::fromLatin1( "useGlobalEmail" ) ))
        mUseGlobalEmail = v;
    }

    /**
      Get useGlobalEmail
    */
    bool useGlobalEmail() const
    {
      return mUseGlobalEmail;
    }

    /**
      Set ownEmail
    */
    void setOwnEmail( const QString & v )
    {
      if (!isImmutable( QString::fromLatin1( "ownEmail" ) ))
        mOwnEmail = v;
    }

    /**
      Get ownEmail
    */
    QString ownEmail() const
    {
      return mOwnEmail;
    }

    /**
      Set ownReplyTo
    */
    void setOwnReplyTo( const QString & v )
    {
      if (!isImmutable( QString::fromLatin1( "ownReplyTo" ) ))
        mOwnReplyTo = v;
    }

    /**
      Get ownReplyTo
    */
    QString ownReplyTo() const
    {
      return mOwnReplyTo;
    }

    /**
      Set ownSmtpHost
    */
    void setOwnSmtpHost( const QString & v )
    {
      if (!isImmutable( QString::fromLatin1( "ownSmtpHost" ) ))
        mOwnSmtpHost = v;
    }

    /**
      Get ownSmtpHost
    */
    QString ownSmtpHost() const
    {
      return mOwnSmtpHost;
    }

  protected:

    // Lookup
    QString mHostname;
    int mPort;
    int mCachePolicy;
    int mLookupTransport;
    QStringList mCacheLocations;

    // Submit
    int mSubmitTransport;
    int mSmtpPort;
    QString mSmtpUsername;
    bool mUseGlobalEmail;
    QString mOwnEmail;
    QString mOwnReplyTo;
    QString mOwnSmtpHost;

  private:
};

#endif
