summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg
authortille <tille>2002-05-02 19:53:56 (UTC)
committer tille <tille>2002-05-02 19:53:56 (UTC)
commit7833ad013239d04669edd54041287563a47728ec (patch) (side-by-side diff)
tree9b733caf7880a052580ecbb496cb2914e17a2a69 /noncore/unsupported/oipkg
parentce6758eccada41f5c3fef13e6b4808c525213bee (diff)
downloadopie-7833ad013239d04669edd54041287563a47728ec.zip
opie-7833ad013239d04669edd54041287563a47728ec.tar.gz
opie-7833ad013239d04669edd54041287563a47728ec.tar.bz2
fixed
Diffstat (limited to 'noncore/unsupported/oipkg') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/packagelistdoclnk.cpp9
-rw-r--r--noncore/unsupported/oipkg/packagelistdoclnk.h1
-rw-r--r--noncore/unsupported/oipkg/packagelistview.cpp13
3 files changed, 21 insertions, 2 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
@@ -1,35 +1,42 @@
#include "packagelistdoclnk.h"
#include <qpe/applnk.h>
+#include <qpe/config.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");
+ Config cfg( "oipkg", Config::User );
+ cfg.setGroup( "Common" );
+ docLnkDir = cfg.readEntry( "docLnkDir", "/root/" );
+ doclnkset = new DocLnkSet(docLnkDir,"application/ipkg");
}
PackageListDocLnk::~PackageListDocLnk()
{
+ Config cfg( "oipkg", Config::User );
+ cfg.setGroup( "Common" );
+ cfg.writeEntry( "docLnkDir", docLnkDir );
}
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) );
}
diff --git a/noncore/unsupported/oipkg/packagelistdoclnk.h b/noncore/unsupported/oipkg/packagelistdoclnk.h
index 3864ace..fe73658 100644
--- a/noncore/unsupported/oipkg/packagelistdoclnk.h
+++ b/noncore/unsupported/oipkg/packagelistdoclnk.h
@@ -7,16 +7,17 @@
class DocLnkSet;
class PackageListDocLnk : public PackageList
{
public:
PackageListDocLnk();
PackageListDocLnk( PackageManagerSettings* s);
virtual ~PackageListDocLnk();
public slots:
void update();
private:
DocLnkSet *doclnkset;
+ QString docLnkDir;
};
#endif
diff --git a/noncore/unsupported/oipkg/packagelistview.cpp b/noncore/unsupported/oipkg/packagelistview.cpp
index b6b520b..70aa48a 100644
--- a/noncore/unsupported/oipkg/packagelistview.cpp
+++ b/noncore/unsupported/oipkg/packagelistview.cpp
@@ -26,25 +26,36 @@ PackageListView::PackageListView(QWidget *p, const char* n, PackageManagerSettin
}
//PackageListView::~PackageListView()
//{
//}
void PackageListView::setCurrent( QListViewItem* p )
{
if ( !p ) return;
activePackageListItem = (PackageListItem*)p;
activePackage = activePackageListItem->getPackage();
- if (!activePackage) return;
+ if (!activePackage)
+ {
+// QDictIterator<QCheckListItem> it( rootItems );
+// while ( it.current() )
+// {
+// if ( it.current()==p )
+// pvDebug(2,"current item");
+// ++it;
+// }
+
+ return;
+ }
popupTimer->start( 750, true );
}
void PackageListView::showPopup()
{
popupMenu->clear();
destsMenu->clear();
QAction *popupAction;
if ( !activePackage->installed() )
{