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 | |||
@@ -34,35 +34,37 @@ | |||
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; |