summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/packagelistremote.cpp
authortille <tille>2002-05-01 14:00:09 (UTC)
committer tille <tille>2002-05-01 14:00:09 (UTC)
commite729a9bdd9f37f4bd610d10122f002a0540c93ed (patch) (side-by-side diff)
treea23696d8742a36b57256281dc7e2f7848407be61 /noncore/unsupported/oipkg/packagelistremote.cpp
parent7e5615473c1d103db66f42ae60bf9ed57d52566c (diff)
downloadopie-e729a9bdd9f37f4bd610d10122f002a0540c93ed.zip
opie-e729a9bdd9f37f4bd610d10122f002a0540c93ed.tar.gz
opie-e729a9bdd9f37f4bd610d10122f002a0540c93ed.tar.bz2
added ipkgfind remote query
Diffstat (limited to 'noncore/unsupported/oipkg/packagelistremote.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/packagelistremote.cpp47
1 files changed, 47 insertions, 0 deletions
diff --git a/noncore/unsupported/oipkg/packagelistremote.cpp b/noncore/unsupported/oipkg/packagelistremote.cpp
new file mode 100644
index 0000000..721d4a6
--- a/dev/null
+++ b/noncore/unsupported/oipkg/packagelistremote.cpp
@@ -0,0 +1,47 @@
+
+#include "packagelistremote.h"
+
+#include <qstring.h>
+#include <stdlib.h>
+#include <unistd.h>
+
+PackageListRemote::PackageListRemote(PackageManagerSettings* s)
+ : PackageList(s)
+{
+ PackageListRemote();
+}
+
+PackageListRemote::PackageListRemote()
+ : PackageList()
+{
+}
+
+PackageListRemote::~PackageListRemote()
+{
+}
+
+void PackageListRemote::query(QString s)
+{
+ int r=0;
+ QString cmd = "wget";
+ QString redirect = "/tmp/oipkg.query";
+
+ // use file for output
+ cmd += " --output-document="+redirect;
+//http://ipkgfind.handhelds.org/packages.phtml?format=pda&query=ipkg&searchtype=package&section=
+ QString server="http://ipkgfind.handhelds.org/";
+ cmd += " \""+server+"/packages.phtml";
+ cmd += "?format=pda&searchtype=package&section=";
+ cmd += "&query="+s;
+ cmd += "\"";
+
+ pvDebug(2,"search :"+cmd);
+ r = system(cmd.latin1());
+ readFileEntries( redirect );
+
+}
+
+void PackageListRemote::update()
+{
+ pvDebug(2,"PackageListRemote::update\ndoing nothing ");
+}