📄 txtviewerappserver.cpp
字号:
/*
* ============================================================================
* Name : CTxtViewerAppServer
* Part of : TxtViewer
*
* Description:
* Provides CTxtViewerAppServer class methods.
*
* Version:
*
* Copyright (C) 2002 Nokia Corporation.
* This material, including documentation and any related
* computer programs, is protected by copyright controlled by
* Nokia Corporation. All rights are reserved. Copying,
* including reproducing, storing, adapting or translating, any
* or all of this material requires the prior written consent of
* Nokia Corporation. This material also contains confidential
* information which may not be disclosed to others without the
* prior written consent of Nokia Corporation.
*
* ============================================================================
*/
// INCLUDES
#include "TxtViewerAppServer.h"
#include "TxtViewerServiceSession.h"
#define KTxtViewerServiceUid 0x10FFFFFF
// Service types
#define KMsgServiceView 0x00000001
#define KMsgServiceEdit 0x00000002
//////////////////////////
#include <aknserverapp.h>
// ================= MEMBER FUNCTIONS =======================
// -----------------------------------------------------------------------------
// CTxtViewerAppServer::CreateServiceL
//
// -----------------------------------------------------------------------------
//
CApaAppServiceBase* CTxtViewerAppServer::CreateServiceL( TUid aServiceType ) const
{
if (aServiceType == TUid::Uid(KTxtViewerServiceUid))
{
return new(ELeave) CTxtViewerServiceSession;
}
return CEikAppServer::CreateServiceL(aServiceType);
}
// -----------------------------------------------------------------------------
// CTxtViewerAppServer::CreateServiceL
//
// -----------------------------------------------------------------------------
//
CPolicyServer::TCustomResult CTxtViewerAppServer::CustomFailureActionL(
const RMessage2& /*aMsg*/,
TInt /*aAction*/,
const TSecurityInfo& /*aMissing*/ )
{
CPolicyServer::TCustomResult res = CPolicyServer::EPass;
return res;
}
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -