author | tille <tille> | 2002-06-28 17:47:22 (UTC) |
---|---|---|
committer | tille <tille> | 2002-06-28 17:47:22 (UTC) |
commit | 8a34a47d873d8d767d0a84a828e6724b73295b8d (patch) (unidiff) | |
tree | aa637b0c3de1315a7d8d11f02f730fb5e00fa52d /noncore | |
parent | 54ab82774f52332dbbb97de057ee2b1c5d29347d (diff) | |
download | opie-8a34a47d873d8d767d0a84a828e6724b73295b8d.zip opie-8a34a47d873d8d767d0a84a828e6724b73295b8d.tar.gz opie-8a34a47d873d8d767d0a84a828e6724b73295b8d.tar.bz2 |
it's working! now it's got a license -- it's gpl'd
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,20 +1,21 @@ | |||
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 | ||
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,20 +1,23 @@ | |||
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; |
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,13 +1,23 @@ | |||
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> |
@@ -34,25 +44,25 @@ | |||
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(); |
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,12 +1,24 @@ | |||
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" |
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,12 +1,21 @@ | |||
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 ) |
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,12 +1,21 @@ | |||
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 | ||
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,12 +1,21 @@ | |||
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 | ||
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,12 +1,21 @@ | |||
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: |
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,13 +1,21 @@ | |||
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 | { |
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,12 +1,21 @@ | |||
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); |
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,12 +1,21 @@ | |||
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; |
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,12 +1,21 @@ | |||
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" |
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,12 +1,21 @@ | |||
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" ); |
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,12 +1,21 @@ | |||
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 | ||
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,12 +1,21 @@ | |||
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 | } |
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,12 +1,21 @@ | |||
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); |
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,12 +1,21 @@ | |||
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; |
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,28 +1,21 @@ | |||
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" |
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,12 +1,21 @@ | |||
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> |
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,12 +1,21 @@ | |||
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" |
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,12 +1,21 @@ | |||
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> |
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,21 +1,29 @@ | |||
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(); |