connect to the plasmoid feed

BUG:160494

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=821062
This commit is contained in:
Aaron J. Seigo 2008-06-16 09:04:14 +00:00
parent 8a602d02b4
commit d5b4ede232
3 changed files with 13 additions and 3 deletions

View File

@ -88,7 +88,7 @@ endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
kde4_add_library(plasma SHARED ${plasma_LIB_SRCS}) kde4_add_library(plasma SHARED ${plasma_LIB_SRCS})
target_link_libraries(plasma ${KDE4_KIO_LIBS} ${KDE4_KFILE_LIBS} target_link_libraries(plasma ${KDE4_KIO_LIBS} ${KDE4_KFILE_LIBS} ${KDE4_KNEWSTUFF2_LIBS}
${QT_QTUITOOLS_LIBRARY} ${QT_QTWEBKIT_LIBRARY} ${QT_QTUITOOLS_LIBRARY} ${QT_QTWEBKIT_LIBRARY}
${KDE4_THREADWEAVER_LIBRARIES}) ${KDE4_THREADWEAVER_LIBRARIES})
@ -235,3 +235,5 @@ install(FILES
servicetypes/plasma-scriptengine.desktop servicetypes/plasma-scriptengine.desktop
DESTINATION ${SERVICETYPES_INSTALL_DIR}) DESTINATION ${SERVICETYPES_INSTALL_DIR})
install(FILES scripting/plasmoids.knsrc DESTINATION ${CONFIG_INSTALL_DIR})

View File

@ -31,6 +31,8 @@
#include <KServiceTypeTrader> #include <KServiceTypeTrader>
#include <KStandardAction> #include <KStandardAction>
#include <knewstuff2/engine.h>
#include "plasma/applet.h" #include "plasma/applet.h"
#include "plasma/corona.h" #include "plasma/corona.h"
#include "plasma/containment.h" #include "plasma/containment.h"
@ -310,8 +312,10 @@ void AppletBrowserWidget::destroyApplets(const QString &name)
void AppletBrowserWidget::downloadWidgets() void AppletBrowserWidget::downloadWidgets()
{ {
//TODO: implement KNS::Engine engine(0);
kDebug() << "GHNS button clicked"; if (engine.init("plasmoids.knsrc")) {
KNS::Entry::List entries = engine.downloadDialogModal(this);
}
} }
void AppletBrowserWidget::openWidgetFile() void AppletBrowserWidget::openWidgetFile()

View File

@ -0,0 +1,4 @@
[KNewStuff2]
ProvidersUrl=http://download.kde.org/khotnewstuff/plasmoids-providers.xml
StandardResource=temp
InstallationCommand=plasmapkg -i %f