*/
int GetClientId(void) const;
- /**
- * Returns the process id of the client which sent a request message.
- *
- * @return The process id of the IPC client.
- * @remark This can be called only in a message handler.
- */
int GetClientProcessId(void) const;
- /**
- * Returns the package id of the client which sent a request message.
- *
- * @return The package id of the IPC client.
- * @remark This can be called only in a message handler.
- */
Tizen::Base::String GetClientAppId(void) const;
+ Tizen::Base::String GetClientAppExecutableName(void) const;
+
/**
- * Returns the executable name of the client which sent a request message.
+ * Returns the package id of the client which sent a request message.
*
- * @return The executable name of the IPC client.
+ * @return The package id of the IPC client.
* @remark This can be called only in a message handler.
*/
- Tizen::Base::String GetClientAppExecutableName(void) const;
+ Tizen::App::PackageId GetClientPackageId(void) const;
/**
* Returns the application id of the client which sent a request message.
return nullString;
}
+PackageId
+_IpcServer::GetClientPackageId(void) const
+{
+ static String nullString;
+
+ if (__pCurrentClientInfo)
+ {
+ return __pCurrentClientInfo->pkgId;
+ }
+
+ return nullString;
+}
+
AppId
_IpcServer::GetClientApplicationId(void) const
{