[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/knewstuffrefactor/exampleapp
From:       Jeremy Paul Whiting <jeremy () scitools ! com>
Date:       2009-10-25 14:52:53
Message-ID: 1256482373.651987.21790.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1040089 by whiting:

make example app use command-line passed in knsrc filename, bump the version number also

 M  +5 -10     khotnewstuff.cpp  


--- branches/work/knewstuffrefactor/exampleapp/khotnewstuff.cpp #1040088:1040089
@@ -1,7 +1,7 @@
 /*
     This file is part of KNewStuff.
     Copyright (c) 2002 Cornelius Schumacher <schumacher@kde.org>
-    Copyright (c) 2007 Jeremy Whiting <jeremy@scitools.com>
+    Copyright (c) 2007-2009 Jeremy Whiting <jeremy@scitools.com>
 
     This library is free software; you can redistribute it and/or
     modify it under the terms of the GNU Library General Public
@@ -30,7 +30,7 @@
 
 int main(int argc, char **argv)
 {
-    KAboutData about("khotnewstuff", 0, ki18n("KHotNewStuff"), "0.3");
+    KAboutData about("khotnewstuff", 0, ki18n("KHotNewStuff"), "0.4");
     about.setProgramIconName("get-hot-new-stuff");
     KCmdLineArgs *args;
 
@@ -45,15 +45,11 @@
 
     KApplication i;
     
-    KNS3::Client client;
-    client.init("parley_test.knsrc");
-    client.downloadDialogModal();
-/*
     if (args->count() > 0) {
-        //KNS3::Engine engine(&i);
-        //if (engine.init(args->arg(0))) {
+        KNS3::Client client(NULL);
+        if (client.init(args->arg(0))) {
             // todo - list of installed entries?
-            
+			client.downloadDialogModal(NULL);
         }
         else {
             kDebug() << "could not load " << args->arg(0);
@@ -64,7 +60,6 @@
         args->usage();
         return -1;
     }
-*/
     //if(args->isSet("type")) d.setCategory(args->getOption("type"));
     //if(args->count() == 1) d.setProviderList(args->arg(0));
     // FIXME (KNS2): do we still need/want those?
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic