• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

lokalize

  • sources
  • kde-4.14
  • kdesdk
  • lokalize
  • src
  • project
projectlocal.h
Go to the documentation of this file.
1 // This file is generated by kconfig_compiler from projectlocal.kcfg.
2 // All changes you do to this file will be lost.
3 #ifndef PROJECTLOCAL_H
4 #define PROJECTLOCAL_H
5 
6 #include <kglobal.h>
7 #include <kconfigskeleton.h>
8 #include <kdebug.h>
9 
10 class ProjectLocal : public KConfigSkeleton
11 {
12  public:
13  enum PersonRole { Translator, Reviewer, Approver, Undefined };
14 
15  ProjectLocal( KSharedConfig::Ptr config = KGlobal::config() );
16  ~ProjectLocal();
17 
21  void setRole( PersonRole v )
22  {
23  if (!isImmutable( QString::fromLatin1( "Role" ) ))
24  mRole = v;
25  }
26 
30  PersonRole role() const
31  {
32  return static_cast<PersonRole>(mRole);
33  }
34 
38  void setFirstRun( bool v )
39  {
40  if (!isImmutable( QString::fromLatin1( "FirstRun" ) ))
41  mFirstRun = v;
42  }
43 
47  bool firstRun() const
48  {
49  return mFirstRun;
50  }
51 
52  protected:
53 
54  // Personal
55  int mRole;
56  bool mFirstRun;
57 
58  private:
59 };
60 
61 #endif
62 
ProjectLocal::role
PersonRole role() const
Get Role.
Definition: projectlocal.h:30
ProjectLocal::PersonRole
PersonRole
Definition: projectlocal.h:13
ProjectLocal::setRole
void setRole(PersonRole v)
Set Role.
Definition: projectlocal.h:21
ProjectLocal::setFirstRun
void setFirstRun(bool v)
Set FirstRun.
Definition: projectlocal.h:38
ProjectLocal::Undefined
Definition: projectlocal.h:13
KConfigSkeleton
ProjectLocal::Translator
Definition: projectlocal.h:13
ProjectLocal::mFirstRun
bool mFirstRun
Definition: projectlocal.h:56
ProjectLocal::ProjectLocal
ProjectLocal(KSharedConfig::Ptr config=KGlobal::config())
Definition: projectlocal.cpp:6
ProjectLocal::Approver
Definition: projectlocal.h:13
ProjectLocal::Reviewer
Definition: projectlocal.h:13
ProjectLocal
Definition: projectlocal.h:10
ProjectLocal::~ProjectLocal
~ProjectLocal()
Definition: projectlocal.cpp:40
ProjectLocal::firstRun
bool firstRun() const
Get FirstRun.
Definition: projectlocal.h:47
QString::fromLatin1
QString fromLatin1(const char *str, int size)
ProjectLocal::mRole
int mRole
Definition: projectlocal.h:55
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

lokalize

Skip menu "lokalize"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal