//
-// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the License);
result
AppControl::Stop(void)
{
+ result r = _AccessController::CheckUserPrivilege(_PRV_APPLICATION_LAUNCH);
+ SysTryReturnResult(NID_APP, !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+
SysAssertf(__pAppControlImpl != null, "Instance is not constructed properly.");
return __pAppControlImpl->Stop();
}