Diffstat (limited to 'noncore/unsupported/oipkg/packagelistremote.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/packagelistremote.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/noncore/unsupported/oipkg/packagelistremote.cpp b/noncore/unsupported/oipkg/packagelistremote.cpp index 721d4a6..1ec7292 100644 --- a/noncore/unsupported/oipkg/packagelistremote.cpp +++ b/noncore/unsupported/oipkg/packagelistremote.cpp | |||
@@ -19,29 +19,29 @@ PackageListRemote::PackageListRemote() | |||
19 | PackageListRemote::~PackageListRemote() | 19 | PackageListRemote::~PackageListRemote() |
20 | { | 20 | { |
21 | } | 21 | } |
22 | 22 | ||
23 | void PackageListRemote::query(QString s) | 23 | void PackageListRemote::query(QString s) |
24 | { | 24 | { |
25 | searchString = s; | ||
26 | } | ||
27 | |||
28 | void PackageListRemote::update() | ||
29 | { | ||
30 | pvDebug(2,"PackageListRemote::update"); | ||
25 | int r=0; | 31 | int r=0; |
26 | QString cmd = "wget"; | 32 | QString cmd = "wget"; |
27 | QString redirect = "/tmp/oipkg.query"; | 33 | QString redirect = "/tmp/oipkg.query"; |
28 | 34 | ||
29 | // use file for output | 35 | // use file for output |
30 | cmd += " --output-document="+redirect; | 36 | cmd += " --output-document="+redirect; |
31 | //http://ipkgfind.handhelds.org/packages.phtml?format=pda&query=ipkg&searchtype=package§ion= | 37 | //http://ipkgfind.handhelds.org/packages.phtml?format=pda&query=ipkg&searchtype=package§ion= |
32 | QString server="http://ipkgfind.handhelds.org/"; | 38 | QString server="http://ipkgfind.handhelds.org/"; |
33 | cmd += " \""+server+"/packages.phtml"; | 39 | cmd += " \""+server+"/packages.phtml"; |
34 | cmd += "?format=pda&searchtype=package§ion="; | 40 | cmd += "?format=pda&searchtype=package§ion="; |
35 | cmd += "&query="+s; | 41 | cmd += "&query="+searchString; |
36 | cmd += "\""; | 42 | cmd += "\""; |
37 | 43 | ||
38 | pvDebug(2,"search :"+cmd); | 44 | pvDebug(2,"search :"+cmd); |
39 | r = system(cmd.latin1()); | 45 | r = system(cmd.latin1()); |
40 | readFileEntries( redirect ); | 46 | readFileEntries( redirect ); |
41 | |||
42 | } | ||
43 | |||
44 | void PackageListRemote::update() | ||
45 | { | ||
46 | pvDebug(2,"PackageListRemote::update\ndoing nothing "); | ||
47 | } | 47 | } |