kdelibs/kutils/kcmoduleproxy_p.h
Ivailo Monev 61333c4671 generic: namespaced Qt4/Katie build fixes
most of the changes were done trought Katie's namefsck script which
convertes forward class declarations to include directives, however
other fixes here and there were needed as well as some questionable
changes to Q_DECLARE_TYPEINFO() macro calls because they most likely
have to do the namespacing themselfs (QT_BEGIN/END_NAMESPACE, and
probably will be in Katie) meaning that some of the changes may be
temporary and reverted later.

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2017-08-04 09:24:39 +00:00

77 lines
2.4 KiB
C++

/* This file is part of the KDE project
Copyright (C) 2007 Matthias Kretz <kretz@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KCMUTILS_KCMODULEPROXY_P_H
#define KCMUTILS_KCMODULEPROXY_P_H
#include "kcmoduleinfo.h"
#include "kcmoduleproxy.h"
#include <QtGui/QLabel>
#include <QVBoxLayout>
class KCModuleProxyPrivate
{
Q_DECLARE_PUBLIC(KCModuleProxy)
protected:
KCModuleProxyPrivate(KCModuleProxy *_parent, const KCModuleInfo &info, const QStringList &_args)
: args(_args), kcm(0), topLayout(0), rootInfo(0), modInfo(info),
changed(false), bogusOccupier(false), parent(_parent)
{
}
~KCModuleProxyPrivate()
{
delete rootInfo; // Delete before embedWidget!
delete kcm;
}
void loadModule();
/**
* Makes sure the proper variables is set and signals are emitted.
*/
void _k_moduleChanged(bool);
/**
* Zeroes d->kcm
*/
void _k_moduleDestroyed();
/**
* Gets called by DCOP when an application closes.
* Is used to (try to) reload a KCM which previously
* was loaded.
*/
void _k_ownerChanged(const QString &service, const QString &oldOwner, const QString &newOwner);
QStringList args;
KCModule *kcm;
QVBoxLayout *topLayout; /* Contains QScrollView view, and root stuff */
QLabel *rootInfo;
QString dbusService;
QString dbusPath;
KCModuleInfo modInfo;
bool changed;
bool bogusOccupier;
KCModuleProxy *parent;
KCModuleProxy *q_ptr;
};
#endif // KCMUTILS_KCMODULEPROXY_P_H
// vim: sw=4 sts=4 et tw=100