From 0f8a89e2d462d88f449a9ca8c8186f6df84cbbb5 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Mon, 1 Jun 2009 15:53:32 +0000 Subject: [PATCH] add access to the extender svn path=/trunk/KDE/kdelibs/; revision=976407 --- scripting/appletscript.cpp | 6 ++++++ scripting/appletscript.h | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/scripting/appletscript.cpp b/scripting/appletscript.cpp index 7866ff3b1..0016c40d0 100644 --- a/scripting/appletscript.cpp +++ b/scripting/appletscript.cpp @@ -162,6 +162,12 @@ const Package *AppletScript::package() const return d->applet->package(); } +Extender *AppletScript::extender() const +{ + Q_ASSERT(d->applet); + return d->applet->extender(); +} + } // Plasma namespace #include "appletscript.moc" diff --git a/scripting/appletscript.h b/scripting/appletscript.h index ccb753a99..33f920d93 100644 --- a/scripting/appletscript.h +++ b/scripting/appletscript.h @@ -38,6 +38,7 @@ namespace Plasma { class AppletScriptPrivate; +class Extender; /** * @class AppletScript plasma/scripting/appletscript.h @@ -135,6 +136,11 @@ public: */ void configNeedsSaving() const; + /** + * @see Applet + */ + Extender *extender() const; + public Q_SLOTS: /**