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})
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}
${KDE4_THREADWEAVER_LIBRARIES})
@ -235,3 +235,5 @@ install(FILES
servicetypes/plasma-scriptengine.desktop
DESTINATION ${SERVICETYPES_INSTALL_DIR})
install(FILES scripting/plasmoids.knsrc DESTINATION ${CONFIG_INSTALL_DIR})

View File

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