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

#include <tdeconfigskeleton.h>
#include <kdebug.h>

#include <tqdir.h>
class KDE_EXPORT ConfigBase : public TDEConfigSkeleton
{
  public:
    class EnumCachePolicy
    {
      public:
      enum type { OnlyCache, UseCache, IgnoreCache, COUNT };
    };
    class EnumLookupTransport
    {
      public:
      enum type { CDDBP, HTTP, COUNT };
    };
    class EnumSubmitTransport
    {
      public:
      enum type { HTTP, SMTP, COUNT };
    };

    ConfigBase( );
    ~ConfigBase();

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

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

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

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

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

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

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

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

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

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

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

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

    /**
      Set emailAddress
    */
    void setEmailAddress( const TQString & v )
    {
      if (!isImmutable( TQString::fromLatin1( "emailAddress" ) ))
        mEmailAddress = v;
    }

    /**
      Get emailAddress
    */
    TQString emailAddress() const
    {
      return mEmailAddress;
    }

    /**
      Set httpSubmitServer
    */
    void setHttpSubmitServer( const TQString & v )
    {
      if (!isImmutable( TQString::fromLatin1( "httpSubmitServer" ) ))
        mHttpSubmitServer = v;
    }

    /**
      Get httpSubmitServer
    */
    TQString httpSubmitServer() const
    {
      return mHttpSubmitServer;
    }

    /**
      Set httpSubmitPort
    */
    void setHttpSubmitPort( int v )
    {
      if (!isImmutable( TQString::fromLatin1( "httpSubmitPort" ) ))
        mHttpSubmitPort = v;
    }

    /**
      Get httpSubmitPort
    */
    int httpSubmitPort() const
    {
      return mHttpSubmitPort;
    }

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

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

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

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

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

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

    /**
      Set replyTo
    */
    void setReplyTo( const TQString & v )
    {
      if (!isImmutable( TQString::fromLatin1( "replyTo" ) ))
        mReplyTo = v;
    }

    /**
      Get replyTo
    */
    TQString replyTo() const
    {
      return mReplyTo;
    }

    /**
      Set smtpHostname
    */
    void setSmtpHostname( const TQString & v )
    {
      if (!isImmutable( TQString::fromLatin1( "smtpHostname" ) ))
        mSmtpHostname = v;
    }

    /**
      Get smtpHostname
    */
    TQString smtpHostname() const
    {
      return mSmtpHostname;
    }

    /**
      Set submitAddress
    */
    void setSubmitAddress( const TQString & v )
    {
      if (!isImmutable( TQString::fromLatin1( "submitAddress" ) ))
        mSubmitAddress = v;
    }

    /**
      Get submitAddress
    */
    TQString submitAddress() const
    {
      return mSubmitAddress;
    }

  protected:

    // Lookup
    TQString mHostname;
    int mPort;
    int mCachePolicy;
    int mLookupTransport;
    TQStringList mCacheLocations;

    // Submit
    int mSubmitTransport;
    TQString mEmailAddress;
    TQString mHttpSubmitServer;
    int mHttpSubmitPort;
    int mSmtpPort;
    TQString mSmtpUsername;
    bool mUseGlobalEmail;
    TQString mReplyTo;
    TQString mSmtpHostname;
    TQString mSubmitAddress;

  private:
};

#endif

