summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/packageslave.h31
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,52 +1,73 @@
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
8** Foundation and appearing in the file LICENSE.GPL included in the 8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 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. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20 20
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
26class QCopChannel; 27class QCopChannel;
28class QProcess;
27 29
28class PackageSlave : public QObject 30class PackageHandler : public QObject
29{ 31{
30 Q_OBJECT 32 Q_OBJECT
31 33
32public: 34public:
33 PackageSlave( QObject *parent, char* name = 0 ); 35 PackageHandler( QObject *parent, char* name = 0 );
36
37public slots:
38 void redoPackages();
34 39
35protected: 40protected:
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
39protected slots: 52protected 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
42private: 59private:
43 void sendReply( const QCString& msg, const QString& arg ); 60 void sendReply( const QCString& msg, const QString& arg );
44 61
45private: 62private:
46 QCopChannel *packageChannel; 63 QCopChannel *packageChannel;
64 QProcess *currentProcess;
65 QString currentPackage;
66 QString currentProcessError;
67 bool mNoSpaceLeft;
47}; 68};
48 69
49 70
50#endif // __QUICK_LAUNCHER_H__ 71#endif // __QUICK_LAUNCHER_H__
51 72
52 73