source: src-qt4/pc-softwaremanager/processManager.h @ 5cb32e6

releng/10.0.1releng/10.0.2
Last change on this file since 5cb32e6 was 5cb32e6, checked in by Ken Moore <ken@…>, 5 months ago

Convert the AppCafe? backend to use the new DLProcess class within libpcbsd-utils for download parsing/notifications. Seems to work just fine.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1#ifndef _APPCAFE_PROCESS_MANAGER_H
2#define _APPCAFE_PROCESS_MANAGER_H
3
4#include <QString>
5#include <QStringList>
6#include <QObject>
7#include <QDebug>
8
9#include <pcbsd-DLProcess.h>
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        DLProcess *upProc, *remProc, *dlProc, *inProc, *otProc;
35        QStringList upLog, remLog, dlLog, inLog;
36        bool remStrictErrChecking;
37
38private slots:
39        //QString parseDlLine(QString);
40        void slotUpProcMessage(QString);
41        void slotUpProcStats(QString,QString, QString);
42        void slotUpProcFinished();
43
44        void slotRemProcMessage(QString);
45        void slotRemProcFinished();
46
47        void slotDlProcMessage(QString);
48        void slotDlProcStats(QString,QString, QString);
49        void slotDlProcFinished();
50
51        void slotInProcMessage(QString);
52        void slotInProcFinished();
53
54        void slotOtProcMessage(QString);
55        void slotOtProcFinished();
56
57};
58
59#endif
Note: See TracBrowser for help on using the repository browser.