Vidalia
0.3.1
Main Page
Namespaces
Classes
Files
File List
File Members
src
vidalia
plugin
prototypes
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
9
class
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
28
Q_DECLARE_METATYPE
(
HelperProcess
*);
29
30
#endif
31
32
Generated on Mon Jan 14 2013 08:44:27 for Vidalia by
1.8.3