omadrm/drmengine/agentv2/src/Oma2AgentManager.cpp
changeset 42 a7bc3704293e
parent 23 493788a4a8a4
equal deleted inserted replaced
38:9dfde139acda 42:a7bc3704293e
     1 /*
     1 /*
     2 * Copyright (c) 2005 - 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2005 - 2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   970 // COma2AgentManager::DisplayManagementInfoL
   970 // COma2AgentManager::DisplayManagementInfoL
   971 // -----------------------------------------------------------------------------
   971 // -----------------------------------------------------------------------------
   972 //
   972 //
   973 void COma2AgentManager::DisplayManagementInfoL()
   973 void COma2AgentManager::DisplayManagementInfoL()
   974     {
   974     {
   975     TUid KRightsManagerUid = TUid::Uid(0x101F85C7);
   975     User::Leave(KErrCANotSupported);
   976     RWsSession wsSession;
   976   	}
   977     RApaLsSession appArcSession;
       
   978     TThreadId id;
       
   979 
       
   980     User::LeaveIfError(wsSession.Connect());
       
   981     CleanupClosePushL(wsSession);
       
   982     TApaTaskList tasklist(wsSession);
       
   983     TApaTask task = tasklist.FindApp(KRightsManagerUid);
       
   984     if (task.Exists())
       
   985         {
       
   986         task.SendMessage(TUid::Uid(KUidApaMessageSwitchOpenFileValue),
       
   987             KNullDesC8);
       
   988         }
       
   989     else
       
   990         {
       
   991         User::LeaveIfError(appArcSession.Connect());
       
   992         appArcSession.StartDocument(_L("0"), KRightsManagerUid, id);
       
   993         appArcSession.Close();
       
   994         }
       
   995     CleanupStack::PopAndDestroy();
       
   996     }
       
   997 
   977 
   998 //  End of File
   978 //  End of File