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

KUtils

dialog_p.h

Go to the documentation of this file.
00001 /*  This file is part of the KDE project
00002     Copyright (C) 2007 Matthias Kretz <kretz@kde.org>
00003 
00004     This library is free software; you can redistribute it and/or
00005     modify it under the terms of the GNU Library General Public
00006     License version 2 as published by the Free Software Foundation.
00007 
00008     This library is distributed in the hope that it will be useful,
00009     but WITHOUT ANY WARRANTY; without even the implied warranty of
00010     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011     Library General Public License for more details.
00012 
00013     You should have received a copy of the GNU Library General Public License
00014     along with this library; see the file COPYING.LIB.  If not, write to
00015     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016     Boston, MA 02110-1301, USA.
00017 
00018 */
00019 
00020 #ifndef KSETTINGS_DIALOG_P_H
00021 #define KSETTINGS_DIALOG_P_H
00022 
00023 #include "dialog.h"
00024 #include "../kcmultidialog_p.h"
00025 #include "../kcmoduleinfo.h"
00026 
00027 #include <QtCore/QHash>
00028 #include <QtCore/QList>
00029 #include <QtCore/QSet>
00030 #include <QtCore/QString>
00031 #include <QtGui/QLabel>
00032 #include <QtGui/QWidget>
00033 
00034 #include <kpagewidgetmodel.h>
00035 #include <kservice.h>
00036 #include <kplugininfo.h>
00037 #include <kvbox.h>
00038 
00039 class QCheckBox;
00040 
00041 namespace KSettings
00042 {
00043 
00044 class DialogPrivate : public KCMultiDialogPrivate
00045 {
00046     friend class PageNode;
00047     Q_DECLARE_PUBLIC(Dialog)
00048     protected:
00049         DialogPrivate();
00050 
00051         QHash<QString, KPageWidgetItem *> pageItemForGroupId;
00052         QHash<KPageWidgetItem *, KPluginInfo> pluginForItem;
00053         QHash<KPageWidgetItem *, QCheckBox *> checkBoxForItem;
00054         KPluginInfo::List plugininfos;
00055 
00056         QStringList registeredComponents;
00057         QSet<KCModuleInfo> kcmInfos;
00058         QStringList componentBlacklist;
00059         QStringList arguments;
00060         QStringList components;
00061 
00062         bool staticlistview : 1;
00063         bool firstshow : 1;
00064         quint32 pluginStateDirty : 30;
00065 
00066         //void _k_configureTree();
00067         void _k_updateEnabledState(bool);
00068         void _k_syncConfiguration();
00069         void _k_reparseConfiguration(const QByteArray &a);
00070         virtual void _k_clientChanged();
00071 
00072         KPageWidgetItem *createPageItem(KPageWidgetItem *parentItem,
00073                                         const QString &name, const QString &comment,
00074                                         const QString &iconName, int weight);
00075 
00076         void connectItemCheckBox(KPageWidgetItem *item, const KPluginInfo &pinfo,
00077                             bool isEnabled);
00078 
00079     private:
00084         bool isPluginForKCMEnabled(const KCModuleInfo *moduleinfo, KPluginInfo &pinfo) const;
00085         bool isPluginImmutable(const KPluginInfo &pinfo) const;
00086 
00087         QSet<KCModuleInfo> instanceServices();
00088         QSet<KCModuleInfo> parentComponentsServices(const QStringList &);
00089 
00094         void parseGroupFile(const QString &);
00095 
00101         //QStringList parentModuleNames(KCModuleInfo *);
00102 
00109         void createDialogFromServices();
00110 };
00111 
00112 } // namespace KSettings
00113 #endif // KSETTINGS_DIALOG_P_H

KUtils

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal