email/mail/ViewerSrc/MsgMailViewerAppServer.cpp
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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 "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:  App server
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include "MsgMailViewerAppServer.h"
       
    22 #include <MuiuMsgEditorServiceSession.h>
       
    23 #include <MuiuMsgEditorServiceConst.h>
       
    24 
       
    25 
       
    26 // ============================ MEMBER FUNCTIONS ===============================
       
    27 
       
    28 // -----------------------------------------------------------------------------
       
    29 // CMsgMailViewerAppServer::CreateServiceL
       
    30 // -----------------------------------------------------------------------------
       
    31 //
       
    32 CApaAppServiceBase* CMsgMailViewerAppServer::CreateServiceL(
       
    33 	TUid aServiceType ) const
       
    34     {    
       
    35    	if (aServiceType == TUid::Uid(KMuiuMsgEditorServiceUid))
       
    36    		{
       
    37    		return new(ELeave) CMuiuMsgEditorServiceSession;
       
    38    		}
       
    39 	else
       
    40 		{
       
    41 		return CAknAppServer::CreateServiceL( aServiceType );	
       
    42 		}	
       
    43     }
       
    44 
       
    45 // -----------------------------------------------------------------------------
       
    46 // CMsgMailViewerAppServer::CustomFailureActionL
       
    47 // -----------------------------------------------------------------------------
       
    48 //
       
    49 CPolicyServer::TCustomResult CMsgMailViewerAppServer::CustomFailureActionL(
       
    50 	const RMessage2& /*aMsg*/, 
       
    51 	TInt /*aAction*/, 
       
    52 	const TSecurityInfo& /*aMissing*/)
       
    53     {
       
    54     CPolicyServer::TCustomResult res = EPass;
       
    55     return res;
       
    56     }
       
    57     
       
    58 // Destructor
       
    59 CMsgMailViewerAppServer::~CMsgMailViewerAppServer()
       
    60     {   
       
    61     }
       
    62 
       
    63 
       
    64 
       
    65 //  End of File