Advertisement
Guest User

deltaecho

a guest
Feb 18th, 2010
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. Index: src/kalzium.knsrc
  2. ===================================================================
  3. --- src/kalzium.knsrc (revision 1091805)
  4. +++ src/kalzium.knsrc (working copy)
  5. @@ -1,3 +1,3 @@
  6. -[KNewStuff2]
  7. +[KNewStuff3]
  8. ProvidersUrl=http://data.kstuff.org/cgi-bin/hotstuff-provider?site=kalzium
  9. TargetDir=kalzium/data/molecules/
  10. Index: src/tools/moleculeview.cpp
  11. ===================================================================
  12. --- src/tools/moleculeview.cpp (revision 1091805)
  13. +++ src/tools/moleculeview.cpp (working copy)
  14. @@ -24,7 +24,7 @@
  15. #include <kstandarddirs.h>
  16. #include <kmessagebox.h>
  17. #include <KLocale>
  18. -#include <knewstuff2/engine.h>
  19. +#include <knewstuff3/downloaddialog.h>
  20.  
  21. #include <openbabel2wrapper.h>
  22.  
  23. @@ -236,15 +236,17 @@
  24. void MoleculeDialog::slotDownloadNewStuff()
  25. {
  26. kDebug() << "Kalzium new stuff";
  27. - KNS::Entry::List entries = KNS::Engine::download();
  28. +
  29. + KNS3::DownloadDialog dialog(this);
  30. + dialog.exec();
  31. +
  32. // list of changed entries
  33. - foreach(KNS::Entry* entry, entries) {
  34. + foreach (const KNS3::Entry& entry, dialog.changedEntries()) {
  35. // care only about installed ones
  36. - if (entry->status() == KNS::Entry::Installed) {
  37. - kDebug() << "Files downloaded: " << entry->installedFiles();
  38. + if (entry.status() == KNS3::Entry::Installed) {
  39. + kDebug() << "Changed Entry: " << entry.installedFiles();
  40. }
  41. }
  42. - qDeleteAll(entries);
  43. }
  44.  
  45. void MoleculeDialog::elementCombo()
  46. Index: src/CMakeLists.txt
  47. ===================================================================
  48. --- src/CMakeLists.txt (revision 1091805)
  49. +++ src/CMakeLists.txt (working copy)
  50. @@ -131,7 +131,7 @@
  51.  
  52. kde4_add_executable(kalzium ${kalzium_SRCS} )
  53.  
  54. -target_link_libraries(kalzium ${KDE4_KHTML_LIBRARY} ${KDE4_KUTILS_LIBRARY} ${KDE4_KNEWSTUFF2_LIBS} ${KDE4_KUNITCONVERSION_LIBS} science kdeeduui)
  55. +target_link_libraries(kalzium ${KDE4_KHTML_LIBRARY} ${KDE4_KUTILS_LIBRARY} ${KDE4_KNEWSTUFF3_LIBS} ${KDE4_KUNITCONVERSION_LIBS} science kdeeduui)
  56.  
  57. if (OPENBABEL2_FOUND)
  58. target_link_libraries(kalzium ${OPENBABEL2_LIBRARIES})
  59.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement