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

Method run

Service/ServiceThread.cpp:19–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19void CServiceThread::run()
20{
21 CService* pService = m_pPlugin->NewService();
22 if(!pService)
23 {
24 qCritical(Service) << "GetService fail";
25 return;
26 }
27 qInfo(Service) << "The service" << m_pPlugin->Name() << "is start";
28
29 int nRet = pService->Init();
30 if(nRet)
31 {
32 qWarning(Service) << "The service" << m_pPlugin->Name() << "initial fail";
33 return;
34 }
35
36 exec();
37
38 qInfo(Service) << "The service" << m_pPlugin->Name() << "is stop";
39
40 pService->Clean();
41 pService->deleteLater();
42}

Callers

nothing calls this directly

Calls 4

NewServiceMethod · 0.45
NameMethod · 0.45
InitMethod · 0.45
CleanMethod · 0.45

Tested by

no test coverage detected