00001 /* 00002 * ============================================================================ 00003 * Name : CTxtViewerAppServer 00004 * Part of : TxtViewer 00005 * 00006 * Description: 00007 * Provides CTxtViewerAppServer class methods. 00008 * 00009 * Version: 00010 * 00011 * Copyright (C) 2002 Nokia Corporation. 00012 * This material, including documentation and any related 00013 * computer programs, is protected by copyright controlled by 00014 * Nokia Corporation. All rights are reserved. Copying, 00015 * including reproducing, storing, adapting or translating, any 00016 * or all of this material requires the prior written consent of 00017 * Nokia Corporation. This material also contains confidential 00018 * information which may not be disclosed to others without the 00019 * prior written consent of Nokia Corporation. 00020 * 00021 * ============================================================================ 00022 */ 00023 00024 // INCLUDES 00025 #include "TxtViewerAppServer.h" 00026 #include "TxtViewerServiceSession.h" 00027 00028 #define KTxtViewerServiceUid 0x10FFFFFF 00029 00030 // Service types 00031 #define KMsgServiceView 0x00000001 00032 #define KMsgServiceEdit 0x00000002 00034 00035 00036 #include <aknserverapp.h> 00037 00038 00039 // ================= MEMBER FUNCTIONS ======================= 00040 // ----------------------------------------------------------------------------- 00041 // CTxtViewerAppServer::CreateServiceL 00042 // 00043 // ----------------------------------------------------------------------------- 00044 // 00045 CApaAppServiceBase* CTxtViewerAppServer::CreateServiceL( TUid aServiceType ) const 00046 { 00047 if (aServiceType == TUid::Uid(KTxtViewerServiceUid)) 00048 { 00049 return new(ELeave) CTxtViewerServiceSession; 00050 } 00051 return CEikAppServer::CreateServiceL(aServiceType); 00052 } 00053 // ----------------------------------------------------------------------------- 00054 // CTxtViewerAppServer::CreateServiceL 00055 // 00056 // ----------------------------------------------------------------------------- 00057 // 00058 00059 CPolicyServer::TCustomResult CTxtViewerAppServer::CustomFailureActionL( 00060 const RMessage2& /*aMsg*/, 00061 TInt /*aAction*/, 00062 const TSecurityInfo& /*aMissing*/ ) 00063 { 00064 CPolicyServer::TCustomResult res = CPolicyServer::EPass; 00065 return res; 00066 } 00067 00068 // End of File