summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/packagemanager.h
Unidiff
Diffstat (limited to 'noncore/unsupported/oipkg/packagemanager.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/packagemanager.h94
1 files changed, 94 insertions, 0 deletions
diff --git a/noncore/unsupported/oipkg/packagemanager.h b/noncore/unsupported/oipkg/packagemanager.h
new file mode 100644
index 0000000..a3f89d0
--- a/dev/null
+++ b/noncore/unsupported/oipkg/packagemanager.h
@@ -0,0 +1,94 @@
1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved.
3**
4** This file is part of Qtopia Environment.
5**
6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file.
10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15**
16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you.
18**
19**********************************************************************/
20#ifndef PACKAGEMANAGER_H
21#define PACKAGEMANAGER_H
22#include "packagemanagerbase.h"
23#include <qintdict.h>
24
25class PackageItem;
26class PackageDetails;
27class PackageManagerSettings;
28
29class PackageManager : public PackageManagerBase
30{
31 Q_OBJECT
32
33public:
34 PackageManager( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
35 ~PackageManager();
36
37
38public slots:
39 void doDetails();
40 void doSettings();
41 void doFind();
42 void doUpgrade();
43 void setDocument(const QString& fileref);
44
45protected slots:
46 void doIt();
47
48private slots:
49 void installCurrent();
50 void removeCurrent();
51 void doNextDetails();
52
53 void newServer();
54 void editServer(int);
55 void removeServer();
56 void nameChanged(const QString&);
57 void urlChanged(const QString&);
58 void updatePackageList();
59
60private:
61 void maybeInstall( const QString &ipk );
62 void startRun();
63 void endRun();
64 void startMultiRun(int jobs);
65 int runIpkg(const QString& args);
66 QString fullDetails(const QString& pk);
67
68 bool readIpkgConfig(const QString& conffile);
69
70 void doCurrentDetails(bool);
71 PackageItem* current() const;
72
73 QStringList findPackages( const QRegExp& re );
74 void selectPackages( const QStringList& l );
75
76 bool commitWithIpkg();
77
78 QString ipkgStatusOutput();
79 QString ipkgInfoOutput();
80 void setCachedIpkgOutputDirty();
81
82 PackageManagerSettings* settings;
83 QIntDict<QString> serverurl;
84 int editedserver;
85 int ipkg_old;
86 void writeSettings();
87 void readSettings();
88
89 PackageDetails* details;
90 QCString cachedIpkgStatusOutput;
91 QCString cachedIpkgInfoOutput;
92};
93
94#endif // PACKAGEMANAGER_H