summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/packagelistdoclnk.cpp
Unidiff
Diffstat (limited to 'noncore/unsupported/oipkg/packagelistdoclnk.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/packagelistdoclnk.cpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/noncore/unsupported/oipkg/packagelistdoclnk.cpp b/noncore/unsupported/oipkg/packagelistdoclnk.cpp
new file mode 100644
index 0000000..575ac62
--- a/dev/null
+++ b/noncore/unsupported/oipkg/packagelistdoclnk.cpp
@@ -0,0 +1,36 @@
1
2#include "packagelistdoclnk.h"
3
4#include <qpe/applnk.h>
5#include <qlist.h>
6
7#include "package.h"
8#include "pksettings.h"
9
10PackageListDocLnk::PackageListDocLnk(PackageManagerSettings* s)
11 : PackageList(s)
12{
13 PackageListDocLnk();
14}
15
16PackageListDocLnk::PackageListDocLnk()
17 : PackageList()
18{
19 doclnkset = new DocLnkSet("/mnt/nfs/ipk","application/ipkg");
20}
21
22PackageListDocLnk::~PackageListDocLnk()
23{
24}
25
26
27
28void PackageListDocLnk::update()
29{
30 pvDebug(2,"PackageListDocLnk::update ");
31 QList<DocLnk> packlist = doclnkset->children();
32 for (DocLnk *pack =packlist.first(); pack != 0; pack=packlist.next() )
33 {
34 insertPackage( new Package(pack->file(), settings) );
35 }
36}