Diffstat (limited to 'noncore/unsupported/oipkg/packagelistdoclnk.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/packagelistdoclnk.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/noncore/unsupported/oipkg/packagelistdoclnk.cpp b/noncore/unsupported/oipkg/packagelistdoclnk.cpp index 575ac62..5787fdf 100644 --- a/noncore/unsupported/oipkg/packagelistdoclnk.cpp +++ b/noncore/unsupported/oipkg/packagelistdoclnk.cpp | |||
@@ -2,6 +2,7 @@ | |||
2 | #include "packagelistdoclnk.h" | 2 | #include "packagelistdoclnk.h" |
3 | 3 | ||
4 | #include <qpe/applnk.h> | 4 | #include <qpe/applnk.h> |
5 | #include <qpe/config.h> | ||
5 | #include <qlist.h> | 6 | #include <qlist.h> |
6 | 7 | ||
7 | #include "package.h" | 8 | #include "package.h" |
@@ -16,11 +17,17 @@ PackageListDocLnk::PackageListDocLnk(PackageManagerSettings* s) | |||
16 | PackageListDocLnk::PackageListDocLnk() | 17 | PackageListDocLnk::PackageListDocLnk() |
17 | : PackageList() | 18 | : PackageList() |
18 | { | 19 | { |
19 | doclnkset = new DocLnkSet("/mnt/nfs/ipk","application/ipkg"); | 20 | Config cfg( "oipkg", Config::User ); |
21 | cfg.setGroup( "Common" ); | ||
22 | docLnkDir = cfg.readEntry( "docLnkDir", "/root/" ); | ||
23 | doclnkset = new DocLnkSet(docLnkDir,"application/ipkg"); | ||
20 | } | 24 | } |
21 | 25 | ||
22 | PackageListDocLnk::~PackageListDocLnk() | 26 | PackageListDocLnk::~PackageListDocLnk() |
23 | { | 27 | { |
28 | Config cfg( "oipkg", Config::User ); | ||
29 | cfg.setGroup( "Common" ); | ||
30 | cfg.writeEntry( "docLnkDir", docLnkDir ); | ||
24 | } | 31 | } |
25 | 32 | ||
26 | 33 | ||