/*
============================================================================
Name : TestNoteAppUi.cpp
Author : Lion
Copyright : Your copyright notice
Description : CTestNoteAppUi implementation
============================================================================
*/
// INCLUDE FILES
#include <avkon.hrh>
#include <aknnotewrappers.h>
#include <stringloader.h>
#include <TestNote.rsg>
#include <f32file.h>
#include <s32file.h>
#include "TestNote.pan"
#include "TestNoteAppUi.h"
#include "TestNoteAppView.h"
#include "TestNote.hrh"
_LIT( KFileName, "C:\\private\\07AF2204\\TestNote.txt" );
_LIT( KText, "Hello World!");
// ============================ MEMBER FUNCTIONS ===============================
// -----------------------------------------------------------------------------
// CTestNoteAppUi::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CTestNoteAppUi::ConstructL()
{
// Initialise app UI with standard value.
BaseConstructL();
// Create view object
iAppView = CTestNoteAppView::NewL( ClientRect() );
}
// -----------------------------------------------------------------------------
// CTestNoteAppUi::CTestNoteAppUi()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CTestNoteAppUi::CTestNoteAppUi()
{
// No implementation required
}
// -----------------------------------------------------------------------------
// CTestNoteAppUi::~CTestNoteAppUi()
// Destructor.
// -----------------------------------------------------------------------------
//
CTestNoteAppUi::~CTestNoteAppUi()
{
if ( iAppView )
{
delete iAppView;
iAppView = NULL;
}
}
// -----------------------------------------------------------------------------
// CTestNoteAppUi::HandleCommandL()
// Takes care of command handling.
// -----------------------------------------------------------------------------
//
void CTestNoteAppUi::HandleCommandL( TInt aCommand )
{
switch( aCommand )
{
case EEikCmdExit:
case EAknSoftkeyExit:
Exit();
break;
case ECommand1:
{
CAknConfirmationNote* note = new (ELeave) CAknConfirmationNote;
note->ExecuteLD(_L("Confirmation Note"));
}
break;
case ECommand2:
{
CAknInformationNote* note = new (ELeave) CAknInformationNote;
note->ExecuteLD(_L("Information Note"));
}
break;
case ECommand3:
{
CAknWarningNote* note = new (ELeave) CAknWarningNote;
note->ExecuteLD(_L("Information Note"));
}
break;
case ECommand4:
{
CAknErrorNote* note = new (ELeave) CAknErrorNote;
note->ExecuteLD(_L("Information Note"));
}
break;
default:
Panic( ETestNoteUi );
break;
}
}
// -----------------------------------------------------------------------------
// Called by the framework when the application status pane
// size is changed. Passes the new client rectangle to the
// AppView
// -----------------------------------------------------------------------------
//
void CTestNoteAppUi::HandleStatusPaneSizeChange()
{
iAppView->SetRect( ClientRect() );
}
// End of File
没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐
收起资源包目录
TestNote.rar (49个子文件)
TestNote
.generated
winscw_uid.cpp 252B
.project 804B
sis
TestNote.pkg 1KB
backup_registration.xml 144B
.settings
org.eclipse.cdt.managedbuilder.core.prefs 3KB
inc
TestNote.pan 660B
TestNoteDocument.h 3KB
TestNoteApplication.h 1KB
TestNoteAppView.h 2KB
TestNoteAppUi.h 2KB
TestNote.hrh 647B
S60 3.0 Emulator Debug
.generated
subdir.mk 3KB
winscw_uid.o 3KB
winscw_uid.d 461B
sis
TestNote.pkg 1KB
TestNote.inc 535KB
objects.mk 351B
TestNoteAppUi.inc 1.95MB
TestNoteApplication.inc 540KB
makefile 2KB
winscw_uid.inc 163KB
src
TestNoteAppView.o 36KB
TestNoteAppUi.d 777B
TestNoteDocument.d 640B
subdir.mk 12KB
TestNote.o 19KB
TestNoteApplication.o 12KB
TestNoteAppView.d 547B
TestNoteAppUi.o 410KB
TestNoteDocument.o 44KB
TestNoteApplication.d 645B
TestNote.d 518B
TestNoteDocument.inc 1.12MB
sources.mk 1010B
gfx
subdir.mk 1KB
data
subdir.mk 2KB
TestNoteAppView.inc 771KB
src
TestNoteApplication.cpp 1KB
TestNoteAppView.cpp 3KB
TestNote.cpp 547B
TestNoteAppUi.cpp 3KB
TestNoteDocument.cpp 3KB
.cdtbuild 12KB
gfx
qgn_menu_TestNote.svg 4KB
TestNote.mifdef 31B
data
TestNote_reg.rss 718B
TestNote.rls 991B
TestNote.rss 4KB
.cdtproject 906B
共 49 条
- 1
sijialogin
- 粉丝: 3
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 论文(最终)_20240430235101.pdf
- 基于python编写的Keras深度学习框架开发,利用卷积神经网络CNN,快速识别图片并进行分类
- 最全空间计量实证方法(空间杜宾模型和检验以及结果解释文档).txt
- 5uonly.apk
- 蓝桥杯Python组的历年真题
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 前端开发技术实验报告:内含4四实验&实验报告
- Highlight Plus v20.0.1
- 林周瑜-论文.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0