svexserviceappserver.cpp
来自「symbian下读取服务的程序」· C++ 代码 · 共 39 行
CPP
39 行
// Copyright (c) 2006 Murray Read, All rights reserved
#include "SvexServiceAppServer.h"
#include "SvexServiceAppAppUi.h"
// The implementation of ServiceApp's session is to ask the
// app UI. The service UID is assumed to be for the Service Info Service
void CSvexServiceAppSession::ShowAllL(TUid /*aServiceUid*/)
{
AppUi()->ShowAllL();
}
void CSvexServiceAppSession::ShowAppL(TUid /*aServiceUid*/, TUid aAppUid)
{
AppUi()->ShowAppAndExitL(aAppUid);
}
CSvexServiceAppAppUi* CSvexServiceAppSession::AppUi()
{
return ((CSvexServiceAppServer*)Server())->AppUi();
}
CSvexServiceAppServer::CSvexServiceAppServer()
{
}
// ServiceApp's server just creates the session when asked.
CSvexServiceInfoSession* CSvexServiceAppServer::CreateServiceInfoServiceL() const
{
if (!iAppUi)
iAppUi = ((CSvexServiceAppAppUi*)CEikonEnv::Static()->EikAppUi());
CSvexServiceAppSession* session = new(ELeave) CSvexServiceAppSession;
return session;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?