Don't like ads? PRO users don't see any ads ;-)
Guest

deltaecho

By: a guest on Feb 20th, 2010  |  syntax: None  |  size: 2.53 KB  |  hits: 133  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Index: src/kigo-games.knsrc
  2. ===================================================================
  3. --- src/kigo-games.knsrc        (revision 1093067)
  4. +++ src/kigo-games.knsrc        (working copy)
  5.  -1,4 +1,4 @@
  6. -[KNewStuff2]
  7. +[KNewStuff3]
  8.  ProvidersUrl=http://newstuff.kde.org/cgi-bin/hotstuff-provider?site=kigo
  9.  TargetDir=kigo/games
  10.  Uncompress=archive
  11. Index: src/gui/mainwindow.cpp
  12. ===================================================================
  13. --- src/gui/mainwindow.cpp      (revision 1093067)
  14. +++ src/gui/mainwindow.cpp      (working copy)
  15.  -35,7 +35,7 @@
  16.  #include <KConfigDialog>
  17.  #include <KFileDialog>
  18.  #include <KGameThemeSelector>
  19. -#include <knewstuff2/engine.h>
  20. +#include <knewstuff3/downloaddialog.h>
  21.  #include <KStandardDirs>
  22.  #include <KStandardGameAction>
  23.  #include <KToggleAction>
  24.  -156,15 +156,14 @@
  25.  
  26.  void MainWindow::getMoreGames()
  27.  {
  28. -    KNS::Engine engine(0);
  29. +    KNS3::DownloadDialog dialog("kigo-games.knsrc", this);
  30. +    dialog.exec();
  31.  
  32. -    if (engine.init("kigo-games.knsrc")) {
  33. -        KNS::Entry::List entries = engine.downloadDialogModal(this);
  34. -        /*if (entries.size() > 0) {
  35. -            // do something with the modified entries here if you want
  36. -            // such as rescaning your data folder or whatnot
  37. -        }*/
  38. -    }
  39. +    KNS3::Entry::List entries = dialog.changedEntries();
  40. +    /*if (entries.size() > 0) {
  41. +        // do something with the modified entries here if you want
  42. +        // such as rescaning your data folder or whatnot
  43. +    }*/
  44.  }
  45.  
  46.  void MainWindow::backendError()
  47. Index: src/kigo.knsrc
  48. ===================================================================
  49. --- src/kigo.knsrc      (revision 1093067)
  50. +++ src/kigo.knsrc      (working copy)
  51.  -1,4 +1,4 @@
  52. -[KNewStuff2]
  53. +[KNewStuff3]
  54.  ProvidersUrl=http://newstuff.kde.org/cgi-bin/hotstuff-provider?site=kigo
  55.  TargetDir=kigo/themes
  56.  Uncompress=never
  57. Index: src/CMakeLists.txt
  58. ===================================================================
  59. --- src/CMakeLists.txt  (revision 1093067)
  60. +++ src/CMakeLists.txt  (working copy)
  61.  -27,7 +27,7 @@
  62.  kde4_add_app_icon(kigo_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/../data/icons/hi*-app-kigo.png")
  63.  kde4_add_executable(kigo ${kigo_SRCS})
  64.  
  65. -target_link_libraries(kigo ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} kdegames ${KDE4_KNEWSTUFF2_LIBS})# ${KGGZGAMES_LIBS})
  66. +target_link_libraries(kigo ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} kdegames ${KDE4_KNEWSTUFF3_LIBS})# ${KGGZGAMES_LIBS})
  67.  
  68.  install(TARGETS kigo ${INSTALL_TARGETS_DEFAULT_ARGS})
  69.  install(FILES kigo.kcfg DESTINATION ${KCFG_INSTALL_DIR})