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

kapptemplate

  • sources
  • kde-4.14
  • kdesdk
  • kapptemplate
prefs.h
Go to the documentation of this file.
1 // This file is generated by kconfig_compiler from kapptemplate.kcfg.
2 // All changes you do to this file will be lost.
3 #ifndef PREFS_H
4 #define PREFS_H
5 
6 #include <kconfigskeleton.h>
7 #include <kdebug.h>
8 
9 #include <kuser.h>
10 #include <kemailsettings.h>
11 class Prefs : public KConfigSkeleton
12 {
13  public:
14 
15  static Prefs *self();
16  ~Prefs();
17 
21  static
22  void setAppName( const QString & v )
23  {
24  if (!self()->isImmutable( QString::fromLatin1( "appName" ) ))
25  self()->mAppName = v;
26  }
27 
31  static
32  QString appName()
33  {
34  return self()->mAppName;
35  }
36 
40  static
41  void setAppVersion( const QString & v )
42  {
43  if (!self()->isImmutable( QString::fromLatin1( "appVersion" ) ))
44  self()->mAppVersion = v;
45  }
46 
50  static
51  QString appVersion()
52  {
53  return self()->mAppVersion;
54  }
55 
59  static
60  void setUrl( const QString & v )
61  {
62  if (!self()->isImmutable( QString::fromLatin1( "url" ) ))
63  self()->mUrl = v;
64  }
65 
69  static
70  QString url()
71  {
72  return self()->mUrl;
73  }
74 
78  static
79  void setName( const QString & v )
80  {
81  if (!self()->isImmutable( QString::fromLatin1( "name" ) ))
82  self()->mName = v;
83  }
84 
88  static
89  QString name()
90  {
91  return self()->mName;
92  }
93 
97  static
98  void setEmail( const QString & v )
99  {
100  if (!self()->isImmutable( QString::fromLatin1( "email" ) ))
101  self()->mEmail = v;
102  }
103 
107  static
108  QString email()
109  {
110  return self()->mEmail;
111  }
112 
113  protected:
114  Prefs();
115  friend class PrefsHelper;
116 
117 
118  // Project
119  QString mAppName;
120  QString mAppVersion;
121  QString mUrl;
122 
123  // User
124  QString mName;
125  QString mEmail;
126 
127  private:
128 };
129 
130 #endif
131 
Prefs::mUrl
QString mUrl
Definition: prefs.h:121
Prefs
Definition: prefs.h:11
KConfigSkeleton
Prefs::appVersion
static QString appVersion()
Get Project version.
Definition: prefs.h:51
Prefs::name
static QString name()
Get Name of the user.
Definition: prefs.h:89
Prefs::setAppName
static void setAppName(const QString &v)
Set Name of the project.
Definition: prefs.h:22
Prefs::mAppVersion
QString mAppVersion
Definition: prefs.h:120
Prefs::mAppName
QString mAppName
Definition: prefs.h:119
Prefs::setAppVersion
static void setAppVersion(const QString &v)
Set Project version.
Definition: prefs.h:41
Prefs::PrefsHelper
friend class PrefsHelper
Definition: prefs.h:115
Prefs::setEmail
static void setEmail(const QString &v)
Set Email of the user.
Definition: prefs.h:98
Prefs::appName
static QString appName()
Get Name of the project.
Definition: prefs.h:32
Prefs::mName
QString mName
Definition: prefs.h:124
QString
Prefs::url
static QString url()
Get Home dir of the user.
Definition: prefs.h:70
Prefs::Prefs
Prefs()
Definition: prefs.cpp:27
Prefs::mEmail
QString mEmail
Definition: prefs.h:125
Prefs::setUrl
static void setUrl(const QString &v)
Set Home dir of the user.
Definition: prefs.h:60
Prefs::~Prefs
~Prefs()
Definition: prefs.cpp:70
QString::fromLatin1
QString fromLatin1(const char *str, int size)
Prefs::email
static QString email()
Get Email of the user.
Definition: prefs.h:108
Prefs::setName
static void setName(const QString &v)
Set Name of the user.
Definition: prefs.h:79
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:39:44 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kapptemplate

Skip menu "kapptemplate"
  • Main Page
  • 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