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

superkaramba

  • sources
  • kde-4.12
  • kdeutils
  • superkaramba
  • src
superkarambasettings.cpp
Go to the documentation of this file.
1 // This file is generated by kconfig_compiler from superkaramba.kcfg.
2 // All changes you do to this file will be lost.
3 
4 #include "superkarambasettings.h"
5 
6 #include <kglobal.h>
7 #include <QtCore/QFile>
8 
9 class SuperKarambaSettingsHelper
10 {
11  public:
12  SuperKarambaSettingsHelper() : q(0) {}
13  ~SuperKarambaSettingsHelper() { delete q; }
14  SuperKarambaSettings *q;
15 };
16 K_GLOBAL_STATIC(SuperKarambaSettingsHelper, s_globalSuperKarambaSettings)
17 SuperKarambaSettings *SuperKarambaSettings::self()
18 {
19  if (!s_globalSuperKarambaSettings->q) {
20  new SuperKarambaSettings;
21  s_globalSuperKarambaSettings->q->readConfig();
22  }
23 
24  return s_globalSuperKarambaSettings->q;
25 }
26 
27 SuperKarambaSettings::SuperKarambaSettings( )
28  : KConfigSkeleton( QLatin1String( "superkarambarc" ) )
29 {
30  Q_ASSERT(!s_globalSuperKarambaSettings->q);
31  s_globalSuperKarambaSettings->q = this;
32  setCurrentGroup( QLatin1String( "general" ) );
33 
34  KConfigSkeleton::ItemBool *itemShowSysTray;
35  itemShowSysTray = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowSysTray" ), mShowSysTray, true );
36  addItem( itemShowSysTray, QLatin1String( "ShowSysTray" ) );
37 
38  setCurrentGroup( QLatin1String( "themes" ) );
39 
40  KConfigSkeleton::ItemPathList *itemUserAddedThemes;
41  itemUserAddedThemes = new KConfigSkeleton::ItemPathList( currentGroup(), QLatin1String( "UserAddedThemes" ), mUserAddedThemes );
42  addItem( itemUserAddedThemes, QLatin1String( "UserAddedThemes" ) );
43 }
44 
45 SuperKarambaSettings::~SuperKarambaSettings()
46 {
47  if (!s_globalSuperKarambaSettings.isDestroyed()) {
48  s_globalSuperKarambaSettings->q = 0;
49  }
50 }
51 
superkarambasettings.h
SuperKarambaSettings::mUserAddedThemes
QStringList mUserAddedThemes
Definition: superkarambasettings.h:63
SuperKarambaSettings::mShowSysTray
bool mShowSysTray
Definition: superkarambasettings.h:60
KConfigSkeleton
SuperKarambaSettings::~SuperKarambaSettings
~SuperKarambaSettings()
Definition: superkarambasettings.cpp:45
SuperKarambaSettings
Definition: superkarambasettings.h:9
SuperKarambaSettings::SuperKarambaSettings
SuperKarambaSettings()
Definition: superkarambasettings.cpp:27
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:07:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

superkaramba

Skip menu "superkaramba"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • kremotecontrol
  • ktimer
  • kwallet
  • superkaramba
  • sweeper

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