browserui/browser/BrowserAppSrc/BrowserAppServer.cpp
changeset 0 84ad3b177aa3
equal deleted inserted replaced
-1:000000000000 0:84ad3b177aa3
       
     1 /*
       
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *      Implementation of CBrowserAppServer
       
    16 *
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32std.h>
       
    23 #include "BrowserAppServer.h"
       
    24 #include "BrowserLauncherService.h"
       
    25 
       
    26 // -----------------------------------------------------------------------------
       
    27 // CBrowserAppServer::CreateServiceL()
       
    28 // -----------------------------------------------------------------------------
       
    29 //
       
    30 CApaAppServiceBase* CBrowserAppServer::CreateServiceL( TUid aServiceType ) const
       
    31     {
       
    32 
       
    33 	// Create the requested service object.
       
    34 	if ( aServiceType == TUid::Uid( 0x01010101 ) )
       
    35 		{
       
    36 		CBrowserLauncherService* service = new( ELeave ) CBrowserLauncherService;
       
    37 		CleanupStack::PushL( service );
       
    38 		service->ConstructL( );
       
    39 		CleanupStack::Pop( service );
       
    40 		return service;
       
    41 		}
       
    42 	else
       
    43 		{
       
    44 		return CAknAppServer::CreateServiceL( aServiceType );
       
    45 		}
       
    46 
       
    47     }
       
    48 
       
    49 // -----------------------------------------------------------------------------
       
    50 // CBrowserAppServer::ConstructL()
       
    51 // -----------------------------------------------------------------------------
       
    52 //
       
    53 void CBrowserAppServer::ConstructL( const TDesC& aFixedServerName )
       
    54     {
       
    55     CAknAppServer::ConstructL( aFixedServerName );
       
    56     }
       
    57 
       
    58 // -----------------------------------------------------------------------------
       
    59 // CBrowserAppServer::CustomSecurityCheckL()
       
    60 // -----------------------------------------------------------------------------
       
    61 //
       
    62 CPolicyServer::TCustomResult CBrowserAppServer::CustomSecurityCheckL(const RMessage2& aMsg, TInt& aAction, TSecurityInfo& aMissing )
       
    63     {/*
       
    64     switch (aMsg.Function())
       
    65         {
       
    66         case RLauncherClientService::EMessageId:
       
    67             return aMsg.HasCapability(iClientReqs) ? CPolicyServer::EPass : CPolicyServer::EFail;
       
    68         break;
       
    69 
       
    70         default:
       
    71             return CApaAppServer::CustomSecurityCheckL (aMsg, aAction, aMissing);
       
    72         break;
       
    73         }*/
       
    74     return CApaAppServer::CustomSecurityCheckL (aMsg, aAction, aMissing);
       
    75     }
       
    76 
       
    77 // -----------------------------------------------------------------------------
       
    78 // CBrowserAppServer::CustomFailureActionL()
       
    79 // -----------------------------------------------------------------------------
       
    80 //
       
    81 CPolicyServer::TCustomResult CBrowserAppServer::CustomFailureActionL(const RMessage2& aMsg, TInt /*aAction*/, const TSecurityInfo& /*aMissing*/)
       
    82     {/*
       
    83     switch (aMsg.Function())
       
    84         {
       
    85         case RLauncherClient::EMessageId:
       
    86             return aMsg.HasCapability(iClientReqs) ? CPolicyServer::EPass : CPolicyServer::EFail;
       
    87         break;
       
    88 
       
    89         default:
       
    90             return CApaAppServiceBase::CustomFailureActionL (aMsg, aAction, aMissing);
       
    91         break;
       
    92         }*/
       
    93     //Dummy return, because CustomFailureActionL is not implemented.
       
    94     return aMsg.HasCapability(iClientReqs) ? CPolicyServer::EPass : CPolicyServer::EFail;
       
    95     }