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

kget

  • sources
  • kde-4.14
  • kdenetwork
  • kget
  • transfer-plugins
  • mmsthreads
mmssettings.cpp
Go to the documentation of this file.
1 // This file is generated by kconfig_compiler from kget_mmsfactory.kcfg.
2 // All changes you do to this file will be lost.
3 
4 #include "mmssettings.h"
5 
6 #include <kglobal.h>
7 #include <QtCore/QFile>
8 
9 class MmsSettingsHelper
10 {
11  public:
12  MmsSettingsHelper() : q(0) {}
13  ~MmsSettingsHelper() { delete q; }
14  MmsSettings *q;
15 };
16 K_GLOBAL_STATIC(MmsSettingsHelper, s_globalMmsSettings)
17 MmsSettings *MmsSettings::self()
18 {
19  if (!s_globalMmsSettings->q) {
20  new MmsSettings;
21  s_globalMmsSettings->q->readConfig();
22  }
23 
24  return s_globalMmsSettings->q;
25 }
26 
27 MmsSettings::MmsSettings( )
28  : KConfigSkeleton( QLatin1String( "kget_mmsfactory.rc" ) )
29 {
30  Q_ASSERT(!s_globalMmsSettings->q);
31  s_globalMmsSettings->q = this;
32  setCurrentGroup( QLatin1String( "Threads" ) );
33 
34  KConfigSkeleton::ItemInt *itemThreads;
35  itemThreads = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "Threads" ), mThreads, 50 );
36  addItem( itemThreads, QLatin1String( "Threads" ) );
37 }
38 
39 MmsSettings::~MmsSettings()
40 {
41  if (!s_globalMmsSettings.isDestroyed()) {
42  s_globalMmsSettings->q = 0;
43  }
44 }
45 
KConfigSkeleton
mmssettings.h
MmsSettings::mThreads
int mThreads
Definition: mmssettings.h:41
MmsSettings::~MmsSettings
~MmsSettings()
Definition: mmssettings.cpp:39
QLatin1String
MmsSettings
Definition: mmssettings.h:9
MmsSettings::MmsSettings
MmsSettings()
Definition: mmssettings.cpp:27
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:28:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kget

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

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

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