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

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

class SearchPluginSettings : public TDEConfigSkeleton
{
  public:

    static SearchPluginSettings *self();
    ~SearchPluginSettings();

    /**
      Set Current search engine
    */
    static
    void setSearchEngine( int v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "searchEngine" ) ))
        self()->mSearchEngine = v;
    }

    /**
      Get Current search engine
    */
    static
    int searchEngine()
    {
      return self()->mSearchEngine;
    }

    /**
      Set Use default browser
    */
    static
    void setUseDefaultBrowser( bool v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "useDefaultBrowser" ) ))
        self()->mUseDefaultBrowser = v;
    }

    /**
      Get Use default browser
    */
    static
    bool useDefaultBrowser()
    {
      return self()->mUseDefaultBrowser;
    }

    /**
      Set Use custom browser
    */
    static
    void setUseCustomBrowser( bool v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "useCustomBrowser" ) ))
        self()->mUseCustomBrowser = v;
    }

    /**
      Get Use custom browser
    */
    static
    bool useCustomBrowser()
    {
      return self()->mUseCustomBrowser;
    }

    /**
      Set Custom browser executable path
    */
    static
    void setCustomBrowser( const TQString & v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "customBrowser" ) ))
        self()->mCustomBrowser = v;
    }

    /**
      Get Custom browser executable path
    */
    static
    TQString customBrowser()
    {
      return self()->mCustomBrowser;
    }

    /**
      Set openInExternal
    */
    static
    void setOpenInExternal( bool v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "openInExternal" ) ))
        self()->mOpenInExternal = v;
    }

    /**
      Get openInExternal
    */
    static
    bool openInExternal()
    {
      return self()->mOpenInExternal;
    }

    static
    void writeConfig()
    {
      static_cast<TDEConfigSkeleton*>(self())->writeConfig();
    }
  protected:
    SearchPluginSettings();
    static SearchPluginSettings *mSelf;


    // general
    int mSearchEngine;
    bool mUseDefaultBrowser;
    bool mUseCustomBrowser;
    TQString mCustomBrowser;
    bool mOpenInExternal;

  private:
};

#endif

