source: src-qt4/pc-softwaremanager/processManager.h @ 78fa8b2

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2
Last change on this file since 78fa8b2 was 78fa8b2, checked in by Ken Moore <ken@…>, 14 months ago

Merge the new AppCafe? into the src-qt4 tree from the projects directory

  • Property mode set to 100644
File size: 1001 bytes
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 <QObject>
8#include <QDebug>
9
10#include "extras.h"
11       
12class ProcessManager : public QObject
13{
14        Q_OBJECT
15public:
16        enum ProcessID{ ALL, UPDATE, REMOVE, DOWNLOAD, INSTALL, OTHER };
17       
18        ProcessManager();
19        ~ProcessManager();
20       
21        void goToDirectory(ProcessID, QString);
22       
23        void startProcess(ProcessID, QString);
24        void stopProcess(ProcessID);
25       
26signals:
27        void ProcessFinished(int ID);
28        void ProcessMessage(int ID,QString);
29        void ProcessError(int ID,QString);
30       
31private:
32        QProcess *upProc, *remProc, *dlProc, *inProc, *otProc;
33       
34private slots:
35        QString parseDlLine(QString);
36        void slotUpProcMessage();
37        void slotUpProcFinished();
38        void slotRemProcMessage();
39        void slotRemProcFinished();
40        void slotDlProcMessage();
41        void slotDlProcFinished();
42        void slotInProcMessage();
43        void slotInProcFinished();
44        void slotOtProcMessage();
45        void slotOtProcFinished();
46
47};
48
49#endif
Note: See TracBrowser for help on using the repository browser.