connect to the plasmoid feed
BUG:160494 svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=821062
This commit is contained in:
parent
8a602d02b4
commit
d5b4ede232
@ -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})
|
||||
|
||||
|
@ -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()
|
||||
|
4
scripting/plasmoids.knsrc
Normal file
4
scripting/plasmoids.knsrc
Normal file
@ -0,0 +1,4 @@
|
||||
[KNewStuff2]
|
||||
ProvidersUrl=http://download.kde.org/khotnewstuff/plasmoids-providers.xml
|
||||
StandardResource=temp
|
||||
InstallationCommand=plasmapkg -i %f
|
Loading…
Reference in New Issue
Block a user