Diffstat (limited to 'core/launcher/packageslave.h') (more/less context) (ignore whitespace changes)
-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,5 +1,5 @@ | |||
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 | ** |
@@ -23,2 +23,3 @@ | |||
23 | 23 | ||
24 | #include <qtopia/global.h> | ||
24 | #include <qobject.h> | 25 | #include <qobject.h> |
@@ -26,4 +27,5 @@ | |||
26 | class QCopChannel; | 27 | class QCopChannel; |
28 | class QProcess; | ||
27 | 29 | ||
28 | class PackageSlave : public QObject | 30 | class PackageHandler : public QObject |
29 | { | 31 | { |
@@ -32,10 +34,25 @@ class PackageSlave : public QObject | |||
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 | ||
@@ -46,2 +63,6 @@ private: | |||
46 | QCopChannel *packageChannel; | 63 | QCopChannel *packageChannel; |
64 | QProcess *currentProcess; | ||
65 | QString currentPackage; | ||
66 | QString currentProcessError; | ||
67 | bool mNoSpaceLeft; | ||
47 | }; | 68 | }; |