[yast-commit] r55380 - /trunk/core/dbus/SCR_service/DBusServer.cc
Author: kkaempf Date: Tue Feb 10 12:43:12 2009 New Revision: 55380 URL: http://svn.opensuse.org/viewcvs/yast?rev=55380&view=rev Log: more comments Modified: trunk/core/dbus/SCR_service/DBusServer.cc Modified: trunk/core/dbus/SCR_service/DBusServer.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/dbus/SCR_service/DBusServer.cc?rev=55380&r1=55379&r2=55380&view=diff ============================================================================== --- trunk/core/dbus/SCR_service/DBusServer.cc (original) +++ trunk/core/dbus/SCR_service/DBusServer.cc Tue Feb 10 12:43:12 2009 @@ -48,13 +48,13 @@ } +// connect to DBus, request a service name bool DBusServer::connect() { - // connect to DBus, request a service name return connection.connect(DBUS_BUS_SYSTEM, YAST_SCR_SERVICE); } -// set idle timer +// reset idle timer void DBusServer::resetTimer() { ::alarm(TIMEOUT); @@ -71,6 +71,7 @@ } } +// register signal handler for idle timeout void DBusServer::registerSignalHandler() { struct sigaction new_action, old_action; @@ -86,10 +87,10 @@ } } +// check if clients are still running, +// remove finished clients bool DBusServer::canFinish() { - // check if clients are still running, - // remove finished clients for(Clients::iterator it = clients.begin(); it != clients.end();) { @@ -432,6 +433,7 @@ } #ifdef HAVE_POLKIT +// check if action is allowed by PolicyKit bool DBusServer::isActionAllowed(const std::string &caller, const std::string &path, const std::string &method, const std::string &arg, const std::string &opt) { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
kkaempf@svn.opensuse.org