author | zecke <zecke> | 2003-08-28 14:39:57 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-08-28 14:39:57 (UTC) |
commit | 8aff9d2f2d079e4500b6bbbd9f410c16cee3f6a1 (patch) (unidiff) | |
tree | a1472e8731b122d8e9493c01b68884acb18d1cf8 | |
parent | 613dff8e20a2d02b0d9617da2ba94238d120a922 (diff) | |
download | opie-8aff9d2f2d079e4500b6bbbd9f410c16cee3f6a1.zip opie-8aff9d2f2d079e4500b6bbbd9f410c16cee3f6a1.tar.gz opie-8aff9d2f2d079e4500b6bbbd9f410c16cee3f6a1.tar.bz2 |
Include fixes for Opie
-rw-r--r-- | core/launcher/packageslave.h | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/core/launcher/packageslave.h b/core/launcher/packageslave.h index 036abed..878b4c3 100644 --- a/core/launcher/packageslave.h +++ b/core/launcher/packageslave.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Qtopia Environment. | 4 | ** This file is part of the Qtopia Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 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 | 7 | ** GNU General Public License version 2 as published by the Free Software |
@@ -21,29 +21,50 @@ | |||
21 | #ifndef __packageslave_h__ | 21 | #ifndef __packageslave_h__ |
22 | #define __packageslave_h__ | 22 | #define __packageslave_h__ |
23 | 23 | ||
24 | #include <qtopia/global.h> | ||
24 | #include <qobject.h> | 25 | #include <qobject.h> |
25 | 26 | ||
26 | class QCopChannel; | 27 | class QCopChannel; |
28 | class QProcess; | ||
27 | 29 | ||
28 | class PackageSlave : public QObject | 30 | class PackageHandler : public QObject |
29 | { | 31 | { |
30 | Q_OBJECT | 32 | Q_OBJECT |
31 | 33 | ||
32 | public: | 34 | public: |
33 | PackageSlave( QObject *parent, char* name = 0 ); | 35 | PackageHandler( QObject *parent, char* name = 0 ); |
36 | |||
37 | public slots: | ||
38 | void redoPackages(); | ||
34 | 39 | ||
35 | protected: | 40 | protected: |
36 | void installPackage( const QString &package ); | 41 | void installPackage( const QString &package ); |
37 | void removePackage( const QString &package ); | 42 | void removePackage( const QString &package ); |
38 | 43 | ||
44 | void addPackageFiles( const QString &location, const QString &listfile ); | ||
45 | void addPackages( const QString &location ); | ||
46 | |||
47 | void cleanupPackageFiles( const QString &listfile ); | ||
48 | void cleanupPackages( const QString &location ); | ||
49 | |||
50 | void prepareInstall( const QString& size, const QString& path ); | ||
51 | |||
39 | protected slots: | 52 | protected slots: |
40 | void qcopMessage( const QCString &msg, const QByteArray &data ); | 53 | void qcopMessage( const QCString &msg, const QByteArray &data ); |
54 | void iProcessExited(); | ||
55 | void rmProcessExited(); | ||
56 | void readyReadStdout(); | ||
57 | void readyReadStderr(); | ||
41 | 58 | ||
42 | private: | 59 | private: |
43 | void sendReply( const QCString& msg, const QString& arg ); | 60 | void sendReply( const QCString& msg, const QString& arg ); |
44 | 61 | ||
45 | private: | 62 | private: |
46 | QCopChannel *packageChannel; | 63 | QCopChannel *packageChannel; |
64 | QProcess *currentProcess; | ||
65 | QString currentPackage; | ||
66 | QString currentProcessError; | ||
67 | bool mNoSpaceLeft; | ||
47 | }; | 68 | }; |
48 | 69 | ||
49 | 70 | ||