Development/Tutorials/Collaboration/HotNewStuff/Upload: Difference between revisions
m (moved HotNewStuff/Upload to HotNewStuff/Collaboration/Upload) |
m (moved HotNewStuff/Collaboration/Upload to Development/Tutorials/Collaboration/HotNewStuff/Upload: ugh, messed it up again) |
(No difference)
|
Revision as of 15:47, 12 March 2010
Development/Tutorials/Collaboration/HotNewStuff/Upload
Languages: عربي | Asturianu | Català | Česky | Kaszëbsczi | Dansk | Deutsch | English | Esperanto | Español | Eesti | فارسی | Suomi | Français | Galego | Italiano | 日本語 | 한국어 | Norwegian | Polski | Português Brasileiro | Română | Русский | Svenska | Slovenčina | Slovenščina | српски | Türkçe | Tiếng Việt | Українська | 简体中文 | 繁體中文
Tutorial Series | HotNewStuff |
Previous | Get Hot New Stuff 3 - Download |
What's Next | n/a |
Further Reading | n/a |
Overview
Only works with openDesktop.org and other websites that implement the Open Collaboration Services API.
The Code
The Configuration File (.knsrc)
In addition to the download version, you need to add UploadCategories, to set up where the contents can be uploaded to.
[KNewStuff3]
ProvidersUrl=http://download.kde.org/ocs/providers.xml
UploadCategories=KDE Wallpaper 1920x1200,KDE Wallpaper 1600x1200
Linking in CMakeLists.txt
To link against KNS3, just link against ${KDE4_KNEWSTUFF3_LIBS}. Example:
target_link_libraries(ktexteditor_codesnippets_core
${KDE4_KDEUI_LIBS} ${KDE4_KTEXTEDITOR_LIBS} ${KDE4_KNEWSTUFF3_LIBS})