author | andyq <andyq> | 2002-11-23 15:27:33 (UTC) |
---|---|---|
committer | andyq <andyq> | 2002-11-23 15:27:33 (UTC) |
commit | 7763c095d81f44cd3012d894da6b17eb0b0cc194 (patch) (side-by-side diff) | |
tree | 286c3392f3ad9b06429a136413590ec99ebefadf /noncore/settings/aqpkg/ipkg.h | |
parent | dd850ee9705b0329d49c3e1b0f22d76ce62f7a0b (diff) | |
download | opie-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
-rw-r--r-- | noncore/settings/aqpkg/ipkg.h | 16 |
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 @@ -25,6 +25,7 @@ #include <qobject.h> #include <qstring.h> +#include <qstringlist.h> #include <qlist.h> #define FORCE_DEPENDS 0x0001 @@ -34,6 +35,8 @@ #define MAKE_LINKS 0x0010 #define VERBOSE_WGET 0x0020 +class OProcess; + class Ipkg : public QObject { Q_OBJECT @@ -52,23 +55,32 @@ public: signals: void outputText( const QString &text ); +public slots: + void commandStdout(OProcess*, char *buffer, int buflen); + void commandStderr(OProcess*, char *buffer, int buflen); + void processFinished(); + + private: bool createLinks; QString option; QString package; QString destination; QString destDir; - int flags; QString runtimeDir; + OProcess *proc; + int flags; + bool finished; QList<QString> *dependantPackages; - int executeIpkgCommand( QString &cmd, const QString option ); + int executeIpkgCommand( QStringList &cmd, const QString option ); void removeStatusEntry(); void linkPackage( const QString &packFileName, const QString &dest, const QString &destDir ); QStringList* getList( const QString &packageFilename, const QString &destDir ); void processFileList( const QStringList *fileList, const QString &destDir ); void processLinkDir( const QString &file, const QString &baseDir, const QString &destDir ); + }; #endif |