34 #define QT_DISABLE_DEPRECATED_BEFORE QT_VERSION_CHECK(4, 0, 0)
41 using namespace RemotePluginProcessNS;
48 if (type == QtDebugMsg)
return;
49 if (
debugLevel < 1 && type == QtWarningMsg)
return;
54 case QtWarningMsg: priority = LOG_WARNING;
break;
55 case QtCriticalMsg: priority = LOG_CRIT;
break;
56 case QtFatalMsg: priority = LOG_EMERG;
break;
59 default: priority = LOG_INFO;
break;
62 syslog(priority,
"%s", msg);
65 int main(
int argc,
char *argv[])
72 #ifndef NO_SIGNON_USER
74 BLAME() << argv[0] <<
" cannot be started with root priviledges!!!";
79 QCoreApplication app(argc, argv);
82 TRACE() <<
"Type of plugin is not specified";
86 QString type = app.arguments().at(1);
TRACE() << type;
88 fcntl(fileno(stdin), F_SETFL, fcntl(fileno(stdin), F_GETFL, 0) | O_NONBLOCK);
95 fprintf(stdout,
"process started");
98 QObject::connect(
process, SIGNAL(processStopped()), &app, SLOT(quit()));