enigma_plugins.cpp ändern

Alles rund um das grafische Benutzerinterface Enigma
essu
Tuxboxer
Tuxboxer
Beiträge: 2452
Registriert: Montag 21. Oktober 2002, 10:04

enigma_plugins.cpp ändern

Beitrag von essu »

Lässt sich das so machen?

Code: Alles auswählen

...
ePlugin::ePlugin(eListBox<ePlugin> *parent, const char *cfgfile, const char* descr)
	:eListBoxEntryText((eListBox<eListBoxEntryText>*)parent)
{
	eDebug(cfgfile);
	text=getInfo(cfgfile, "name");

	if (text.isNull())
		text="(" + eString(cfgfile) + " is invalid)";
		
	eString desc=getInfo(cfgfile, "desc");

	if (desc)
	{
		text+=" - "+desc;
	}

	depend=getInfo(cfgfile, "depend");

	eString atype=getInfo(cfgfile, "type"),
					apluginVersion=getInfo(cfgfile, "pluginversion"),
					aneedfb=getInfo(cfgfile, "needfb"),
					aneedrc=getInfo(cfgfile, "needrc"),
					aneedlcd=getInfo(cfgfile, "needlcd"),
					aneedvtxtpid=getInfo(cfgfile, "needvtxtpid"),
					aneedoffsets=getInfo(cfgfile, "needoffsets"),
					apigon=getInfo(cfgfile, "pigon");
					apluginname=getInfo(cfgfile, "pluginname");
					apluginso=getInfo(cfgfile, "pluginso");
// for further use
				asoparameters=getInfo(cfgfile, "soparameters");

	needfb=(aneedfb.isNull()?false:atoi(aneedfb.c_str()));
	needlcd=(aneedlcd.isNull()?false:atoi(aneedlcd.c_str()));
	needrc=(aneedrc.isNull()?false:atoi(aneedrc.c_str()));
	needvtxtpid=(aneedvtxtpid.isNull()?false:atoi(aneedvtxtpid.c_str()));
	needoffsets=(aneedoffsets.isNull()?false:atoi(aneedoffsets.c_str()));
	version=(apluginVersion.isNull()?0:atoi(apluginVersion.c_str()));
	showpig=(apigon.isNull()?false:atoi(apigon.c_str()));
	sopath=(apluginso.isNull()?0:atoi(apluginso.c_str())); // kein uarg
	pluginname=(apluginname.isNull()?0:atoi(apluginname.c_str()));

// for further use	
     soparameters=(asoparameters.isNull()?0:atoi(asoparameters.c_str())); 
...
}
Schon gelesen ???
ENIGMA-DOC