summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/packagelistdoclnk.cpp
Side-by-side diff
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 @@
+
+#include "packagelistdoclnk.h"
+
+#include <qpe/applnk.h>
+#include <qlist.h>
+
+#include "package.h"
+#include "pksettings.h"
+
+PackageListDocLnk::PackageListDocLnk(PackageManagerSettings* s)
+ : PackageList(s)
+{
+ PackageListDocLnk();
+}
+
+PackageListDocLnk::PackageListDocLnk()
+ : PackageList()
+{
+ doclnkset = new DocLnkSet("/mnt/nfs/ipk","application/ipkg");
+}
+
+PackageListDocLnk::~PackageListDocLnk()
+{
+}
+
+
+
+void PackageListDocLnk::update()
+{
+ pvDebug(2,"PackageListDocLnk::update ");
+ QList<DocLnk> packlist = doclnkset->children();
+ for (DocLnk *pack =packlist.first(); pack != 0; pack=packlist.next() )
+ {
+ insertPackage( new Package(pack->file(), settings) );
+ }
+}