const char* title, const char* content, const char* icon_path, bundle* app_control);
/**
- * @brief Sets the DBus method that will be called when the job's execution criteria is satisfied.
+ * @brief Sets the system DBus method that will be called when the job's execution criteria is satisfied.
* @param[in] job Job handle
* @param[in] bus_name DBus destination
* @param[in] object_path DBus object path
JobDBusCall* action = static_cast<JobDBusCall*>(getJobInfo()->getAction());
bool success = false;
- if (getUid() == SYSTEM_UID) {
- _D("Call %s.%s", action->getInterface().c_str(), action->getMethodName().c_str());
- success = IPC::dbusCall(action->getBusName(), action->getObjectPath(),
- action->getInterface(), action->getMethodName(), action->getParameters());
- } else {
- _D("Call %s.%s of %u", action->getInterface().c_str(), action->getMethodName().c_str(), static_cast<unsigned>(getUid()));
- _W("Not supported yet");
-
- //TODO: Delegate to the agent daemon
- }
+ _D("Call %s.%s", action->getInterface().c_str(), action->getMethodName().c_str());
+ success = IPC::dbusCall(action->getBusName(), action->getObjectPath(),
+ action->getInterface(), action->getMethodName(), action->getParameters());
IF_FAIL_VOID_TAG(success, _E, "DBus call failed");
}