author | drw <drw> | 2003-04-26 22:42:19 (UTC) |
---|---|---|
committer | drw <drw> | 2003-04-26 22:42:19 (UTC) |
commit | 98a9291263e167b8882ac916330e7215ebd884b4 (patch) (unidiff) | |
tree | 882a909e9381ab4cc97e77377fd61361d7f21eab /noncore/settings/aqpkg/ipkg.h | |
parent | 64c48b637c1bd1bef679bff500f3e0ce5365358d (diff) | |
download | opie-98a9291263e167b8882ac916330e7215ebd884b4.zip opie-98a9291263e167b8882ac916330e7215ebd884b4.tar.gz opie-98a9291263e167b8882ac916330e7215ebd884b4.tar.bz2 |
1. Fix for bug #872 - reduce CPU useage while ipkg is doing its thing 2. Re-enable setDocument function for identifying local ipks
Diffstat (limited to 'noncore/settings/aqpkg/ipkg.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/ipkg.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/settings/aqpkg/ipkg.h b/noncore/settings/aqpkg/ipkg.h index 531bfc0..a0d38e3 100644 --- a/noncore/settings/aqpkg/ipkg.h +++ b/noncore/settings/aqpkg/ipkg.h | |||
@@ -22,59 +22,61 @@ | |||
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 <qstringlist.h> |
29 | #include <qlist.h> | 29 | #include <qlist.h> |
30 | 30 | ||
31 | #define FORCE_DEPENDS 0x0001 | 31 | #define FORCE_DEPENDS 0x0001 |
32 | #define FORCE_REMOVE 0x0002 | 32 | #define FORCE_REMOVE 0x0002 |
33 | #define FORCE_REINSTALL 0x0004 | 33 | #define FORCE_REINSTALL 0x0004 |
34 | #define FORCE_OVERWRITE 0x0008 | 34 | #define FORCE_OVERWRITE 0x0008 |
35 | #define MAKE_LINKS 0x0010 | 35 | #define MAKE_LINKS 0x0010 |
36 | #define VERBOSE_WGET 0x0020 | 36 | #define VERBOSE_WGET 0x0020 |
37 | 37 | ||
38 | class OProcess; | 38 | class OProcess; |
39 | 39 | ||
40 | class Ipkg : public QObject | 40 | class Ipkg : public QObject |
41 | { | 41 | { |
42 | Q_OBJECT | 42 | Q_OBJECT |
43 | public: | 43 | public: |
44 | Ipkg(); | 44 | Ipkg(); |
45 | ~Ipkg(); | 45 | ~Ipkg(); |
46 | bool runIpkg( ); | 46 | void runIpkg(); |
47 | void createSymLinks(); | ||
47 | 48 | ||
48 | void setOption( const char *opt ) { option = opt; } | 49 | void setOption( const char *opt ) { option = opt; } |
49 | void setPackage( const char *pkg ) { package = pkg; } | 50 | void setPackage( const char *pkg ) { package = pkg; } |
50 | void setDestination( const char *dest ) { destination = dest; } | 51 | void setDestination( const char *dest ) { destination = dest; } |
51 | void setDestinationDir( const char *dir ) { destDir = dir; } | 52 | void setDestinationDir( const char *dir ) { destDir = dir; } |
52 | void setFlags( int fl, int il ) { flags = fl; infoLevel = il; } | 53 | void setFlags( int fl, int il ) { flags = fl; infoLevel = il; } |
53 | void setRuntimeDirectory( const char *dir ) { runtimeDir = dir; } | 54 | void setRuntimeDirectory( const char *dir ) { runtimeDir = dir; } |
54 | 55 | ||
55 | signals: | 56 | signals: |
56 | void outputText( const QString &text ); | 57 | void outputText( const QString &text ); |
58 | void ipkgFinished(); | ||
57 | 59 | ||
58 | public slots: | 60 | public slots: |
59 | void commandStdout(OProcess*, char *buffer, int buflen); | 61 | void commandStdout(OProcess*, char *buffer, int buflen); |
60 | void commandStderr(OProcess*, char *buffer, int buflen); | 62 | void commandStderr(OProcess*, char *buffer, int buflen); |
61 | void processFinished(); | 63 | void processFinished(); |
62 | void abort(); | 64 | void abort(); |
63 | 65 | ||
64 | 66 | ||
65 | private: | 67 | private: |
66 | bool createLinks; | 68 | bool createLinks; |
67 | bool aborted; | 69 | bool aborted; |
68 | bool error; | 70 | bool error; |
69 | QString option; | 71 | QString option; |
70 | QString package; | 72 | QString package; |
71 | QString destination; | 73 | QString destination; |
72 | QString destDir; | 74 | QString destDir; |
73 | QString runtimeDir; | 75 | QString runtimeDir; |
74 | OProcess *proc; | 76 | OProcess *proc; |
75 | int flags; | 77 | int flags; |
76 | int infoLevel; | 78 | int infoLevel; |
77 | bool finished; | 79 | bool finished; |
78 | 80 | ||
79 | QList<QString> *dependantPackages; | 81 | QList<QString> *dependantPackages; |
80 | 82 | ||