summaryrefslogtreecommitdiff
path: root/noncore/settings/aqpkg/ipkg.h
Unidiff
Diffstat (limited to 'noncore/settings/aqpkg/ipkg.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/aqpkg/ipkg.h16
1 files changed, 14 insertions, 2 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
@@ -22,21 +22,24 @@
22/** 22/**
23 *@author Andy Qua 23 *@author Andy Qua
24 */ 24 */
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
31#define FORCE_REMOVE 0x0002 32#define FORCE_REMOVE 0x0002
32#define FORCE_REINSTALL 0x0004 33#define FORCE_REINSTALL 0x0004
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
40public: 43public:
41 Ipkg(); 44 Ipkg();
42 ~Ipkg(); 45 ~Ipkg();
@@ -49,26 +52,35 @@ public:
49 void setFlags( int fl ) { flags = fl; } 52 void setFlags( int fl ) { flags = fl; }
50 void setRuntimeDirectory( const char *dir ) { runtimeDir = dir; } 53 void setRuntimeDirectory( const char *dir ) { runtimeDir = dir; }
51 54
52signals: 55signals:
53 void outputText( const QString &text ); 56 void outputText( const QString &text );
54 57
58public slots:
59 void commandStdout(OProcess*, char *buffer, int buflen);
60 void commandStderr(OProcess*, char *buffer, int buflen);
61 void processFinished();
62
63
55private: 64private:
56 bool createLinks; 65 bool createLinks;
57 QString option; 66 QString option;
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