Vidalia 0.3.1
HelperProcessPrototype.h
Go to the documentation of this file.
1#ifndef HELPERPROCESSPROT_H
2#define HELPERPROCESSPROT_H
3
4#include <QtGui>
5#include <QtScript>
6
7#include "HelperProcess.h"
8
9class HelperProcessPrototype : public QObject, public QScriptable
10{
11 Q_OBJECT
12
13 public:
14 HelperProcessPrototype(QObject *parent = 0);
15 static QScriptValue constructor(QScriptContext *context, QScriptEngine *engine);
16 static int metaTypeId();
17 static QString name();
18
19 Q_INVOKABLE void start(const QString &app, const QString &args);
20 Q_INVOKABLE void start(const QString &app, const QStringList &args);
21 Q_INVOKABLE bool isDone() const;
22 Q_INVOKABLE QStringList systemEnvironment();
23 Q_INVOKABLE void setEnvironment(const QStringList &env);
24 Q_INVOKABLE QProcess::ProcessState state();
25 Q_INVOKABLE void toForeground();
26};
27
29
30#endif
31
32
Q_DECLARE_METATYPE(HelperProcess *)
Q_INVOKABLE void start(const QString &app, const QString &args)
Q_INVOKABLE void setEnvironment(const QStringList &env)
Q_INVOKABLE QProcess::ProcessState state()
Q_INVOKABLE bool isDone() const
Q_INVOKABLE QStringList systemEnvironment()
static QScriptValue constructor(QScriptContext *context, QScriptEngine *engine)
HelperProcessPrototype(QObject *parent=0)