-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathqprocess_implement.h
More file actions
30 lines (28 loc) · 898 Bytes
/
Copy pathqprocess_implement.h
File metadata and controls
30 lines (28 loc) · 898 Bytes
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
#pragma once
#include <QProcess>
#include "core_module.h"
#include "qprocess_p.h"
#include "qprocess_wrapper.h"
namespace shelllet {
namespace core {
class Process : public QProcessWrapper<QProcess, Process, true>
{
using ReturnType = QProcessPrivate<QProcess, true>;
using ReturnType2 = QProcessPrivate<QProcess, false>;
ReturnType* Param(const v8::FunctionCallbackInfo<v8::Value>& args) {
return new ReturnType(args.GetIsolate(), args.This());
}
public:
Process(const v8::FunctionCallbackInfo<v8::Value>& args) : QProcessWrapper(*Param(args), args)
{
}
Process(v8::Isolate* isolate, const v8::Local<v8::FunctionTemplate>& tpl) : QProcessWrapper(isolate, tpl) {}
Process(v8::Isolate* isolate, const v8::Local<v8::ObjectTemplate>& proto) : QProcessWrapper(isolate, proto) {
}
static const char* Name() {
return "QProcess";
}
public:
};
}
}