summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/TODO1
-rw-r--r--noncore/unsupported/oipkg/package.cpp5
-rw-r--r--noncore/unsupported/oipkg/package.h1
-rw-r--r--noncore/unsupported/oipkg/packagelistitem.cpp9
4 files changed, 14 insertions, 2 deletions
diff --git a/noncore/unsupported/oipkg/TODO b/noncore/unsupported/oipkg/TODO
index fc2e8a4..9d9a650 100644
--- a/noncore/unsupported/oipkg/TODO
+++ b/noncore/unsupported/oipkg/TODO
@@ -1,14 +1,13 @@
1* Settings Class 1* Settings Class
2* tr() ;) 2* tr() ;)
3* Dialog to display ipkg output live 3* Dialog to display ipkg output live
4* parse "to install" and "to remove" from status 4* parse "to install" and "to remove" from status
5* install local file dialog 5* install local file dialog
6* qcop 6* qcop
7* error handling 7* error handling
8* manage links 8* manage links
9* dependency checking 9* dependency checking
10* create dest if it does not exist 10* create dest if it does not exist
11* allow reinstalling 11* allow reinstalling
12* handle different versions
13* different types of filters and searches 12* different types of filters and searches
14 i.e. name, desc, files etc \ No newline at end of file 13 i.e. name, desc, files etc \ No newline at end of file
diff --git a/noncore/unsupported/oipkg/package.cpp b/noncore/unsupported/oipkg/package.cpp
index 0787ece..f992641 100644
--- a/noncore/unsupported/oipkg/package.cpp
+++ b/noncore/unsupported/oipkg/package.cpp
@@ -352,12 +352,17 @@ void Package::parseIpkgFile( QString file)
352 //else return _packageName; 352 //else return _packageName;
353//} 353//}
354 354
355void Package::instalFromFile(bool iff) 355void Package::instalFromFile(bool iff)
356{ 356{
357 _useFileName = iff; 357 _useFileName = iff;
358} 358}
359 359
360void Package::setName(QString n) 360void Package::setName(QString n)
361{ 361{
362 _displayName = n; 362 _displayName = n;
363} 363}
364
365QDict<QString>* Package::getFields()
366{
367 return &_values;
368}
diff --git a/noncore/unsupported/oipkg/package.h b/noncore/unsupported/oipkg/package.h
index 2ca966d..fc725bc 100644
--- a/noncore/unsupported/oipkg/package.h
+++ b/noncore/unsupported/oipkg/package.h
@@ -40,24 +40,25 @@ class Package //: public QObject
40 bool toProcess(); 40 bool toProcess();
41 bool toInstall(); 41 bool toInstall();
42 bool toRemove(); 42 bool toRemove();
43 void processed(); 43 void processed();
44 QString dest(); 44 QString dest();
45 void setDest( QString d ); 45 void setDest( QString d );
46 void setOn(); 46 void setOn();
47 bool link(); 47 bool link();
48 void setLink(bool); 48 void setLink(bool);
49 void parseIpkgFile( QString ); 49 void parseIpkgFile( QString );
50 void instalFromFile(bool iff=true); 50 void instalFromFile(bool iff=true);
51 void setName(QString); 51 void setName(QString);
52 QDict<QString>* getFields();
52public slots: 53public slots:
53 void toggleProcess(); 54 void toggleProcess();
54 55
55private: 56private:
56 PackageManagerSettings *settings; 57 PackageManagerSettings *settings;
57 QString _displayName; 58 QString _displayName;
58 QString _name; 59 QString _name;
59 QString _fileName; 60 QString _fileName;
60 bool _toProcess; 61 bool _toProcess;
61 bool _link; 62 bool _link;
62 QString _status; 63 QString _status;
63 QString _size; 64 QString _size;
diff --git a/noncore/unsupported/oipkg/packagelistitem.cpp b/noncore/unsupported/oipkg/packagelistitem.cpp
index b7af9a6..2f81714 100644
--- a/noncore/unsupported/oipkg/packagelistitem.cpp
+++ b/noncore/unsupported/oipkg/packagelistitem.cpp
@@ -20,28 +20,35 @@ PackageListItem::PackageListItem(QListViewItem *lvi, Package *pi, PackageManager
20 :QCheckListItem(lvi,pi->name(),CheckBox) 20 :QCheckListItem(lvi,pi->name(),CheckBox)
21{ 21{
22 init(pi,s); 22 init(pi,s);
23} 23}
24 24
25void PackageListItem::init( Package *pi, PackageManagerSettings *s) 25void PackageListItem::init( Package *pi, PackageManagerSettings *s)
26{ 26{
27 package = pi; 27 package = pi;
28 settings = s; 28 settings = s;
29 setExpandable( true ); 29 setExpandable( true );
30 QCheckListItem *item; 30 QCheckListItem *item;
31 nameItem = new QCheckListItem( this, "" ); 31 nameItem = new QCheckListItem( this, "" );
32 item = new QCheckListItem( this, QObject::tr("Description: ")+pi->desc() );
33 item = new QCheckListItem( this, QObject::tr("Size: ")+pi->size() ); 32 item = new QCheckListItem( this, QObject::tr("Size: ")+pi->size() );
34 destItem = new QCheckListItem( this, "" ); 33 destItem = new QCheckListItem( this, "" );
35 linkItem = new QCheckListItem( this, "" ); 34 linkItem = new QCheckListItem( this, "" );
35 QCheckListItem *otherItem = new QCheckListItem( this, QObject::tr("other") );
36 item = new QCheckListItem( otherItem, QObject::tr("Description: ")+pi->desc() );
37 QDict<QString> *fields = pi->getFields();
38 QDictIterator<QString> it( *fields );
39 while ( it.current() ) {
40 item = new QCheckListItem( otherItem, QString(it.currentKey()+": "+*it.current()) );
41 ++it;
42 }
36 displayDetails(); 43 displayDetails();
37 44
38 if (!pm_uninstalled) 45 if (!pm_uninstalled)
39 { 46 {
40 pm_uninstalled = new QPixmap(Resource::loadPixmap("oipkg/uninstalled")); 47 pm_uninstalled = new QPixmap(Resource::loadPixmap("oipkg/uninstalled"));
41 pm_installed = new QPixmap(Resource::loadPixmap("oipkg/installed")); 48 pm_installed = new QPixmap(Resource::loadPixmap("oipkg/installed"));
42 pm_install = new QPixmap(Resource::loadPixmap("oipkg/install")); 49 pm_install = new QPixmap(Resource::loadPixmap("oipkg/install"));
43 pm_uninstall = new QPixmap(Resource::loadPixmap("oipkg/uninstall")); 50 pm_uninstall = new QPixmap(Resource::loadPixmap("oipkg/uninstall"));
44 } 51 }
45} 52}
46 53
47void PackageListItem::paintCell( QPainter *p, const QColorGroup & cg, 54void PackageListItem::paintCell( QPainter *p, const QColorGroup & cg,