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

KUtils

  • sources
  • kde-4.12
  • kdelibs
  • kutils
kcmultidialog_p.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  Copyright (C) 2007 Matthias Kretz <kretz@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library 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  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. 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 #ifndef KCMULTIDIALOG_P_H
21 #define KCMULTIDIALOG_P_H
22 
23 #include "kcmultidialog.h"
24 #include <kpagedialog_p.h>
25 #include <QtCore/QList>
26 #include <QtCore/QStringList>
27 
28 class KCModuleProxy;
29 class KPageWidgetItem;
30 
31 class KCMultiDialogPrivate : public KPageDialogPrivate
32 {
33  Q_DECLARE_PUBLIC(KCMultiDialog)
34  protected:
35  KCMultiDialogPrivate()
36  : currentModule(0)
37  {
38  }
39 
40  KCModuleProxy *currentModule;
41 
42  struct CreatedModule
43  {
44  KCModuleProxy *kcm;
45  KPageWidgetItem *item;
46  QStringList componentNames;
47  };
48 
49  typedef QList<CreatedModule> ModuleList;
50  ModuleList modules;
51 
52  void _k_slotCurrentPageChanged(KPageWidgetItem *current, KPageWidgetItem *previous);
53  virtual void _k_clientChanged();
54  void _k_dialogClosed();
55  void _k_updateHeader(bool use, const QString &message);
56 
57  private:
58  void init();
59  void apply();
60  bool resolveChanges(KCModuleProxy *currentProxy);
61  bool moduleSave(KCModuleProxy *module);
62 };
63 
64 #endif // KCMULTIDIALOG_P_H
65 // vim: sw=4 sts=4 et tw=100
KCMultiDialogPrivate::_k_slotCurrentPageChanged
void _k_slotCurrentPageChanged(KPageWidgetItem *current, KPageWidgetItem *previous)
Definition: kcmultidialog.cpp:83
KCMultiDialogPrivate::CreatedModule::componentNames
QStringList componentNames
Definition: kcmultidialog_p.h:46
KCMultiDialogPrivate::CreatedModule::kcm
KCModuleProxy * kcm
Definition: kcmultidialog_p.h:44
KCMultiDialogPrivate::CreatedModule
Definition: kcmultidialog_p.h:42
QString
kcmultidialog.h
KCMultiDialogPrivate::_k_updateHeader
void _k_updateHeader(bool use, const QString &message)
Definition: kcmultidialog.cpp:175
KCMultiDialogPrivate::ModuleList
QList< CreatedModule > ModuleList
Definition: kcmultidialog_p.h:49
KCMultiDialogPrivate::currentModule
KCModuleProxy * currentModule
Definition: kcmultidialog_p.h:40
QStringList
KCMultiDialogPrivate::CreatedModule::item
KPageWidgetItem * item
Definition: kcmultidialog_p.h:45
KCMultiDialogPrivate
Definition: kcmultidialog_p.h:31
KPageWidgetItem
KCMultiDialogPrivate::modules
ModuleList modules
Definition: kcmultidialog_p.h:50
KPageDialogPrivate
KCModuleProxy
Encapsulates a KCModule for embedding.
Definition: kcmoduleproxy.h:67
KCMultiDialogPrivate::_k_dialogClosed
void _k_dialogClosed()
Definition: kcmultidialog.cpp:191
KCMultiDialogPrivate::_k_clientChanged
virtual void _k_clientChanged()
Definition: kcmultidialog.cpp:108
KCMultiDialog
A class that offers a KPageDialog containing arbitrary KControl Modules.
Definition: kcmultidialog.h:37
KCMultiDialogPrivate::KCMultiDialogPrivate
KCMultiDialogPrivate()
Definition: kcmultidialog_p.h:35
QList< CreatedModule >
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:34 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KUtils

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

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