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

kapman

  • sources
  • kde-4.14
  • kdegames
  • kapman
settings.h
Go to the documentation of this file.
1 // This file is generated by kconfig_compiler from kapman.kcfg.
2 // All changes you do to this file will be lost.
3 #ifndef SETTINGS_H
4 #define SETTINGS_H
5 
6 #include <kconfigskeleton.h>
7 #include <kdebug.h>
8 
9 class Settings : public KConfigSkeleton
10 {
11  public:
12 
13  static Settings *self();
14  ~Settings();
15 
19  static
20  void setTheme( const QString & v )
21  {
22  if (!self()->isImmutable( QString::fromLatin1( "Theme" ) ))
23  self()->mTheme = v;
24  }
25 
29  static
30  QString theme()
31  {
32  return self()->mTheme;
33  }
34 
38  static
39  void setSounds( bool v )
40  {
41  if (!self()->isImmutable( QString::fromLatin1( "Sounds" ) ))
42  self()->mSounds = v;
43  }
44 
48  static
49  bool sounds()
50  {
51  return self()->mSounds;
52  }
53 
54  protected:
55  Settings();
56  friend class SettingsHelper;
57 
58 
59  // General
60  QString mTheme;
61  bool mSounds;
62 
63  private:
64 };
65 
66 #endif
67 
Settings::~Settings
~Settings()
Definition: settings.cpp:42
Settings::theme
static QString theme()
Get The graphical theme to be used.
Definition: settings.h:30
Settings::setTheme
static void setTheme(const QString &v)
Set The graphical theme to be used.
Definition: settings.h:20
KConfigSkeleton
Settings::mTheme
QString mTheme
Definition: settings.h:60
Settings::setSounds
static void setSounds(bool v)
Set Whether sound effects should be played.
Definition: settings.h:39
Settings::Settings
Settings()
Definition: settings.cpp:27
QString
Settings
Definition: settings.h:9
Settings::mSounds
bool mSounds
Definition: settings.h:61
Settings::SettingsHelper
friend class SettingsHelper
Definition: settings.h:56
QString::fromLatin1
QString fromLatin1(const char *str, int size)
Settings::sounds
static bool sounds()
Get Whether sound effects should be played.
Definition: settings.h:49
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kapman

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

kdegames API Reference

Skip menu "kdegames API Reference"
  • granatier
  • kapman
  • kblackbox
  • kgoldrunner
  • kigo
  • kmahjongg
  • KShisen
  • ksquares
  • libkdegames
  •   highscore
  •   libkdegamesprivate
  •     kgame
  • libkmahjongg
  • palapeli
  •   libpala

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