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

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

class MagnetGeneratorPluginSettings : public KConfigSkeleton
{
  public:

    static MagnetGeneratorPluginSettings *self();
    ~MagnetGeneratorPluginSettings();

    /**
      Set Grabs a tracker from the torrent file
    */
    static
    void setTorrenttracker( bool v )
    {
      if (!self()->isImmutable( QStringLiteral( "torrenttracker" ) ))
        self()->mTorrenttracker = v;
    }

    /**
      Get Grabs a tracker from the torrent file
    */
    static
    bool torrenttracker()
    {
      return self()->mTorrenttracker;
    }

    /**
      Set Toggles if a custom tracker is used
    */
    static
    void setCustomtracker( bool v )
    {
      if (!self()->isImmutable( QStringLiteral( "customtracker" ) ))
        self()->mCustomtracker = v;
    }

    /**
      Get Toggles if a custom tracker is used
    */
    static
    bool customtracker()
    {
      return self()->mCustomtracker;
    }

    /**
      Set The default tracker
    */
    static
    void setTr( const QString & v )
    {
      if (!self()->isImmutable( QStringLiteral( "tr" ) ))
        self()->mTr = v;
    }

    /**
      Get The default tracker
    */
    static
    QString tr()
    {
      return self()->mTr;
    }

    /**
      Set Show dn
    */
    static
    void setDn( bool v )
    {
      if (!self()->isImmutable( QStringLiteral( "dn" ) ))
        self()->mDn = v;
    }

    /**
      Get Show dn
    */
    static
    bool dn()
    {
      return self()->mDn;
    }

    /**
      Set Show popup
    */
    static
    void setPopup( bool v )
    {
      if (!self()->isImmutable( QStringLiteral( "popup" ) ))
        self()->mPopup = v;
    }

    /**
      Get Show popup
    */
    static
    bool popup()
    {
      return self()->mPopup;
    }

    /**
      Set Only enable on public torrents
    */
    static
    void setOnlypublic( bool v )
    {
      if (!self()->isImmutable( QStringLiteral( "onlypublic" ) ))
        self()->mOnlypublic = v;
    }

    /**
      Get Only enable on public torrents
    */
    static
    bool onlypublic()
    {
      return self()->mOnlypublic;
    }

  protected:
    MagnetGeneratorPluginSettings();
    friend class MagnetGeneratorPluginSettingsHelper;


    // general
    bool mTorrenttracker;
    bool mCustomtracker;
    QString mTr;
    bool mDn;
    bool mPopup;
    bool mOnlypublic;

  private:
};

#endif

