22 files changed, 197 insertions, 27 deletions
diff --git a/noncore/unsupported/oipkg/installdialog.cpp b/noncore/unsupported/oipkg/installdialog.cpp index bb50103..c676e84 100644 --- a/noncore/unsupported/oipkg/installdialog.cpp +++ b/noncore/unsupported/oipkg/installdialog.cpp | |||
@@ -1,32 +1,33 @@ | |||
1 | /**************************************************************************** | 1 | /*************************************************************************** |
2 | ** Form implementation generated from reading ui file 'installdialog.ui' | 2 | * * |
3 | ** | 3 | * This program is free software; you can redistribute it and/or modify * |
4 | ** Created: Thu May 2 22:19:02 2002 | 4 | * it under the terms of the GNU General Public License as published by * |
5 | ** by: The User Interface Compiler (uic) | 5 | * the Free Software Foundation; either version 2 of the License, or * |
6 | ** | 6 | * (at your option) any later version. * |
7 | ** WARNING! All changes made in this file will be lost! | 7 | * * |
8 | ****************************************************************************/ | 8 | ***************************************************************************/ |
9 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> | ||
9 | #include "installdialog.h" | 10 | #include "installdialog.h" |
10 | 11 | ||
11 | #include <qcheckbox.h> | 12 | #include <qcheckbox.h> |
12 | #include <qgroupbox.h> | 13 | #include <qgroupbox.h> |
13 | #include <qheader.h> | 14 | #include <qheader.h> |
14 | #include <qlistview.h> | 15 | #include <qlistview.h> |
15 | #include <qpushbutton.h> | 16 | #include <qpushbutton.h> |
16 | #include <qlayout.h> | 17 | #include <qlayout.h> |
17 | #include <qvariant.h> | 18 | #include <qvariant.h> |
18 | #include <qtooltip.h> | 19 | #include <qtooltip.h> |
19 | #include <qwhatsthis.h> | 20 | #include <qwhatsthis.h> |
20 | 21 | ||
21 | 22 | ||
22 | InstallDialog::InstallDialog( PackageManagerSettings* s, QWidget* parent, const char* name, bool modal, WFlags fl ) | 23 | InstallDialog::InstallDialog( PackageManagerSettings* s, QWidget* parent, const char* name, bool modal, WFlags fl ) |
23 | : QDialog( parent, name, modal, fl ) | 24 | : QDialog( parent, name, modal, fl ) |
24 | { | 25 | { |
25 | settings = s; | 26 | settings = s; |
26 | if ( !name ) | 27 | if ( !name ) |
27 | setName( "InstallDialog" ); | 28 | setName( "InstallDialog" ); |
28 | resize( 223, 269 ); | 29 | resize( 223, 269 ); |
29 | setCaption( tr( "Install" ) ); | 30 | setCaption( tr( "Install" ) ); |
30 | InstallDialogLayout = new QGridLayout( this ); | 31 | InstallDialogLayout = new QGridLayout( this ); |
31 | InstallDialogLayout->setSpacing( 2 ); | 32 | InstallDialogLayout->setSpacing( 2 ); |
32 | InstallDialogLayout->setMargin( 2 ); | 33 | InstallDialogLayout->setMargin( 2 ); |
diff --git a/noncore/unsupported/oipkg/installdialog.h b/noncore/unsupported/oipkg/installdialog.h index 5af2c35..828c8df 100644 --- a/noncore/unsupported/oipkg/installdialog.h +++ b/noncore/unsupported/oipkg/installdialog.h | |||
@@ -1,32 +1,35 @@ | |||
1 | /**************************************************************************** | 1 | /*************************************************************************** |
2 | ** Form interface generated from reading ui file 'installdialog.ui' | 2 | * * |
3 | ** | 3 | * This program is free software; you can redistribute it and/or modify * |
4 | ** Created: Thu May 2 22:19:01 2002 | 4 | * it under the terms of the GNU General Public License as published by * |
5 | ** by: The User Interface Compiler (uic) | 5 | * the Free Software Foundation; either version 2 of the License, or * |
6 | ** | 6 | * (at your option) any later version. * |
7 | ** WARNING! All changes made in this file will be lost! | 7 | * * |
8 | ****************************************************************************/ | 8 | ***************************************************************************/ |
9 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> | ||
10 | |||
11 | |||
9 | #ifndef INSTALLDIALOG_H | 12 | #ifndef INSTALLDIALOG_H |
10 | #define INSTALLDIALOG_H | 13 | #define INSTALLDIALOG_H |
11 | 14 | ||
12 | #include "pksettings.h" | 15 | #include "pksettings.h" |
13 | #include "packagelistview.h" | 16 | #include "packagelistview.h" |
14 | #include <qvariant.h> | 17 | #include <qvariant.h> |
15 | #include <qdialog.h> | 18 | #include <qdialog.h> |
16 | class QVBoxLayout; | 19 | class QVBoxLayout; |
17 | class QHBoxLayout; | 20 | class QHBoxLayout; |
18 | class QGridLayout; | 21 | class QGridLayout; |
19 | class QCheckBox; | 22 | class QCheckBox; |
20 | class QGroupBox; | 23 | class QGroupBox; |
21 | class QListView; | 24 | class QListView; |
22 | class QListViewItem; | 25 | class QListViewItem; |
23 | 26 | ||
24 | class InstallDialog : public QDialog | 27 | class InstallDialog : public QDialog |
25 | { | 28 | { |
26 | Q_OBJECT | 29 | Q_OBJECT |
27 | 30 | ||
28 | public: InstallDialog( PackageManagerSettings* s, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); | 31 | public: InstallDialog( PackageManagerSettings* s, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); |
29 | ~InstallDialog(); | 32 | ~InstallDialog(); |
30 | 33 | ||
31 | PackageListView* ListViewPackages; | 34 | PackageListView* ListViewPackages; |
32 | QGroupBox* GroupBoxOptions; | 35 | QGroupBox* GroupBoxOptions; |
diff --git a/noncore/unsupported/oipkg/mainwindow.cpp b/noncore/unsupported/oipkg/mainwindow.cpp index 8778b85..084900d 100644 --- a/noncore/unsupported/oipkg/mainwindow.cpp +++ b/noncore/unsupported/oipkg/mainwindow.cpp | |||
@@ -1,70 +1,80 @@ | |||
1 | /*************************************************************************** | ||
2 | * * | ||
3 | * This program is free software; you can redistribute it and/or modify * | ||
4 | * it under the terms of the GNU General Public License as published by * | ||
5 | * the Free Software Foundation; either version 2 of the License, or * | ||
6 | * (at your option) any later version. * | ||
7 | * * | ||
8 | ***************************************************************************/ | ||
9 | // Copyright (C) 2000 Trolltech AS. | ||
1 | // adadpted form qpe/qipkg | 10 | // adadpted form qpe/qipkg |
11 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> | ||
2 | 12 | ||
3 | 13 | ||
4 | #include "mainwindow.h" | 14 | #include "mainwindow.h" |
5 | 15 | ||
6 | #include <qpe/qpemenubar.h> | 16 | #include <qpe/qpemenubar.h> |
7 | #include <qpe/qpemessagebox.h> | 17 | #include <qpe/qpemessagebox.h> |
8 | #include <qpe/resource.h> | 18 | #include <qpe/resource.h> |
9 | #include <qpe/config.h> | 19 | #include <qpe/config.h> |
10 | #include <qpe/qpetoolbar.h> | 20 | #include <qpe/qpetoolbar.h> |
11 | #include <qpe/qcopenvelope_qws.h> | 21 | #include <qpe/qcopenvelope_qws.h> |
12 | #include <qaction.h> | 22 | #include <qaction.h> |
13 | #include <qmessagebox.h> | 23 | #include <qmessagebox.h> |
14 | #include <qpopupmenu.h> | 24 | #include <qpopupmenu.h> |
15 | #include <qtoolbutton.h> | 25 | #include <qtoolbutton.h> |
16 | #include <qstring.h> | 26 | #include <qstring.h> |
17 | #include <qlabel.h> | 27 | #include <qlabel.h> |
18 | #include <qfile.h> | 28 | #include <qfile.h> |
19 | #include <qlistview.h> | 29 | #include <qlistview.h> |
20 | #include <qtextview.h> | 30 | #include <qtextview.h> |
21 | #include <qcheckbox.h> | 31 | #include <qcheckbox.h> |
22 | #include <qlineedit.h> | 32 | #include <qlineedit.h> |
23 | #include <qtabwidget.h> | 33 | #include <qtabwidget.h> |
24 | #include <qcombobox.h> | 34 | #include <qcombobox.h> |
25 | #include <qmessagebox.h> | 35 | #include <qmessagebox.h> |
26 | #include <qpushbutton.h> | 36 | #include <qpushbutton.h> |
27 | #include <qlayout.h> | 37 | #include <qlayout.h> |
28 | 38 | ||
29 | #include "pksettingsbase.h" | 39 | #include "pksettingsbase.h" |
30 | #include "utils.h" | 40 | #include "utils.h" |
31 | #include "packagelistitem.h" | 41 | #include "packagelistitem.h" |
32 | 42 | ||
33 | 43 | ||
34 | MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f ) : | 44 | MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f ) : |
35 | QMainWindow( parent, name, f ) | 45 | QMainWindow( parent, name, f ) |
36 | // packageListServers( QObject(parent), name ), | 46 | // packageListServers( QObject(parent), name ), |
37 | // packageListSearch( parent, name ), | 47 | // packageListSearch( parent, name ), |
38 | // packageListDocLnk( parent, name ) | 48 | // packageListDocLnk( parent, name ) |
39 | { | 49 | { |
40 | setCaption( tr("Package Manager") ); | 50 | setCaption( tr("Package Manager") ); |
41 | settings = new PackageManagerSettings(this,0,TRUE); | 51 | settings = new PackageManagerSettings(this,0,TRUE); |
42 | listViewPackages = new PackageListView( this,"listViewPackages",settings ); | 52 | listViewPackages = new PackageListView( this,"listViewPackages",settings ); |
43 | setCentralWidget( listViewPackages ); | 53 | setCentralWidget( listViewPackages ); |
44 | listViewPackages->addList( tr("feeds"), &packageListServers ); | 54 | listViewPackages->addList( tr("feeds"), &packageListServers ); |
45 | listViewPackages->addList( tr("ipkgfind"), &packageListSearch ); | 55 | listViewPackages->addList( tr("ipkgfind"), &packageListSearch ); |
46 | listViewPackages->addList( tr("documents"), &packageListDocLnk ); | 56 | listViewPackages->addList( tr("documents"), &packageListDocLnk ); |
47 | ipkg = new PmIpkg( settings, this ); | 57 | ipkg = new PmIpkg( settings, this ); |
48 | packageListServers.setSettings( settings ); | 58 | packageListServers.setSettings( settings ); |
49 | packageListSearch.setSettings( settings ); | 59 | packageListSearch.setSettings( settings ); |
50 | packageListDocLnk.setSettings( settings ); | 60 | packageListDocLnk.setSettings( settings ); |
51 | pvDebug(9,"packageListServers.update"); | 61 | pvDebug(9,"packageListServers.update"); |
52 | packageListServers.update(); | 62 | packageListServers.update(); |
53 | pvDebug(9,"packageListDocLnk.update"); | 63 | pvDebug(9,"packageListDocLnk.update"); |
54 | pvDebug(0,"no UPDATE of DocLnk"); | 64 | pvDebug(0,"no UPDATE of DocLnk"); |
55 | packageListDocLnk.update(); | 65 | packageListDocLnk.update(); |
56 | pvDebug(9,"makeMenu"); | 66 | pvDebug(9,"makeMenu"); |
57 | makeMenu(); | 67 | makeMenu(); |
58 | makeChannel(); | 68 | makeChannel(); |
59 | //opie is hardcoded default ;) | 69 | //opie is hardcoded default ;) |
60 | //pvDebug(9,"section->setCurrentItem"); | 70 | //pvDebug(9,"section->setCurrentItem"); |
61 | // for (int i=0;i<section->count();i++) | 71 | // for (int i=0;i<section->count();i++) |
62 | // if (section->text(i)=="opie") | 72 | // if (section->text(i)=="opie") |
63 | // section->setCurrentItem(i); | 73 | // section->setCurrentItem(i); |
64 | // sectionChanged(); | 74 | // sectionChanged(); |
65 | 75 | ||
66 | connect( section, SIGNAL(activated(int)), SLOT(sectionChanged()) ); | 76 | connect( section, SIGNAL(activated(int)), SLOT(sectionChanged()) ); |
67 | connect( subsection, SIGNAL(activated(int)), SLOT(subSectionChanged()) ); | 77 | connect( subsection, SIGNAL(activated(int)), SLOT(subSectionChanged()) ); |
68 | 78 | ||
69 | connect( settings->removeLinksButton, SIGNAL( clicked()), | 79 | connect( settings->removeLinksButton, SIGNAL( clicked()), |
70 | SLOT(removeLinks()) ); | 80 | SLOT(removeLinks()) ); |
diff --git a/noncore/unsupported/oipkg/mainwindow.h b/noncore/unsupported/oipkg/mainwindow.h index 4a5e8bf..090ddd3 100644 --- a/noncore/unsupported/oipkg/mainwindow.h +++ b/noncore/unsupported/oipkg/mainwindow.h | |||
@@ -1,24 +1,36 @@ | |||
1 | /*************************************************************************** | ||
2 | * * | ||
3 | * This program is free software; you can redistribute it and/or modify * | ||
4 | * it under the terms of the GNU General Public License as published by * | ||
5 | * the Free Software Foundation; either version 2 of the License, or * | ||
6 | * (at your option) any later version. * | ||
7 | * * | ||
8 | ***************************************************************************/ | ||
9 | // Copyright (C) 2000 Trolltech AS. | ||
10 | // adadpted form qpe/qipkg | ||
11 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> | ||
12 | |||
1 | #ifndef MAINWINDOW_H | 13 | #ifndef MAINWINDOW_H |
2 | #define MAINWINDOW_H | 14 | #define MAINWINDOW_H |
3 | 15 | ||
4 | #include <qmainwindow.h> | 16 | #include <qmainwindow.h> |
5 | #include <qaction.h> | 17 | #include <qaction.h> |
6 | #include <qtimer.h> | 18 | #include <qtimer.h> |
7 | #include <qpopupmenu.h> | 19 | #include <qpopupmenu.h> |
8 | 20 | ||
9 | #include "packagelist.h" | 21 | #include "packagelist.h" |
10 | #include "packagelistremote.h" | 22 | #include "packagelistremote.h" |
11 | #include "packagelistlocal.h" | 23 | #include "packagelistlocal.h" |
12 | #include "packagelistdoclnk.h" | 24 | #include "packagelistdoclnk.h" |
13 | #include "pmipkg.h" | 25 | #include "pmipkg.h" |
14 | #include "pksettings.h" | 26 | #include "pksettings.h" |
15 | #include "packagelistview.h" | 27 | #include "packagelistview.h" |
16 | 28 | ||
17 | class QComboBox; | 29 | class QComboBox; |
18 | class QPEToolBar; | 30 | class QPEToolBar; |
19 | class QLineEdit; | 31 | class QLineEdit; |
20 | class PackageListItem; | 32 | class PackageListItem; |
21 | class QCopChannel; | 33 | class QCopChannel; |
22 | class QMessageBox; | 34 | class QMessageBox; |
23 | class QCheckBox; | 35 | class QCheckBox; |
24 | 36 | ||
diff --git a/noncore/unsupported/oipkg/package.cpp b/noncore/unsupported/oipkg/package.cpp index 0cd93bf..7aaa240 100644 --- a/noncore/unsupported/oipkg/package.cpp +++ b/noncore/unsupported/oipkg/package.cpp | |||
@@ -1,24 +1,33 @@ | |||
1 | /*************************************************************************** | ||
2 | * * | ||
3 | * This program is free software; you can redistribute it and/or modify * | ||
4 | * it under the terms of the GNU General Public License as published by * | ||
5 | * the Free Software Foundation; either version 2 of the License, or * | ||
6 | * (at your option) any later version. * | ||
7 | * * | ||
8 | ***************************************************************************/ | ||
9 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> | ||
1 | #include "package.h" | 10 | #include "package.h" |
2 | 11 | ||
3 | #include <qpe/process.h> | 12 | #include <qpe/process.h> |
4 | #include <qpe/stringutil.h> | 13 | #include <qpe/stringutil.h> |
5 | #include <qfile.h> | 14 | #include <qfile.h> |
6 | #include <qtextstream.h> | 15 | #include <qtextstream.h> |
7 | #include <stdlib.h> | 16 | #include <stdlib.h> |
8 | #include <unistd.h> | 17 | #include <unistd.h> |
9 | 18 | ||
10 | #include "debug.h" | 19 | #include "debug.h" |
11 | 20 | ||
12 | Package::Package( QObject *parent, const char *name ) | 21 | Package::Package( QObject *parent, const char *name ) |
13 | : QObject(parent,name) | 22 | : QObject(parent,name) |
14 | { | 23 | { |
15 | 24 | ||
16 | } | 25 | } |
17 | 26 | ||
18 | Package::~Package() | 27 | Package::~Package() |
19 | { | 28 | { |
20 | } | 29 | } |
21 | 30 | ||
22 | Package::Package( PackageManagerSettings *s, QObject *parent, const char *name ) | 31 | Package::Package( PackageManagerSettings *s, QObject *parent, const char *name ) |
23 | : QObject(parent,name) | 32 | : QObject(parent,name) |
24 | { | 33 | { |
diff --git a/noncore/unsupported/oipkg/package.h b/noncore/unsupported/oipkg/package.h index 0f76ece..c147420 100644 --- a/noncore/unsupported/oipkg/package.h +++ b/noncore/unsupported/oipkg/package.h | |||
@@ -1,24 +1,33 @@ | |||
1 | /*************************************************************************** | ||
2 | * * | ||
3 | * This program is free software; you can redistribute it and/or modify * | ||
4 | * it under the terms of the GNU General Public License as published by * | ||
5 | * the Free Software Foundation; either version 2 of the License, or * | ||
6 | * (at your option) any later version. * | ||
7 | * * | ||
8 | ***************************************************************************/ | ||
9 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> | ||
1 | #ifndef PK_ITEM_H | 10 | #ifndef PK_ITEM_H |
2 | #define PK_ITEM_H | 11 | #define PK_ITEM_H |
3 | 12 | ||
4 | #include <qstring.h> | 13 | #include <qstring.h> |
5 | #include <qlistview.h> | 14 | #include <qlistview.h> |
6 | #include <qpainter.h> | 15 | #include <qpainter.h> |
7 | #include <qpixmap.h> | 16 | #include <qpixmap.h> |
8 | #include <qdict.h> | 17 | #include <qdict.h> |
9 | #include <qobject.h> | 18 | #include <qobject.h> |
10 | 19 | ||
11 | #include "pksettings.h" | 20 | #include "pksettings.h" |
12 | 21 | ||
13 | class Package : public QObject | 22 | class Package : public QObject |
14 | { | 23 | { |
15 | Q_OBJECT | 24 | Q_OBJECT |
16 | public: | 25 | public: |
17 | Package(QObject *parent=0, const char *name=0); | 26 | Package(QObject *parent=0, const char *name=0); |
18 | Package(PackageManagerSettings *s, QObject *parent=0, const char *name=0); | 27 | Package(PackageManagerSettings *s, QObject *parent=0, const char *name=0); |
19 | ~Package(); | 28 | ~Package(); |
20 | Package( QStringList, PackageManagerSettings *s, QObject *parent=0, const char *name=0 ); | 29 | Package( QStringList, PackageManagerSettings *s, QObject *parent=0, const char *name=0 ); |
21 | Package( QString, PackageManagerSettings *s, QObject *parent=0, const char *name=0 ); | 30 | Package( QString, PackageManagerSettings *s, QObject *parent=0, const char *name=0 ); |
22 | Package( Package*s, QObject *parent=0, const char *name=0 ); | 31 | Package( Package*s, QObject *parent=0, const char *name=0 ); |
23 | 32 | ||
24 | void setValue( QString, QString ); | 33 | void setValue( QString, QString ); |
diff --git a/noncore/unsupported/oipkg/packagelist.cpp b/noncore/unsupported/oipkg/packagelist.cpp index e445570..f6c4c37 100644 --- a/noncore/unsupported/oipkg/packagelist.cpp +++ b/noncore/unsupported/oipkg/packagelist.cpp | |||
@@ -1,24 +1,33 @@ | |||
1 | /*************************************************************************** | ||
2 | * * | ||
3 | * This program is free software; you can redistribute it and/or modify * | ||
4 | * it under the terms of the GNU General Public License as published by * | ||
5 | * the Free Software Foundation; either version 2 of the License, or * | ||
6 | * (at your option) any later version. * | ||
7 | * * | ||
8 | ***************************************************************************/ | ||
9 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> | ||
1 | #include "packagelist.h" | 10 | #include "packagelist.h" |
2 | 11 | ||
3 | #include <assert.h> | 12 | #include <assert.h> |
4 | #include <qfile.h> | 13 | #include <qfile.h> |
5 | #include <qfileinfo.h> | 14 | #include <qfileinfo.h> |
6 | #include <qtextstream.h> | 15 | #include <qtextstream.h> |
7 | 16 | ||
8 | #include "debug.h" | 17 | #include "debug.h" |
9 | 18 | ||
10 | static QDict<Package> *packageListAll; | 19 | static QDict<Package> *packageListAll; |
11 | static int packageListAllRefCount = 0; | 20 | static int packageListAllRefCount = 0; |
12 | 21 | ||
13 | PackageList::PackageList(QObject *parent, const char *name) | 22 | PackageList::PackageList(QObject *parent, const char *name) |
14 | : QObject(parent,name), packageIter( packageList ) | 23 | : QObject(parent,name), packageIter( packageList ) |
15 | { | 24 | { |
16 | empty=true; | 25 | empty=true; |
17 | if (!packageListAll) packageListAll = new QDict<Package>(); | 26 | if (!packageListAll) packageListAll = new QDict<Package>(); |
18 | packageListAllRefCount++; | 27 | packageListAllRefCount++; |
19 | sections << "All"; | 28 | sections << "All"; |
20 | subSections.insert("All", new QStringList() ); | 29 | subSections.insert("All", new QStringList() ); |
21 | QStringList *ss = subSections["All"]; | 30 | QStringList *ss = subSections["All"]; |
22 | *ss << "All"; | 31 | *ss << "All"; |
23 | aktSection = "All"; | 32 | aktSection = "All"; |
24 | aktSubSection = "All"; | 33 | aktSubSection = "All"; |
diff --git a/noncore/unsupported/oipkg/packagelist.h b/noncore/unsupported/oipkg/packagelist.h index 46a00e9..0c13688 100644 --- a/noncore/unsupported/oipkg/packagelist.h +++ b/noncore/unsupported/oipkg/packagelist.h | |||
@@ -1,24 +1,33 @@ | |||
1 | /*************************************************************************** | ||
2 | * * | ||
3 | * This program is free software; you can redistribute it and/or modify * | ||
4 | * it under the terms of the GNU General Public License as published by * | ||
5 | * the Free Software Foundation; either version 2 of the License, or * | ||
6 | * (at your option) any later version. * | ||
7 | * * | ||
8 | ***************************************************************************/ | ||
9 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> | ||
1 | #ifndef PACKAGELIST_H | 10 | #ifndef PACKAGELIST_H |
2 | #define PACKAGELIST_H | 11 | #define PACKAGELIST_H |
3 | 12 | ||
4 | #include <qdict.h> | 13 | #include <qdict.h> |
5 | #include "package.h" | 14 | #include "package.h" |
6 | #include "pksettings.h" | 15 | #include "pksettings.h" |
7 | #include "debug.h" | 16 | #include "debug.h" |
8 | 17 | ||
9 | class PackageList : public QObject | 18 | class PackageList : public QObject |
10 | { | 19 | { |
11 | Q_OBJECT | 20 | Q_OBJECT |
12 | public: | 21 | public: |
13 | //static QString all = QObject::tr("All"); | 22 | //static QString all = QObject::tr("All"); |
14 | 23 | ||
15 | PackageList (QObject *parent=0, const char *name=0); | 24 | PackageList (QObject *parent=0, const char *name=0); |
16 | PackageList( PackageManagerSettings *s, QObject *parent=0, const char *name=0); | 25 | PackageList( PackageManagerSettings *s, QObject *parent=0, const char *name=0); |
17 | virtual ~PackageList(); | 26 | virtual ~PackageList(); |
18 | void insertPackage( Package* ); | 27 | void insertPackage( Package* ); |
19 | Package* find( QString ); | 28 | Package* find( QString ); |
20 | Package* next(); | 29 | Package* next(); |
21 | Package* first(); | 30 | Package* first(); |
22 | 31 | ||
23 | QStringList getSections(); | 32 | QStringList getSections(); |
24 | QStringList getSubSections(); | 33 | QStringList getSubSections(); |
diff --git a/noncore/unsupported/oipkg/packagelistdoclnk.cpp b/noncore/unsupported/oipkg/packagelistdoclnk.cpp index deb8a6d..76e91ff 100644 --- a/noncore/unsupported/oipkg/packagelistdoclnk.cpp +++ b/noncore/unsupported/oipkg/packagelistdoclnk.cpp | |||
@@ -1,25 +1,33 @@ | |||
1 | 1 | /*************************************************************************** | |
2 | * * | ||
3 | * This program is free software; you can redistribute it and/or modify * | ||
4 | * it under the terms of the GNU General Public License as published by * | ||
5 | * the Free Software Foundation; either version 2 of the License, or * | ||
6 | * (at your option) any later version. * | ||
7 | * * | ||
8 | ***************************************************************************/ | ||
9 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> | ||
2 | #include "packagelistdoclnk.h" | 10 | #include "packagelistdoclnk.h" |
3 | 11 | ||
4 | #include <qpe/applnk.h> | 12 | #include <qpe/applnk.h> |
5 | #include <qpe/config.h> | 13 | #include <qpe/config.h> |
6 | #include <qlist.h> | 14 | #include <qlist.h> |
7 | 15 | ||
8 | #include "package.h" | 16 | #include "package.h" |
9 | #include "pksettings.h" | 17 | #include "pksettings.h" |
10 | 18 | ||
11 | PackageListDocLnk::PackageListDocLnk(PackageManagerSettings* s, QObject *parent, const char *name) | 19 | PackageListDocLnk::PackageListDocLnk(PackageManagerSettings* s, QObject *parent, const char *name) |
12 | : PackageList(s) | 20 | : PackageList(s) |
13 | { | 21 | { |
14 | PackageListDocLnk(parent, name); | 22 | PackageListDocLnk(parent, name); |
15 | } | 23 | } |
16 | 24 | ||
17 | PackageListDocLnk::PackageListDocLnk(QObject *parent, const char *name) | 25 | PackageListDocLnk::PackageListDocLnk(QObject *parent, const char *name) |
18 | : PackageList(parent, name) | 26 | : PackageList(parent, name) |
19 | { | 27 | { |
20 | Config cfg( "oipkg", Config::User ); | 28 | Config cfg( "oipkg", Config::User ); |
21 | cfg.setGroup( "Common" ); | 29 | cfg.setGroup( "Common" ); |
22 | docLnkDir = cfg.readEntry( "docLnkDir", "/root/" ); | 30 | docLnkDir = cfg.readEntry( "docLnkDir", "/root/" ); |
23 | pvDebug(2,"opening DocLnkSet "+docLnkDir); | 31 | pvDebug(2,"opening DocLnkSet "+docLnkDir); |
24 | doclnkset = new DocLnkSet(docLnkDir,"application/ipkg"); | 32 | doclnkset = new DocLnkSet(docLnkDir,"application/ipkg"); |
25 | } | 33 | } |
diff --git a/noncore/unsupported/oipkg/packagelistdoclnk.h b/noncore/unsupported/oipkg/packagelistdoclnk.h index a63fb59..af06a45 100644 --- a/noncore/unsupported/oipkg/packagelistdoclnk.h +++ b/noncore/unsupported/oipkg/packagelistdoclnk.h | |||
@@ -1,23 +1,32 @@ | |||
1 | /*************************************************************************** | ||
2 | * * | ||
3 | * This program is free software; you can redistribute it and/or modify * | ||
4 | * it under the terms of the GNU General Public License as published by * | ||
5 | * the Free Software Foundation; either version 2 of the License, or * | ||
6 | * (at your option) any later version. * | ||
7 | * * | ||
8 | ***************************************************************************/ | ||
9 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> | ||
1 | #ifndef PACKAGELISTDOCLNK_H | 10 | #ifndef PACKAGELISTDOCLNK_H |
2 | #define PACKAGELISTDOCLNK_H | 11 | #define PACKAGELISTDOCLNK_H |
3 | 12 | ||
4 | #include "packagelist.h" | 13 | #include "packagelist.h" |
5 | #include "debug.h" | 14 | #include "debug.h" |
6 | 15 | ||
7 | class DocLnkSet; | 16 | class DocLnkSet; |
8 | 17 | ||
9 | class PackageListDocLnk : public PackageList | 18 | class PackageListDocLnk : public PackageList |
10 | { | 19 | { |
11 | public: | 20 | public: |
12 | PackageListDocLnk(QObject *parent=0, const char *name=0); | 21 | PackageListDocLnk(QObject *parent=0, const char *name=0); |
13 | PackageListDocLnk( PackageManagerSettings *s, QObject *parent=0, const char *name=0); | 22 | PackageListDocLnk( PackageManagerSettings *s, QObject *parent=0, const char *name=0); |
14 | virtual ~PackageListDocLnk(); | 23 | virtual ~PackageListDocLnk(); |
15 | public slots: | 24 | public slots: |
16 | void update(); | 25 | void update(); |
17 | private: | 26 | private: |
18 | DocLnkSet *doclnkset; | 27 | DocLnkSet *doclnkset; |
19 | QString docLnkDir; | 28 | QString docLnkDir; |
20 | }; | 29 | }; |
21 | 30 | ||
22 | 31 | ||
23 | #endif | 32 | #endif |
diff --git a/noncore/unsupported/oipkg/packagelistitem.cpp b/noncore/unsupported/oipkg/packagelistitem.cpp index 7c54441..b5e86f5 100644 --- a/noncore/unsupported/oipkg/packagelistitem.cpp +++ b/noncore/unsupported/oipkg/packagelistitem.cpp | |||
@@ -1,24 +1,33 @@ | |||
1 | /*************************************************************************** | ||
2 | * * | ||
3 | * This program is free software; you can redistribute it and/or modify * | ||
4 | * it under the terms of the GNU General Public License as published by * | ||
5 | * the Free Software Foundation; either version 2 of the License, or * | ||
6 | * (at your option) any later version. * | ||
7 | * * | ||
8 | ***************************************************************************/ | ||
9 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> | ||
1 | #include "packagelistitem.h" | 10 | #include "packagelistitem.h" |
2 | 11 | ||
3 | #include <qpe/resource.h> | 12 | #include <qpe/resource.h> |
4 | #include <qobject.h> | 13 | #include <qobject.h> |
5 | 14 | ||
6 | #include "debug.h" | 15 | #include "debug.h" |
7 | 16 | ||
8 | static QPixmap *pm_uninstalled=0; | 17 | static QPixmap *pm_uninstalled=0; |
9 | static QPixmap *pm_uninstalled_old=0; | 18 | static QPixmap *pm_uninstalled_old=0; |
10 | static QPixmap *pm_installed=0; | 19 | static QPixmap *pm_installed=0; |
11 | static QPixmap *pm_installed_old=0; | 20 | static QPixmap *pm_installed_old=0; |
12 | static QPixmap *pm_uninstall=0; | 21 | static QPixmap *pm_uninstall=0; |
13 | static QPixmap *pm_install=0; | 22 | static QPixmap *pm_install=0; |
14 | static QPixmap *pm_uninstalled_old_installed_new=0; | 23 | static QPixmap *pm_uninstalled_old_installed_new=0; |
15 | static QPixmap *pm_uninstalled_installed_old=0; | 24 | static QPixmap *pm_uninstalled_installed_old=0; |
16 | 25 | ||
17 | PackageListItem::PackageListItem(QListView* lv, Package *pi, PackageManagerSettings *s) | 26 | PackageListItem::PackageListItem(QListView* lv, Package *pi, PackageManagerSettings *s) |
18 | :QCheckListItem(lv,pi->name(),CheckBox) | 27 | :QCheckListItem(lv,pi->name(),CheckBox) |
19 | { | 28 | { |
20 | init(pi,s); | 29 | init(pi,s); |
21 | } | 30 | } |
22 | 31 | ||
23 | PackageListItem::PackageListItem(QListViewItem *lvi, Package *pi, PackageManagerSettings *s) | 32 | PackageListItem::PackageListItem(QListViewItem *lvi, Package *pi, PackageManagerSettings *s) |
24 | :QCheckListItem(lvi,pi->name(),CheckBox) | 33 | :QCheckListItem(lvi,pi->name(),CheckBox) |
diff --git a/noncore/unsupported/oipkg/packagelistitem.h b/noncore/unsupported/oipkg/packagelistitem.h index 65e9711..dba44f7 100644 --- a/noncore/unsupported/oipkg/packagelistitem.h +++ b/noncore/unsupported/oipkg/packagelistitem.h | |||
@@ -1,24 +1,33 @@ | |||
1 | /*************************************************************************** | ||
2 | * * | ||
3 | * This program is free software; you can redistribute it and/or modify * | ||
4 | * it under the terms of the GNU General Public License as published by * | ||
5 | * the Free Software Foundation; either version 2 of the License, or * | ||
6 | * (at your option) any later version. * | ||
7 | * * | ||
8 | ***************************************************************************/ | ||
9 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> | ||
1 | #ifndef PK_LISTITEM_H | 10 | #ifndef PK_LISTITEM_H |
2 | #define PK_LISTITEM_H | 11 | #define PK_LISTITEM_H |
3 | 12 | ||
4 | #include "package.h" | 13 | #include "package.h" |
5 | 14 | ||
6 | #include <qstring.h> | 15 | #include <qstring.h> |
7 | #include <qlistview.h> | 16 | #include <qlistview.h> |
8 | #include <qpainter.h> | 17 | #include <qpainter.h> |
9 | #include <qpixmap.h> | 18 | #include <qpixmap.h> |
10 | #include <qdict.h> | 19 | #include <qdict.h> |
11 | 20 | ||
12 | #include "pksettings.h" | 21 | #include "pksettings.h" |
13 | 22 | ||
14 | class PackageListItem | 23 | class PackageListItem |
15 | : public QCheckListItem | 24 | : public QCheckListItem |
16 | { | 25 | { |
17 | public: | 26 | public: |
18 | PackageListItem(QListViewItem*, Package*, PackageManagerSettings*); | 27 | PackageListItem(QListViewItem*, Package*, PackageManagerSettings*); |
19 | PackageListItem(QListView*, Package*, PackageManagerSettings*); | 28 | PackageListItem(QListView*, Package*, PackageManagerSettings*); |
20 | void paintCell( QPainter*, const QColorGroup&, int, int, int ); | 29 | void paintCell( QPainter*, const QColorGroup&, int, int, int ); |
21 | void paintFocus( QPainter*, const QColorGroup&, const QRect& ); | 30 | void paintFocus( QPainter*, const QColorGroup&, const QRect& ); |
22 | QPixmap statePixmap() const; | 31 | QPixmap statePixmap() const; |
23 | QString key( int, bool ) const; | 32 | QString key( int, bool ) const; |
24 | Package* getPackage() { return package; } ; | 33 | Package* getPackage() { return package; } ; |
diff --git a/noncore/unsupported/oipkg/packagelistlocal.cpp b/noncore/unsupported/oipkg/packagelistlocal.cpp index 6d931c8..b8a19253 100644 --- a/noncore/unsupported/oipkg/packagelistlocal.cpp +++ b/noncore/unsupported/oipkg/packagelistlocal.cpp | |||
@@ -1,24 +1,33 @@ | |||
1 | /*************************************************************************** | ||
2 | * * | ||
3 | * This program is free software; you can redistribute it and/or modify * | ||
4 | * it under the terms of the GNU General Public License as published by * | ||
5 | * the Free Software Foundation; either version 2 of the License, or * | ||
6 | * (at your option) any later version. * | ||
7 | * * | ||
8 | ***************************************************************************/ | ||
9 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> | ||
1 | #include <qpe/config.h> | 10 | #include <qpe/config.h> |
2 | #include <qfile.h> | 11 | #include <qfile.h> |
3 | #include <qfileinfo.h> | 12 | #include <qfileinfo.h> |
4 | #include <qtextstream.h> | 13 | #include <qtextstream.h> |
5 | #include <qstringlist.h> | 14 | #include <qstringlist.h> |
6 | #include "packagelistlocal.h" | 15 | #include "packagelistlocal.h" |
7 | 16 | ||
8 | PackageListLocal::PackageListLocal() | 17 | PackageListLocal::PackageListLocal() |
9 | : PackageList() | 18 | : PackageList() |
10 | { | 19 | { |
11 | Config cfg( "oipkg", Config::User ); | 20 | Config cfg( "oipkg", Config::User ); |
12 | cfg.setGroup( "Common" ); | 21 | cfg.setGroup( "Common" ); |
13 | statusDir = cfg.readEntry( "statusDir", "" ); | 22 | statusDir = cfg.readEntry( "statusDir", "" ); |
14 | listsDir = cfg.readEntry( "listsDir", "" ); | 23 | listsDir = cfg.readEntry( "listsDir", "" ); |
15 | if ( statusDir=="" || ! QFileInfo(statusDir+"/status").isFile() ) | 24 | if ( statusDir=="" || ! QFileInfo(statusDir+"/status").isFile() ) |
16 | { | 25 | { |
17 | statusDir="/usr/lib/ipkg/"; | 26 | statusDir="/usr/lib/ipkg/"; |
18 | listsDir="/usr/lib/ipkg/lists/"; | 27 | listsDir="/usr/lib/ipkg/lists/"; |
19 | cfg.writeEntry( "statusDir", statusDir ); | 28 | cfg.writeEntry( "statusDir", statusDir ); |
20 | cfg.writeEntry( "listsDir", listsDir ); | 29 | cfg.writeEntry( "listsDir", listsDir ); |
21 | } | 30 | } |
22 | } | 31 | } |
23 | 32 | ||
24 | PackageListLocal::PackageListLocal(PackageManagerSettings* s) | 33 | PackageListLocal::PackageListLocal(PackageManagerSettings* s) |
diff --git a/noncore/unsupported/oipkg/packagelistlocal.h b/noncore/unsupported/oipkg/packagelistlocal.h index 887126b..69f871c 100644 --- a/noncore/unsupported/oipkg/packagelistlocal.h +++ b/noncore/unsupported/oipkg/packagelistlocal.h | |||
@@ -1,24 +1,33 @@ | |||
1 | /*************************************************************************** | ||
2 | * * | ||
3 | * This program is free software; you can redistribute it and/or modify * | ||
4 | * it under the terms of the GNU General Public License as published by * | ||
5 | * the Free Software Foundation; either version 2 of the License, or * | ||
6 | * (at your option) any later version. * | ||
7 | * * | ||
8 | ***************************************************************************/ | ||
9 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> | ||
1 | #ifndef PACKAGELISTLOCAL_H | 10 | #ifndef PACKAGELISTLOCAL_H |
2 | #define PACKAGELISTLOCAL_H | 11 | #define PACKAGELISTLOCAL_H |
3 | 12 | ||
4 | #include "packagelist.h" | 13 | #include "packagelist.h" |
5 | 14 | ||
6 | 15 | ||
7 | #define HACK | 16 | #define HACK |
8 | #ifdef HACK | 17 | #ifdef HACK |
9 | static QString listsDir="/usr/lib/ipkg/"; | 18 | static QString listsDir="/usr/lib/ipkg/"; |
10 | static QString statusDir="/usr/lib/ipkg/"; | 19 | static QString statusDir="/usr/lib/ipkg/"; |
11 | #endif | 20 | #endif |
12 | 21 | ||
13 | class PackageListLocal : public PackageList { | 22 | class PackageListLocal : public PackageList { |
14 | public: | 23 | public: |
15 | PackageListLocal(); | 24 | PackageListLocal(); |
16 | PackageListLocal( PackageManagerSettings* ); | 25 | PackageListLocal( PackageManagerSettings* ); |
17 | virtual ~PackageListLocal(); | 26 | virtual ~PackageListLocal(); |
18 | 27 | ||
19 | public slots: | 28 | public slots: |
20 | void update(); | 29 | void update(); |
21 | private: | 30 | private: |
22 | #ifndef HACK | 31 | #ifndef HACK |
23 | QString listsDir; | 32 | QString listsDir; |
24 | QString statusDir; | 33 | QString statusDir; |
diff --git a/noncore/unsupported/oipkg/packagelistremote.cpp b/noncore/unsupported/oipkg/packagelistremote.cpp index bb29e80..b4b6979 100644 --- a/noncore/unsupported/oipkg/packagelistremote.cpp +++ b/noncore/unsupported/oipkg/packagelistremote.cpp | |||
@@ -1,24 +1,33 @@ | |||
1 | /*************************************************************************** | ||
2 | * * | ||
3 | * This program is free software; you can redistribute it and/or modify * | ||
4 | * it under the terms of the GNU General Public License as published by * | ||
5 | * the Free Software Foundation; either version 2 of the License, or * | ||
6 | * (at your option) any later version. * | ||
7 | * * | ||
8 | ***************************************************************************/ | ||
9 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> | ||
1 | 10 | ||
2 | #include "packagelistremote.h" | 11 | #include "packagelistremote.h" |
3 | 12 | ||
4 | #include <qstring.h> | 13 | #include <qstring.h> |
5 | #include <stdlib.h> | 14 | #include <stdlib.h> |
6 | #include <unistd.h> | 15 | #include <unistd.h> |
7 | 16 | ||
8 | PackageListRemote::PackageListRemote(PackageManagerSettings* s) | 17 | PackageListRemote::PackageListRemote(PackageManagerSettings* s) |
9 | : PackageList(s) | 18 | : PackageList(s) |
10 | { | 19 | { |
11 | PackageListRemote(); | 20 | PackageListRemote(); |
12 | } | 21 | } |
13 | 22 | ||
14 | PackageListRemote::PackageListRemote() | 23 | PackageListRemote::PackageListRemote() |
15 | : PackageList() | 24 | : PackageList() |
16 | { | 25 | { |
17 | } | 26 | } |
18 | 27 | ||
19 | PackageListRemote::~PackageListRemote() | 28 | PackageListRemote::~PackageListRemote() |
20 | { | 29 | { |
21 | } | 30 | } |
22 | 31 | ||
23 | void PackageListRemote::query(QString s) | 32 | void PackageListRemote::query(QString s) |
24 | { | 33 | { |
diff --git a/noncore/unsupported/oipkg/packagelistremote.h b/noncore/unsupported/oipkg/packagelistremote.h index 87bf10d..98632ca 100644 --- a/noncore/unsupported/oipkg/packagelistremote.h +++ b/noncore/unsupported/oipkg/packagelistremote.h | |||
@@ -1,21 +1,30 @@ | |||
1 | /*************************************************************************** | ||
2 | * * | ||
3 | * This program is free software; you can redistribute it and/or modify * | ||
4 | * it under the terms of the GNU General Public License as published by * | ||
5 | * the Free Software Foundation; either version 2 of the License, or * | ||
6 | * (at your option) any later version. * | ||
7 | * * | ||
8 | ***************************************************************************/ | ||
9 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> | ||
1 | #ifndef PACKAGELISTREMOTE_H | 10 | #ifndef PACKAGELISTREMOTE_H |
2 | #define PACKAGELISTREMOTE_H | 11 | #define PACKAGELISTREMOTE_H |
3 | 12 | ||
4 | #include "packagelist.h" | 13 | #include "packagelist.h" |
5 | #include "package.h" | 14 | #include "package.h" |
6 | #include "pksettings.h" | 15 | #include "pksettings.h" |
7 | #include "debug.h" | 16 | #include "debug.h" |
8 | 17 | ||
9 | class PackageListRemote : public PackageList { | 18 | class PackageListRemote : public PackageList { |
10 | public: | 19 | public: |
11 | PackageListRemote(); | 20 | PackageListRemote(); |
12 | PackageListRemote( PackageManagerSettings* s); | 21 | PackageListRemote( PackageManagerSettings* s); |
13 | virtual ~PackageListRemote(); | 22 | virtual ~PackageListRemote(); |
14 | void query(QString); | 23 | void query(QString); |
15 | public slots: | 24 | public slots: |
16 | void update(); | 25 | void update(); |
17 | private: | 26 | private: |
18 | QString searchString; | 27 | QString searchString; |
19 | }; | 28 | }; |
20 | 29 | ||
21 | #endif | 30 | #endif |
diff --git a/noncore/unsupported/oipkg/packagelistview.cpp b/noncore/unsupported/oipkg/packagelistview.cpp index 2bb74e9..0d6fa80 100644 --- a/noncore/unsupported/oipkg/packagelistview.cpp +++ b/noncore/unsupported/oipkg/packagelistview.cpp | |||
@@ -1,24 +1,33 @@ | |||
1 | /*************************************************************************** | ||
2 | * * | ||
3 | * This program is free software; you can redistribute it and/or modify * | ||
4 | * it under the terms of the GNU General Public License as published by * | ||
5 | * the Free Software Foundation; either version 2 of the License, or * | ||
6 | * (at your option) any later version. * | ||
7 | * * | ||
8 | ***************************************************************************/ | ||
9 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> | ||
1 | #include "packagelistview.h" | 10 | #include "packagelistview.h" |
2 | 11 | ||
3 | #include <qpopupmenu.h> | 12 | #include <qpopupmenu.h> |
4 | #include <qaction.h> | 13 | #include <qaction.h> |
5 | 14 | ||
6 | #include "packagelistitem.h" | 15 | #include "packagelistitem.h" |
7 | #include "pksettings.h" | 16 | #include "pksettings.h" |
8 | 17 | ||
9 | PackageListView::PackageListView(QWidget *p, const char* n, PackageManagerSettings *s) | 18 | PackageListView::PackageListView(QWidget *p, const char* n, PackageManagerSettings *s) |
10 | : QListView(p,n) | 19 | : QListView(p,n) |
11 | { | 20 | { |
12 | settings = s; | 21 | settings = s; |
13 | popupMenu = new QPopupMenu( this ); | 22 | popupMenu = new QPopupMenu( this ); |
14 | destsMenu = new QPopupMenu( popupMenu ); | 23 | destsMenu = new QPopupMenu( popupMenu ); |
15 | popupTimer = new QTimer( this ); | 24 | popupTimer = new QTimer( this ); |
16 | setSelectionMode(QListView::NoSelection); | 25 | setSelectionMode(QListView::NoSelection); |
17 | addColumn( tr("Package") ); | 26 | addColumn( tr("Package") ); |
18 | setRootIsDecorated( true ); | 27 | setRootIsDecorated( true ); |
19 | 28 | ||
20 | connect( popupTimer, SIGNAL(timeout()), | 29 | connect( popupTimer, SIGNAL(timeout()), |
21 | this, SLOT(showPopup()) ); | 30 | this, SLOT(showPopup()) ); |
22 | connect( this, SIGNAL( pressed( QListViewItem* ) ), | 31 | connect( this, SIGNAL( pressed( QListViewItem* ) ), |
23 | this, SLOT( setCurrent( QListViewItem* ) ) ); | 32 | this, SLOT( setCurrent( QListViewItem* ) ) ); |
24 | connect( this, SIGNAL( clicked( QListViewItem* ) ), | 33 | connect( this, SIGNAL( clicked( QListViewItem* ) ), |
diff --git a/noncore/unsupported/oipkg/packagelistview.h b/noncore/unsupported/oipkg/packagelistview.h index 00c0320..3c09ba8 100644 --- a/noncore/unsupported/oipkg/packagelistview.h +++ b/noncore/unsupported/oipkg/packagelistview.h | |||
@@ -1,40 +1,33 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | packagelistview.h - description | ||
3 | ------------------- | ||
4 | begin : Sat Apr 27 2002 | ||
5 | copyright : (C) 2002 by tille | ||
6 | email : tille@handhelds.org | ||
7 | ***************************************************************************/ | ||
8 | |||
9 | /*************************************************************************** | ||
10 | * * | 2 | * * |
11 | * This program is free software; you can redistribute it and/or modify * | 3 | * This program is free software; you can redistribute it and/or modify * |
12 | * it under the terms of the GNU General Public License as published by * | 4 | * it under the terms of the GNU General Public License as published by * |
13 | * the Free Software Foundation; either version 2 of the License, or * | 5 | * the Free Software Foundation; either version 2 of the License, or * |
14 | * (at your option) any later version. * | 6 | * (at your option) any later version. * |
15 | * * | 7 | * * |
16 | ***************************************************************************/ | 8 | ***************************************************************************/ |
9 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> | ||
17 | 10 | ||
18 | #ifndef PACKAGELISTVIEW_H | 11 | #ifndef PACKAGELISTVIEW_H |
19 | #define PACKAGELISTVIEW_H | 12 | #define PACKAGELISTVIEW_H |
20 | 13 | ||
21 | #include <qlistview.h> | 14 | #include <qlistview.h> |
22 | #include <qaction.h> | 15 | #include <qaction.h> |
23 | #include <qdict.h> | 16 | #include <qdict.h> |
24 | #include <qstring.h> | 17 | #include <qstring.h> |
25 | #include <qtimer.h> | 18 | #include <qtimer.h> |
26 | #include <qwidget.h> | 19 | #include <qwidget.h> |
27 | #include <qpopupmenu.h> | 20 | #include <qpopupmenu.h> |
28 | #include "packagelist.h" | 21 | #include "packagelist.h" |
29 | #include "debug.h" | 22 | #include "debug.h" |
30 | 23 | ||
31 | class PackageListItem; | 24 | class PackageListItem; |
32 | class Package; | 25 | class Package; |
33 | class PackageManagerSettings; | 26 | class PackageManagerSettings; |
34 | 27 | ||
35 | class PackageListView : public QListView | 28 | class PackageListView : public QListView |
36 | { | 29 | { |
37 | Q_OBJECT | 30 | Q_OBJECT |
38 | 31 | ||
39 | public: | 32 | public: |
40 | PackageListView(QWidget*, const char*, PackageManagerSettings*); | 33 | PackageListView(QWidget*, const char*, PackageManagerSettings*); |
diff --git a/noncore/unsupported/oipkg/pmipkg.cpp b/noncore/unsupported/oipkg/pmipkg.cpp index 89309a2..de1f162 100644 --- a/noncore/unsupported/oipkg/pmipkg.cpp +++ b/noncore/unsupported/oipkg/pmipkg.cpp | |||
@@ -1,24 +1,33 @@ | |||
1 | /*************************************************************************** | ||
2 | * * | ||
3 | * This program is free software; you can redistribute it and/or modify * | ||
4 | * it under the terms of the GNU General Public License as published by * | ||
5 | * the Free Software Foundation; either version 2 of the License, or * | ||
6 | * (at your option) any later version. * | ||
7 | * * | ||
8 | ***************************************************************************/ | ||
9 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> | ||
1 | #include "pmipkg.h" | 10 | #include "pmipkg.h" |
2 | #include "pksettings.h" | 11 | #include "pksettings.h" |
3 | #include "package.h" | 12 | #include "package.h" |
4 | #include "packagelistitem.h" | 13 | #include "packagelistitem.h" |
5 | 14 | ||
6 | #include <opie/oprocess.h> | 15 | #include <opie/oprocess.h> |
7 | #include <qpe/resource.h> | 16 | #include <qpe/resource.h> |
8 | #include <qpe/config.h> | 17 | #include <qpe/config.h> |
9 | #include <qpe/stringutil.h> | 18 | #include <qpe/stringutil.h> |
10 | #include <qpe/qpeapplication.h> | 19 | #include <qpe/qpeapplication.h> |
11 | #include <qdir.h> | 20 | #include <qdir.h> |
12 | #include <qfile.h> | 21 | #include <qfile.h> |
13 | #include <qgroupbox.h> | 22 | #include <qgroupbox.h> |
14 | #include <qmultilineedit.h> | 23 | #include <qmultilineedit.h> |
15 | #include <qstring.h> | 24 | #include <qstring.h> |
16 | #include <qcheckbox.h> | 25 | #include <qcheckbox.h> |
17 | #include <qtextstream.h> | 26 | #include <qtextstream.h> |
18 | #include <qtextview.h> | 27 | #include <qtextview.h> |
19 | 28 | ||
20 | #include <qprogressbar.h> | 29 | #include <qprogressbar.h> |
21 | #include <qpushbutton.h> | 30 | #include <qpushbutton.h> |
22 | #include <qlayout.h> | 31 | #include <qlayout.h> |
23 | 32 | ||
24 | #include <stdlib.h> | 33 | #include <stdlib.h> |
diff --git a/noncore/unsupported/oipkg/pmipkg.h b/noncore/unsupported/oipkg/pmipkg.h index 2c92348..28bc5dd 100644 --- a/noncore/unsupported/oipkg/pmipkg.h +++ b/noncore/unsupported/oipkg/pmipkg.h | |||
@@ -1,24 +1,33 @@ | |||
1 | /*************************************************************************** | ||
2 | * * | ||
3 | * This program is free software; you can redistribute it and/or modify * | ||
4 | * it under the terms of the GNU General Public License as published by * | ||
5 | * the Free Software Foundation; either version 2 of the License, or * | ||
6 | * (at your option) any later version. * | ||
7 | * * | ||
8 | ***************************************************************************/ | ||
9 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> | ||
1 | #ifndef PMIPKG_H | 10 | #ifndef PMIPKG_H |
2 | #define PMIPKG_H | 11 | #define PMIPKG_H |
3 | 12 | ||
4 | 13 | ||
5 | #include <opie/oprocess.h> | 14 | #include <opie/oprocess.h> |
6 | #include <qobject.h> | 15 | #include <qobject.h> |
7 | #include <qlist.h> | 16 | #include <qlist.h> |
8 | #include <qstring.h> | 17 | #include <qstring.h> |
9 | #include <qwidget.h> | 18 | #include <qwidget.h> |
10 | #include "pksettings.h" | 19 | #include "pksettings.h" |
11 | #include "runwindow.h" | 20 | #include "runwindow.h" |
12 | #include "packagelist.h" | 21 | #include "packagelist.h" |
13 | #include "installdialog.h" | 22 | #include "installdialog.h" |
14 | #include "debug.h" | 23 | #include "debug.h" |
15 | 24 | ||
16 | #define createLink 0 | 25 | #define createLink 0 |
17 | #define removeLink 1 | 26 | #define removeLink 1 |
18 | 27 | ||
19 | class Package; | 28 | class Package; |
20 | class PmIpkg : public QObject | 29 | class PmIpkg : public QObject |
21 | { | 30 | { |
22 | Q_OBJECT | 31 | Q_OBJECT |
23 | public: | 32 | public: |
24 | PmIpkg( PackageManagerSettings* , QWidget* p=0, const char * name=0, WFlags f=0 ); | 33 | PmIpkg( PackageManagerSettings* , QWidget* p=0, const char * name=0, WFlags f=0 ); |
diff --git a/noncore/unsupported/oipkg/settings.cpp b/noncore/unsupported/oipkg/settings.cpp index 85daa98..4bd60c0 100644 --- a/noncore/unsupported/oipkg/settings.cpp +++ b/noncore/unsupported/oipkg/settings.cpp | |||
@@ -1,24 +1,33 @@ | |||
1 | /*************************************************************************** | ||
2 | * * | ||
3 | * This program is free software; you can redistribute it and/or modify * | ||
4 | * it under the terms of the GNU General Public License as published by * | ||
5 | * the Free Software Foundation; either version 2 of the License, or * | ||
6 | * (at your option) any later version. * | ||
7 | * * | ||
8 | ***************************************************************************/ | ||
9 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> | ||
1 | #include "pksettings.h" | 10 | #include "pksettings.h" |
2 | 11 | ||
3 | #include <qpe/config.h> | 12 | #include <qpe/config.h> |
4 | #include <qcombobox.h> | 13 | #include <qcombobox.h> |
5 | #include <qfile.h> | 14 | #include <qfile.h> |
6 | #include <qlineedit.h> | 15 | #include <qlineedit.h> |
7 | #include <qpushbutton.h> | 16 | #include <qpushbutton.h> |
8 | #include <qlistbox.h> | 17 | #include <qlistbox.h> |
9 | #include <qcheckbox.h> | 18 | #include <qcheckbox.h> |
10 | #include <qstring.h> | 19 | #include <qstring.h> |
11 | #include <qobject.h> | 20 | #include <qobject.h> |
12 | #include <qtextstream.h> | 21 | #include <qtextstream.h> |
13 | #include <qtabwidget.h> | 22 | #include <qtabwidget.h> |
14 | 23 | ||
15 | 24 | ||
16 | PackageManagerSettings::PackageManagerSettings( QWidget* parent, const char* name, WFlags fl ) | 25 | PackageManagerSettings::PackageManagerSettings( QWidget* parent, const char* name, WFlags fl ) |
17 | : PackageManagerSettingsBase( parent, name, fl ) | 26 | : PackageManagerSettingsBase( parent, name, fl ) |
18 | { | 27 | { |
19 | connect( newserver, SIGNAL(clicked()), this, SLOT(newServer()) ); | 28 | connect( newserver, SIGNAL(clicked()), this, SLOT(newServer()) ); |
20 | connect( removeserver, SIGNAL(clicked()), this, SLOT(removeServer()) ); | 29 | connect( removeserver, SIGNAL(clicked()), this, SLOT(removeServer()) ); |
21 | connect( servers, SIGNAL(highlighted(int)), this, SLOT(editServer(int)) ); | 30 | connect( servers, SIGNAL(highlighted(int)), this, SLOT(editServer(int)) ); |
22 | connect( newdestination, SIGNAL(clicked()), this, SLOT(newDestination()) ); | 31 | connect( newdestination, SIGNAL(clicked()), this, SLOT(newDestination()) ); |
23 | connect( removedestination, SIGNAL(clicked()), this, SLOT(removeDestination()) ); | 32 | connect( removedestination, SIGNAL(clicked()), this, SLOT(removeDestination()) ); |
24 | connect( destinations, SIGNAL(highlighted(int)), this, SLOT(editDestination(int)) ); | 33 | connect( destinations, SIGNAL(highlighted(int)), this, SLOT(editDestination(int)) ); |
diff --git a/noncore/unsupported/oipkg/settings.h b/noncore/unsupported/oipkg/settings.h index 9cb7a9b..44459b2 100644 --- a/noncore/unsupported/oipkg/settings.h +++ b/noncore/unsupported/oipkg/settings.h | |||
@@ -1,33 +1,41 @@ | |||
1 | /*************************************************************************** | ||
2 | * * | ||
3 | * This program is free software; you can redistribute it and/or modify * | ||
4 | * it under the terms of the GNU General Public License as published by * | ||
5 | * the Free Software Foundation; either version 2 of the License, or * | ||
6 | * (at your option) any later version. * | ||
7 | * * | ||
8 | ***************************************************************************/ | ||
9 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> | ||
1 | #ifndef PACKAGEMANAGERSETTINGS_H | 10 | #ifndef PACKAGEMANAGERSETTINGS_H |
2 | #define PACKAGEMANAGERSETTINGS_H | 11 | #define PACKAGEMANAGERSETTINGS_H |
3 | 12 | ||
4 | #include "pksettingsbase.h" | 13 | #include "pksettingsbase.h" |
5 | #include <qintdict.h> | 14 | #include <qintdict.h> |
6 | 15 | ||
7 | 16 | ||
8 | class PackageManagerSettings : public PackageManagerSettingsBase | 17 | class PackageManagerSettings : public PackageManagerSettingsBase |
9 | //class PackageManagerSettings : private PackageManagerSettingsBase | ||
10 | { | 18 | { |
11 | Q_OBJECT | 19 | Q_OBJECT |
12 | public: | 20 | public: |
13 | PackageManagerSettings( QWidget* , const char* , WFlags ); | 21 | PackageManagerSettings( QWidget* , const char* , WFlags ); |
14 | ~PackageManagerSettings(); | 22 | ~PackageManagerSettings(); |
15 | 23 | ||
16 | bool showDialog( int ) ; | 24 | bool showDialog( int ) ; |
17 | QString getDestinationUrl(); | 25 | QString getDestinationUrl(); |
18 | QString getDestinationName(); | 26 | QString getDestinationName(); |
19 | QString getLinkDestinationName(); | 27 | QString getLinkDestinationName(); |
20 | bool createLinks(); | 28 | bool createLinks(); |
21 | QStringList getActiveServers(); | 29 | QStringList getActiveServers(); |
22 | QStringList getDestinationUrls(); | 30 | QStringList getDestinationUrls(); |
23 | 31 | ||
24 | public slots: /** No descriptions */ | 32 | public slots: /** No descriptions */ |
25 | void createLinks(); | 33 | void createLinks(); |
26 | void removeLinks(); | 34 | void removeLinks(); |
27 | void writeInstallationSettings(); | 35 | void writeInstallationSettings(); |
28 | void readInstallationSettings(); | 36 | void readInstallationSettings(); |
29 | void writeCurrentInstallationSetting(); | 37 | void writeCurrentInstallationSetting(); |
30 | void readInstallationSetting(int); | 38 | void readInstallationSetting(int); |
31 | void installationSettingSetName(const QString &); | 39 | void installationSettingSetName(const QString &); |
32 | void activeDestinationChange(int) | 40 | void activeDestinationChange(int) |
33 | void newServer(); | 41 | void newServer(); |