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

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

#include <kuser.h>
#include <kemailsettings.h>
class Prefs : public KConfigSkeleton
{
  public:

    static Prefs *self();
    ~Prefs();

    /**
      Set Name of the project
    */
    static
    void setAppName( const QString & v )
    {
      if (!self()->isImmutable( QStringLiteral( "appName" ) ))
        self()->mAppName = v;
    }

    /**
      Get Name of the project
    */
    static
    QString appName()
    {
      return self()->mAppName;
    }

    /**
      Set Project version
    */
    static
    void setAppVersion( const QString & v )
    {
      if (!self()->isImmutable( QStringLiteral( "appVersion" ) ))
        self()->mAppVersion = v;
    }

    /**
      Get Project version
    */
    static
    QString appVersion()
    {
      return self()->mAppVersion;
    }

    /**
      Set Home dir of the user
    */
    static
    void setUrl( const QString & v )
    {
      if (!self()->isImmutable( QStringLiteral( "url" ) ))
        self()->mUrl = v;
    }

    /**
      Get Home dir of the user
    */
    static
    QString url()
    {
      return self()->mUrl;
    }

    /**
      Set Name of the user
    */
    static
    void setName( const QString & v )
    {
      if (!self()->isImmutable( QStringLiteral( "name" ) ))
        self()->mName = v;
    }

    /**
      Get Name of the user
    */
    static
    QString name()
    {
      return self()->mName;
    }

    /**
      Set Email of the user
    */
    static
    void setEmail( const QString & v )
    {
      if (!self()->isImmutable( QStringLiteral( "email" ) ))
        self()->mEmail = v;
    }

    /**
      Get Email of the user
    */
    static
    QString email()
    {
      return self()->mEmail;
    }

  protected:
    Prefs();
    friend class PrefsHelper;


    // Project
    QString mAppName;
    QString mAppVersion;
    QString mUrl;

    // User
    QString mName;
    QString mEmail;

  private:
};

#endif

