source: src-qt4/pc-softwaremanager/processManager.h @ 52fa6eb

9.2-releasereleng/10.0releng/10.0.1
Last change on this file since 52fa6eb was 52fa6eb, checked in by Ken Moore <ken@…>, 8 months ago

Fix a bug with the level of error reporting in the remove channel. Now it should only have a high level of error checking it is running the pbi_delete command. Other commands (like the occasional mime type removal) should no longer cause an error when removing a PBI.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1#ifndef _APPCAFE_PROCESS_MANAGER_H
2#define _APPCAFE_PROCESS_MANAGER_H
3
4#include <QProcess>
5#include <QProcessEnvironment>
6#include <QString>
7#include <QStringList>
8#include <QObject>
9#include <QDebug>
10
11#include "extras.h"
12       
13class ProcessManager : public QObject
14{
15        Q_OBJECT
16public:
17        enum ProcessID{ ALL, UPDATE, REMOVE, DOWNLOAD, INSTALL, OTHER };
18       
19        ProcessManager();
20        ~ProcessManager();
21       
22        void goToDirectory(ProcessID, QString);
23       
24        void startProcess(ProcessID, QString);
25        void stopProcess(ProcessID);
26        QStringList getProcessLog(ProcessID);
27       
28signals:
29        void ProcessFinished(int ID);
30        void ProcessMessage(int ID,QString);
31        void ProcessError(int ID,QStringList);
32       
33private:
34        QProcess *upProc, *remProc, *dlProc, *inProc, *otProc;
35        QStringList upLog, remLog, dlLog, inLog;
36        bool remStrictErrChecking;
37
38private slots:
39        QString parseDlLine(QString);
40        void slotUpProcMessage();
41        void slotUpProcFinished();
42        void slotRemProcMessage();
43        void slotRemProcFinished();
44        void slotDlProcMessage();
45        void slotDlProcFinished();
46        void slotInProcMessage();
47        void slotInProcFinished();
48        void slotOtProcMessage();
49        void slotOtProcFinished();
50
51};
52
53#endif
Note: See TracBrowser for help on using the repository browser.