-const _AppControlRegistry::_AppControlAliasEntry*
-_AppControlRegistry::GetReverseAppControlAliasEntry(const String& aId, const String& oId) const
-{
- std::unique_ptr< IMapEnumeratorT<String, _AppControlAliasEntry*> > pEnum(__aliasList.GetMapEnumeratorN());
-
- while (pEnum->MoveNext() == E_SUCCESS)
- {
- _AppControlAliasEntry* pEntry = null;
- pEnum->GetValue(pEntry);
- if (pEntry->provider2 == aId && pEntry->operation2 == oId)
- {
- SysLog(NID_APP, "Found matching AppControl (%ls, %ls)<-(%ls, %ls)", aId.GetPointer(), oId.GetPointer(), pEntry->provider.GetPointer(), pEntry->operation.GetPointer());
-
- return pEntry;
- }
- }
-
- return null;
-}
-
-
-const _AppControlRegistry::_AppControlAliasEntry*
-_AppControlRegistry::GetReverseRuntimeAliasEntry(const String& aId, const String& oId) const
-{
- std::unique_ptr< IEnumeratorT<_AppControlAliasEntry*> > pEnum(__runtimeAlias.GetEnumeratorN());
-
- while (pEnum->MoveNext() == E_SUCCESS)
- {
- _AppControlAliasEntry* pEntry = null;
- pEnum->GetCurrent(pEntry);
- if (pEntry->provider2 == aId && pEntry->operation2 == oId)
- {
- SysLog(NID_APP, "Found matching AppControl (%ls, %ls)->(%ls, %ls)", aId.GetPointer(), oId.GetPointer(), pEntry->provider2.GetPointer(), pEntry->operation2.GetPointer());
-
- return pEntry;
- }
- }
-
- return null;
-}
-
-
-AppControl*
-_AppControlRegistry::GetAppControlN(const String& appId, const String& operationId) const
-{
- bool changeAppId = false;
-
- String actualAppId = appId;
- if (appId.StartsWith(TIZEN_ALIAS_APPID_PREFIX, 0))
- {
- const String& tmp = GetAliasAppId(appId);
-
- if (!tmp.IsEmpty())
- {
- actualAppId = tmp;
- SysLog(NID_APP, "Found alias app (%ls -> %ls).", appId.GetPointer(), tmp.GetPointer());
-
- changeAppId = true;
- }
- }
-
- bool b = _Aul::IsInstalled(actualAppId);
- SysTryReturn(NID_APP, b == true, null, E_APP_NOT_INSTALLED, "[E_APP_NOT_INSTALLED] %ls not installed.", actualAppId.GetPointer());
-
- return _AppControlImpl::CreateN(actualAppId, operationId, changeAppId);
-}
-
-