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

#include <klocalizedstring.h>

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

class YourlsSettings : public KConfigSkeleton
{
  public:

    static YourlsSettings *self();
    ~YourlsSettings();

    /**
      Set yourlsHost
    */
    static
    void setYourlsHost( const QString & v )
    {
      if (!self()->isImmutable( QStringLiteral( "yourlsHost" ) ))
        self()->mYourlsHost = v;
    }

    /**
      Get yourlsHost
    */
    static
    QString yourlsHost()
    {
      return self()->mYourlsHost;
    }

    /**
      Get Item object corresponding to yourlsHost()
    */
    ItemString *yourlsHostItem()
    {
      return mYourlsHostItem;
    }

    /**
      Set username
    */
    static
    void setUsername( const QString & v )
    {
      if (!self()->isImmutable( QStringLiteral( "username" ) ))
        self()->mUsername = v;
    }

    /**
      Get username
    */
    static
    QString username()
    {
      return self()->mUsername;
    }

    /**
      Get Item object corresponding to username()
    */
    ItemString *usernameItem()
    {
      return mUsernameItem;
    }

  protected:
    YourlsSettings();
    friend class YourlsSettingsHelper;


    // Yourls
    QString mYourlsHost;
    QString mUsername;

  private:
    ItemString *mYourlsHostItem;
    ItemString *mUsernameItem;
};

#endif

