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

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

class ProjectLocal : public KConfigSkeleton
{
  public:
    enum PersonRole { Translator, Reviewer, Approver, Undefined };

    ProjectLocal( KSharedConfig::Ptr config = KSharedConfig::openConfig() );
    ~ProjectLocal();

    /**
      Set SourceDir
    */
    void setSourceDir( const QString & v )
    {
      if (!isImmutable( QStringLiteral( "SourceDir" ) ))
        mSourceDir = v;
    }

    /**
      Get SourceDir
    */
    QString sourceDir() const
    {
      return mSourceDir;
    }

    /**
      Set Role
    */
    void setRole( PersonRole v )
    {
      if (!isImmutable( QStringLiteral( "Role" ) ))
        mRole = v;
    }

    /**
      Get Role
    */
    PersonRole role() const
    {
      return static_cast<PersonRole>(mRole);
    }

    /**
      Set FirstRun
    */
    void setFirstRun( bool v )
    {
      if (!isImmutable( QStringLiteral( "FirstRun" ) ))
        mFirstRun = v;
    }

    /**
      Get FirstRun
    */
    bool firstRun() const
    {
      return mFirstRun;
    }

  protected:

    // General
    QString mSourceDir;

    // Personal
    int mRole;
    bool mFirstRun;

  private:
};

#endif

