KUtils
componentsdialog_p.h
Go to the documentation of this file.
00001 /* This file is part of the KDE project 00002 Copyright (C) 2003 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 COMPONENTSDIALOG_P_H 00021 #define COMPONENTSDIALOG_P_H 00022 00023 #include <kcmutils_export.h> 00024 #include <kdialog.h> 00025 00026 #include <QtCore/QList> 00027 00028 class QString; 00029 class KPluginInfo; 00030 class QTreeWidgetItem; 00031 00032 namespace KSettings 00033 { 00034 00042 class KCMUTILS_EXPORT ComponentsDialog : public KDialog 00043 { 00044 Q_OBJECT 00045 public: 00052 explicit ComponentsDialog( QWidget * parent = 0, const char * name = 0 ); 00053 ~ComponentsDialog(); 00054 00058 void addPluginInfo( KPluginInfo * ); 00062 void setPluginInfos( const QMap<QString, KPluginInfo*> & plugininfos ); 00066 void setPluginInfos( const QList<KPluginInfo *> &plugins ); 00067 00071 void show(); 00072 00073 protected Q_SLOTS: 00074 void slotOk(); 00075 void slotApply(); 00076 00077 private Q_SLOTS: 00078 void executed( QTreeWidgetItem *, int ); 00079 00080 private: 00081 void savePluginInfos(); 00082 00083 class ComponentsDialogPrivate; 00084 ComponentsDialogPrivate* const d; 00085 }; 00086 00087 } 00088 00089 #endif // COMPONENTSDIALOG_P_H
KDE 4.6 API Reference