summaryrefslogtreecommitdiffstats
path: root/src/gui/processWidget.h
blob: 4d696ebc08bb3f49b54ccfaa6c9a536f0c5f34aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef PROCESSWIDGET_H_
#define PROCESSWIDGET_H_

#include <QDialog>
#include <QtGui>
#include <QVector>

namespace Ui {
    class ProcessWidget;
}

class PVSClient;
class ProcessWidget: public QWidget
{
    Q_OBJECT

public:
    ProcessWidget(QWidget *parent, PVSClient *client);
    ~ ProcessWidget();

public slots:
	void refrProcessList(bool timerEvent = false);

private:
    Ui::ProcessWidget *prowui;
    PVSClient *client;
    QVector<QString> *processes;

private slots:
    void startProcess();
    void stopProcess();
    void resendProcessList();
    void sendCommand(QString ident, QString message);
};

#endif