[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/plasma/scripting
From:       Petri Damstén <petri.damsten () kdemail ! net>
Date:       2009-11-11 8:02:58
Message-ID: 1257926578.400026.5066.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1047385 by pdamsten:

Add description() also to WallpaperScript.

 M  +7 -0      wallpaperscript.cpp  
 M  +6 -0      wallpaperscript.h  


--- trunk/KDE/kdelibs/plasma/scripting/wallpaperscript.cpp #1047384:1047385
@@ -19,6 +19,7 @@
  */
 
 #include "wallpaperscript.h"
+#include "private/wallpaper_p.h"
 #include "package.h"
 
 namespace Plasma
@@ -67,6 +68,12 @@
     return d->wallpaper->package();
 }
 
+KPluginInfo WallpaperScript::description() const
+{
+    Q_ASSERT(d->wallpaper);
+    return d->wallpaper->d->wallpaperDescription;
+}
+
 void WallpaperScript::initWallpaper(const KConfigGroup &config)
 {
     Q_UNUSED(config)
--- trunk/KDE/kdelibs/plasma/scripting/wallpaperscript.h #1047384:1047385
@@ -22,6 +22,7 @@
 #define PLASMA_WALLPAPERSCRIPT_H
 
 #include <kgenericfactory.h>
+#include <kplugininfo.h>
 
 #include <plasma/plasma_export.h>
 #include <plasma/scripting/scriptengine.h>
@@ -149,6 +150,11 @@
      */
     const Package *package() const;
 
+    /**
+     * @return the KPluginInfo associated with this wallpaper
+     */
+    KPluginInfo description() const;
+
     bool isInitialized() const;
     QRectF boundingRect() const;
     DataEngine *dataEngine(const QString &name) const;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic