KUtils
kcmoduleproxy_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 KCMUTILS_KCMODULEPROXY_P_H 00021 #define KCMUTILS_KCMODULEPROXY_P_H 00022 00023 #include "kcmoduleinfo.h" 00024 #include "kcmoduleproxy.h" 00025 #include <QtGui/QLabel> 00026 class QVBoxLayout; 00027 00028 class KCModuleProxyPrivate 00029 { 00030 Q_DECLARE_PUBLIC(KCModuleProxy) 00031 protected: 00032 KCModuleProxyPrivate(KCModuleProxy *_parent, const KCModuleInfo &info, const QStringList &_args) 00033 : args(_args), kcm(0), topLayout(0), rootInfo(0), modInfo(info), 00034 changed(false), bogusOccupier(false), parent(_parent) 00035 { 00036 } 00037 00038 ~KCModuleProxyPrivate() 00039 { 00040 delete rootInfo; // Delete before embedWidget! 00041 delete kcm; 00042 } 00043 00044 void loadModule(); 00045 00049 void _k_moduleChanged(bool); 00050 00054 void _k_moduleDestroyed(); 00055 00061 void _k_ownerChanged(const QString &service, const QString &oldOwner, const QString &newOwner); 00062 00063 QStringList args; 00064 KCModule *kcm; 00065 QVBoxLayout *topLayout; /* Contains QScrollView view, and root stuff */ 00066 QLabel *rootInfo; 00067 QString dbusService; 00068 QString dbusPath; 00069 KCModuleInfo modInfo; 00070 bool changed; 00071 bool bogusOccupier; 00072 KCModuleProxy *parent; 00073 KCModuleProxy *q_ptr; 00074 }; 00075 00076 #endif // KCMUTILS_KCMODULEPROXY_P_H 00077 // vim: sw=4 sts=4 et tw=100
KDE 4.6 API Reference