summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/packagelistremote.cpp
Unidiff
Diffstat (limited to 'noncore/unsupported/oipkg/packagelistremote.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/packagelistremote.cpp14
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
@@ -13,35 +13,35 @@ PackageListRemote::PackageListRemote(PackageManagerSettings* s)
13 13
14PackageListRemote::PackageListRemote() 14PackageListRemote::PackageListRemote()
15 : PackageList() 15 : PackageList()
16{ 16{
17} 17}
18 18
19PackageListRemote::~PackageListRemote() 19PackageListRemote::~PackageListRemote()
20{ 20{
21} 21}
22 22
23void PackageListRemote::query(QString s) 23void PackageListRemote::query(QString s)
24{ 24{
25 searchString = s;
26}
27
28void 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&section= 37//http://ipkgfind.handhelds.org/packages.phtml?format=pda&query=ipkg&searchtype=package&section=
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&section="; 40 cmd += "?format=pda&searchtype=package&section=";
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
44void PackageListRemote::update()
45{
46 pvDebug(2,"PackageListRemote::update\ndoing nothing ");
47} 47}