Rabbit Remote Control
0.0.30
Loading...
Searching...
No Matches
App
Service
main.cpp
1
// Author: Kang Lin <kl222@126.com>
2
19
#include "ServiceManager.h"
20
#include "RabbitCommonTools.h"
21
#include <QLoggingCategory>
22
23
Q_LOGGING_CATEGORY(App,
"App"
)
24
25
int main(
int
argc,
char
*argv[])
26
{
27
int
nRet = 0;
28
29
try
{
30
CServiceManager
s(argc, argv,
"RabbitRemoteControlService"
);
31
s.exec();
32
}
catch
(std::exception& e) {
33
qCritical(App) <<
"Exception:"
<< e.what();
34
}
35
36
return
nRet;
37
}
CServiceManager
Manage service.
Definition
ServiceManager.h:40
作者:康林 (kl222@126.com)
版权所有(c) 康林工作室 保留所有权力