MCPcopy Create free account
hub / github.com/Atarity/Lightpack / Start

Method Start

Software/src/Plugin.cpp:106–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104
105
106void Plugin::Start()
107{
108 DEBUG_LOW_LEVEL << Q_FUNC_INFO << _exec;
109
110 QString program = _exec;
111 //QStringList arguments;
112 //arguments << "-style" << "fusion";
113
114 QDir dir(_pathPlugin);
115 QDir::setCurrent(dir.absolutePath());
116
117 process->disconnect();
118 connect(process, SIGNAL(stateChanged(QProcess::ProcessState)), this, SIGNAL(stateChanged(QProcess::ProcessState)));
119
120 process->setEnvironment(QProcess::systemEnvironment());
121// process->setProcessChannelMode(QProcess::ForwardedChannels);
122 process->start(program,NULL);
123}
124
125void Plugin::Stop()
126{

Callers 2

setEnabledMethod · 0.95
StartPluginsMethod · 0.45

Calls 2

disconnectMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected