dolphin/kinfocenter/moduleIface.cpp
Allen Winter ea0f0ced71 first part of moving kinfocenter into kdebase/apps from kdebase/runtime.
svn path=/trunk/KDE/kdebase/apps/; revision=745257
2007-12-05 20:50:48 +00:00

59 lines
1.6 KiB
C++

/*
Copyright (c) 2001 Daniel Molkentin <molkentin@kde.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include "moduleIface.h"
#include "moduleIface.moc"
#include <QtDBus/qdbusconnection.h>
#include <kdebug.h>
#include <kconfig.h>
#include <kconfiggroup.h>
ModuleIface::ModuleIface(QObject *parent, const char *name)
: QObject(parent) {
QDBusConnection::sessionBus().registerObject('/'+QString(name), this, QDBusConnection::ExportScriptableSlots);
setObjectName( name );
_parent = static_cast<QWidget *>(parent);
}
ModuleIface::~ModuleIface() {
}
#ifdef __GNUC__
#warning "kde4: DBUS port "
#endif
#if 0
QFont ModuleIface::getFont() {
return _parent->font();
}
QPalette ModuleIface::getPalette(){
kDebug(1208) << "Returned Palette";
return _parent->palette();
}
#endif
QString ModuleIface::getStyle() const {
KConfig _config( "kdeglobals" );
KConfigGroup config(&_config, "General" );
return config.readEntry("widgetStyle");
}
void ModuleIface::invokeHelp() {
emit helpClicked();
}