MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / Load

Method Load

Plugins/WakeOnLan/WakeOnLanModel.cpp:270–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270int CWakeOnLanModel::Load(QSettings &set, CParameterPlugin* pPlugin)
271{
272 int nRet = 0;
273 int count = 0;
274 count = set.value("Count").toInt();
275 for(int i = 0; i < count; i++)
276 {
277 QSharedPointer<CParameterWakeOnLan> p(new CParameterWakeOnLan());
278 if(!p) {
279 nRet = -1;
280 break;
281 }
282 p->SetPluginParameters(pPlugin);
283 set.beginGroup("Host" + QString::number(i));
284 nRet = p->Load(set);
285 set.endGroup();
286 if(nRet)
287 break;
288 AddItem(p);
289 }
290 return nRet;
291}
292
293int CWakeOnLanModel::Save(QSettings &set)
294{

Callers

nothing calls this directly

Calls 1

SetPluginParametersMethod · 0.45

Tested by

no test coverage detected