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

Method Plugin

Software/src/Plugin.cpp:19–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17#endif
18
19Plugin::Plugin(QString name, QString path, QObject *parent) :
20 QObject(parent)
21{
22 DEBUG_LOW_LEVEL << Q_FUNC_INFO << name << path;
23 _pathPlugin = path;
24 QDir pluginPath(_pathPlugin);
25
26 QString fileName = path+"/"+name+".ini";
27 QSettings settings( fileName, QSettings::IniFormat );
28 settings.beginGroup("Main");
29 this->_name = settings.value( "Name", "Error").toString();
30 if (settings.contains(kOsSpecificExecuteKey)) {
31 this->_exec = settings.value( kOsSpecificExecuteKey, "").toString();
32 } else {
33 this->_exec = settings.value( "Execute", "").toString();
34 }
35 this->_guid = settings.value( "Guid", "").toString();
36 this->_author = settings.value( "Author", "").toString();
37 this->_description = settings.value( "Description", "").toString();
38 this->_version = settings.value( "Version", "").toString();
39 this->_icon = pluginPath.absoluteFilePath(settings.value( "Icon", "").toString());
40 settings.endGroup();
41
42 process = new QProcess(this);
43
44}
45
46Plugin::~Plugin()
47{

Callers

nothing calls this directly

Calls 1

valueMethod · 0.80

Tested by

no test coverage detected