KDECore
Go to the documentation of this file.
28 #include <sys/types.h>
32 #include <QCoreApplication>
37 Q_DECLARE_METATYPE(QTimer*)
42 namespace HelperSupport
53 const char *home =
"HOME";
54 if(getenv(home)==NULL)
56 struct passwd *pw = getpwuid(getuid());
59 if (pw!=NULL) setenv(home, pw->pw_dir, overwrite);
70 openlog(
id, 0, LOG_USER);
73 if (!BackendsManager::helperProxy()->initHelper(QString::fromLatin1(
id))) {
74 syslog(LOG_DEBUG,
"Helper initialization failed");
81 BackendsManager::helperProxy()->setHelperResponder(responder);
83 QCoreApplication app(argc, argv);
85 QTimer *timer =
new QTimer(0);
86 responder->setProperty(
"__KAuth_Helper_Shutdown_Timer", QVariant::fromValue(timer));
87 timer->setInterval(10000);
89 QObject::connect(timer, SIGNAL(
timeout()), &app, SLOT(quit()));
98 int level = LOG_DEBUG;
111 syslog(level,
"%s", msg);
113 BackendsManager::helperProxy()->sendDebugMessage(type, msg);
117 if (type == QtFatalMsg) {
124 BackendsManager::helperProxy()->sendProgressStep(step);
129 BackendsManager::helperProxy()->sendProgressStep(data);
134 return BackendsManager::helperProxy()->hasToStopAction();
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Thu Sep 25 2014 04:18:42 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.