1 /* This file is part of the KDE project
2 Copyright (C) 2007 Matthias Kretz <kretz@kde.org>
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.
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.
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.
20 #ifndef KUTILS_KCMODULEPROXY_P_H
21 #define KUTILS_KCMODULEPROXY_P_H
23 #include "kcmoduleinfo.h"
24 #include "kcmoduleproxy.h"
25 #include <QtGui/QLabel>
28 class KCModuleProxyPrivate
30 Q_DECLARE_PUBLIC(KCModuleProxy
)
32 KCModuleProxyPrivate(KCModuleProxy
*_parent
, const KCModuleInfo
&info
, const QStringList
&_args
)
33 : args(_args
), kcm(0), topLayout(0), rootInfo(0), modInfo(info
),
34 changed(false), bogusOccupier(false), parent(_parent
)
38 ~KCModuleProxyPrivate()
40 delete rootInfo
; // Delete before embedWidget!
47 * Makes sure the proper variables is set and signals are emitted.
49 void _k_moduleChanged(bool);
54 void _k_moduleDestroyed();
57 * Gets called by DCOP when an application closes.
58 * Is used to (try to) reload a KCM which previously
61 void _k_ownerChanged(const QString
&service
, const QString
&oldOwner
, const QString
&newOwner
);
65 QVBoxLayout
*topLayout
; /* Contains QScrollView view, and root stuff */
72 KCModuleProxy
*parent
;
76 #endif // KUTILS_KCMODULEPROXY_P_H
77 // vim: sw=4 sts=4 et tw=100