summaryrefslogtreecommitdiff
path: root/noncore/settings/aqpkg/ipkg.h
authorandyq <andyq>2002-11-23 15:27:33 (UTC)
committer andyq <andyq>2002-11-23 15:27:33 (UTC)
commit7763c095d81f44cd3012d894da6b17eb0b0cc194 (patch) (unidiff)
tree286c3392f3ad9b06429a136413590ec99ebefadf /noncore/settings/aqpkg/ipkg.h
parentdd850ee9705b0329d49c3e1b0f22d76ce62f7a0b (diff)
downloadopie-7763c095d81f44cd3012d894da6b17eb0b0cc194.zip
opie-7763c095d81f44cd3012d894da6b17eb0b0cc194.tar.gz
opie-7763c095d81f44cd3012d894da6b17eb0b0cc194.tar.bz2
1.6 Beta - Changed ipg process to use OProcess instead of popen for async io
Diffstat (limited to 'noncore/settings/aqpkg/ipkg.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/ipkg.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/noncore/settings/aqpkg/ipkg.h b/noncore/settings/aqpkg/ipkg.h
index 7099ca7..25bae59 100644
--- a/noncore/settings/aqpkg/ipkg.h
+++ b/noncore/settings/aqpkg/ipkg.h
@@ -25,6 +25,7 @@
25 25
26#include <qobject.h> 26#include <qobject.h>
27#include <qstring.h> 27#include <qstring.h>
28#include <qstringlist.h>
28#include <qlist.h> 29#include <qlist.h>
29 30
30#define FORCE_DEPENDS 0x0001 31#define FORCE_DEPENDS 0x0001
@@ -33,7 +34,9 @@
33#define FORCE_OVERWRITE 0x0008 34#define FORCE_OVERWRITE 0x0008
34#define MAKE_LINKS 0x0010 35#define MAKE_LINKS 0x0010
35#define VERBOSE_WGET 0x0020 36#define VERBOSE_WGET 0x0020
36 37
38class OProcess;
39
37class Ipkg : public QObject 40class Ipkg : public QObject
38{ 41{
39 Q_OBJECT 42 Q_OBJECT
@@ -51,6 +54,12 @@ public:
51 54
52signals: 55signals:
53 void outputText( const QString &text ); 56 void outputText( const QString &text );
57
58public slots:
59 void commandStdout(OProcess*, char *buffer, int buflen);
60 void commandStderr(OProcess*, char *buffer, int buflen);
61 void processFinished();
62
54 63
55private: 64private:
56 bool createLinks; 65 bool createLinks;
@@ -58,17 +67,20 @@ private:
58 QString package; 67 QString package;
59 QString destination; 68 QString destination;
60 QString destDir; 69 QString destDir;
61 int flags;
62 QString runtimeDir; 70 QString runtimeDir;
71 OProcess *proc;
72 int flags;
73 bool finished;
63 74
64 QList<QString> *dependantPackages; 75 QList<QString> *dependantPackages;
65 76
66 int executeIpkgCommand( QString &cmd, const QString option ); 77 int executeIpkgCommand( QStringList &cmd, const QString option );
67 void removeStatusEntry(); 78 void removeStatusEntry();
68 void linkPackage( const QString &packFileName, const QString &dest, const QString &destDir ); 79 void linkPackage( const QString &packFileName, const QString &dest, const QString &destDir );
69 QStringList* getList( const QString &packageFilename, const QString &destDir ); 80 QStringList* getList( const QString &packageFilename, const QString &destDir );
70 void processFileList( const QStringList *fileList, const QString &destDir ); 81 void processFileList( const QStringList *fileList, const QString &destDir );
71 void processLinkDir( const QString &file, const QString &baseDir, const QString &destDir ); 82 void processLinkDir( const QString &file, const QString &baseDir, const QString &destDir );
83
72}; 84};
73 85
74#endif 86#endif