From c1caaba626b311d068237555a2e9f6e879c06c65 Mon Sep 17 00:00:00 2001 From: Chani Armitage Date: Mon, 29 Dec 2008 08:22:28 +0000 Subject: [PATCH] these functions are important, they should be exposed svn path=/trunk/KDE/kdelibs/; revision=902795 --- scripting/appletscript.cpp | 14 ++++++++++++++ scripting/appletscript.h | 10 ++++++++++ 2 files changed, 24 insertions(+) diff --git a/scripting/appletscript.cpp b/scripting/appletscript.cpp index a33e3a438..100bf6606 100644 --- a/scripting/appletscript.cpp +++ b/scripting/appletscript.cpp @@ -100,6 +100,20 @@ void AppletScript::setHasConfigurationInterface(bool hasInterface) } } +void AppletScript::setConfigurationRequired(bool req, const QString &reason) +{ + if (applet()) { + applet()->setConfigurationRequired(req, reason); + } +} + +void AppletScript::setFailedToLaunch(bool failed, const QString &reason) +{ + if (applet()) { + applet()->setFailedToLaunch(failed, reason); + } +} + void AppletScript::showConfigurationInterface() { } diff --git a/scripting/appletscript.h b/scripting/appletscript.h index 5b33f1c1b..5183dc7f2 100644 --- a/scripting/appletscript.h +++ b/scripting/appletscript.h @@ -117,6 +117,16 @@ public: */ void setHasConfigurationInterface(bool hasInterface); + /** + * @see Applet + */ + void setConfigurationRequired(bool req, const QString &reason = QString()); + + /** + * @see Applet + */ + void setFailedToLaunch(bool failed, const QString &reason = QString()); + public Q_SLOTS: /**