summaryrefslogtreecommitdiff
path: root/core/launcher
Unidiff
Diffstat (limited to 'core/launcher') (more/less context) (show whitespace changes)
-rw-r--r--core/launcher/packageslave.h29
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
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