-rw-r--r-- | core/launcher/packageslave.h | 29 |
1 files changed, 25 insertions, 4 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 | ||