#include <DBusServer.h>
Public Member Functions | |
| DBusServer () | |
| ~DBusServer () | |
| bool | connect () |
| void | run (bool forever=false) |
Private Types | |
| typedef std::map< std::string, pid_t > | Clients |
Private Member Functions | |
| DBusServer (const DBusServer &) | |
| DBusServer & | operator= (const DBusServer &) |
| void | resetTimer () |
| void | registerSignalHandler () |
| bool | isProcessRunning (pid_t pid) |
| bool | canFinish () |
| pid_t | callerPid (const std::string &bus_name) |
Private Attributes | |
| DBusConn | connection |
| ScriptingAgent * | sa |
| Clients | clients |
typedef std::map<std::string, pid_t> DBusServer::Clients [private] |
| DBusServer::DBusServer | ( | ) |
References sa.
| DBusServer::~DBusServer | ( | ) |
References sa.
| DBusServer::DBusServer | ( | const DBusServer & | ) | [private] |
| bool DBusServer::connect | ( | ) |
| void DBusServer::run | ( | bool | forever = false |
) |
Runs the server
| forever | for debugging, disables exiting after timeout |
References DBusMsg::addString(), DBusMsg::addYCPValue(), callerPid(), canFinish(), clients, connection, DBusMsg::createError(), DBusMsg::createReply(), ScriptingAgent::Dir(), DBusMsg::empty(), ScriptingAgent::Error(), ScriptingAgent::Execute(), finish, DBusConn::flush(), YCPElement::isNull(), ScriptingAgent::Read(), DBusConn::receive(), ScriptingAgent::RegisterAgent(), ScriptingAgent::RegisterNewAgents(), registerSignalHandler(), resetTimer(), sa, DBusConn::send(), DBusConn::setTimeout(), ScriptingAgent::UnmountAgent(), ScriptingAgent::UnregisterAgent(), ScriptingAgent::UnregisterAllAgents(), ScriptingAgent::Write(), y2debug, y2error, y2internal, y2milestone, and y2warning.
Referenced by main().
| DBusServer& DBusServer::operator= | ( | const DBusServer & | ) | [private] |
| void DBusServer::resetTimer | ( | ) | [private] |
Referenced by run().
| void DBusServer::registerSignalHandler | ( | ) | [private] |
| bool DBusServer::isProcessRunning | ( | pid_t | pid | ) | [private] |
| bool DBusServer::canFinish | ( | ) | [private] |
| pid_t DBusServer::callerPid | ( | const std::string & | bus_name | ) | [private] |
References DBusMsg::addString(), DBusConn::call(), connection, DBusMsg::createCall(), y2debug, y2internal, and y2milestone.
Referenced by run().
DBusConn DBusServer::connection [private] |
Referenced by callerPid(), connect(), and run().
ScriptingAgent* DBusServer::sa [private] |
Referenced by DBusServer(), run(), and ~DBusServer().
Clients DBusServer::clients [private] |
Referenced by canFinish(), and run().
1.5.6