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

kcachegrind

  • sources
  • kde-4.12
  • kdesdk
  • kcachegrind
  • qcachegrind
qcgconfig.h
Go to the documentation of this file.
1 /* This file is part of KCachegrind.
2  Copyright (C) 2002, 2003 Josef Weidendorfer <Josef.Weidendorfer@gmx.de>
3 
4  KCachegrind is free software; you can redistribute it and/or
5  modify it under the terms of the GNU General Public
6  License as published by the Free Software Foundation, version 2.
7 
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License
14  along with this program; see the file COPYING. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 
19 /*
20  * Configuration for QCachegrind
21  */
22 
23 #ifndef QCGCONFIG_H
24 #define QCGCONFIG_H
25 
26 #include "config.h"
27 
28 class QSettings;
29 class QCGConfigStorage;
30 
31 class QCGConfigGroup: public ConfigGroup
32 {
33  friend class QCGConfigStorage;
34 
35 public:
36  ~QCGConfigGroup();
37 
38  void setValue(const QString& key, const QVariant& value,
39  const QVariant& defaultValue = QVariant());
40  QVariant value(const QString& key, const QVariant& defaultValue) const;
41 
42 private:
43  QCGConfigGroup(QSettings*, QString prefix, bool);
44 
45  QSettings* _settings;
46  QString _prefix;
47  bool _readOnly;
48 };
49 
50 
51 class QCGConfigStorage : public ConfigStorage
52 {
53 public:
54  QCGConfigStorage();
55  ~QCGConfigStorage();
56 
57 private:
58  ConfigGroup* getGroup(const QString& group,
59  const QString& optSuffix);
60 
61  QSettings* _settings;
62 };
63 
64 #endif // QCGCONFIG_H
QCGConfigGroup::~QCGConfigGroup
~QCGConfigGroup()
Definition: qcgconfig.cpp:42
QCGConfigStorage::QCGConfigStorage
QCGConfigStorage()
Definition: qcgconfig.cpp:72
config.h
ConfigStorage::group
static ConfigGroup * group(const QString &group, const QString &optSuffix=QString())
Definition: config.cpp:80
QCGConfigStorage::~QCGConfigStorage
~QCGConfigStorage()
Definition: qcgconfig.cpp:77
ConfigStorage
This is an adapter class for different configuration backends.
Definition: config.h:63
ConfigGroup
A group of configuration settings.
Definition: config.h:35
QCGConfigStorage
Definition: qcgconfig.h:51
QCGConfigGroup
Definition: qcgconfig.h:31
QCGConfigGroup::setValue
void setValue(const QString &key, const QVariant &value, const QVariant &defaultValue=QVariant())
Definition: qcgconfig.cpp:45
QCGConfigGroup::value
QVariant value(const QString &key, const QVariant &defaultValue) const
Definition: qcgconfig.cpp:57
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:03:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kcachegrind

Skip menu "kcachegrind"
  • 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
  • okteta
  • 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