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

#include <kconfigskeleton.h>
#include <QCoreApplication>
#include <QDebug>

class SearchPluginSettings : public KConfigSkeleton
{
  public:

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

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

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

    /**
      Set Use proxy settings for search
    */
    static
    void setUseProxySettings( bool v )
    {
      if (!self()->isImmutable( QStringLiteral( "useProxySettings" ) ))
        self()->mUseProxySettings = v;
    }

    /**
      Get Use proxy settings for search
    */
    static
    bool useProxySettings()
    {
      return self()->mUseProxySettings;
    }

    /**
      Set Use default browser
    */
    static
    void setUseDefaultBrowser( bool v )
    {
      if (!self()->isImmutable( QStringLiteral( "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( QStringLiteral( "useCustomBrowser" ) ))
        self()->mUseCustomBrowser = v;
    }

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

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

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

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

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

    /**
      Set restorePreviousSession
    */
    static
    void setRestorePreviousSession( bool v )
    {
      if (!self()->isImmutable( QStringLiteral( "restorePreviousSession" ) ))
        self()->mRestorePreviousSession = v;
    }

    /**
      Get restorePreviousSession
    */
    static
    bool restorePreviousSession()
    {
      return self()->mRestorePreviousSession;
    }

  protected:
    SearchPluginSettings();
    friend class SearchPluginSettingsHelper;


    // general
    int mSearchEngine;
    bool mUseProxySettings;
    bool mUseDefaultBrowser;
    bool mUseCustomBrowser;
    QString mCustomBrowser;
    bool mOpenInExternal;
    bool mRestorePreviousSession;

  private:
};

#endif

