// 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( "hostname" ))
        mHostname = v;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
      Set ownSmtpHost
    */
    void setOwnSmtpHost( const QString & v )
    {
      if (!isImmutable( "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

