📄 myxmlparseview3.cpp
字号:
/*
* ============================================================================
* Name : CMyXMLParseView2 from MyXMLParseView2.h
* Part of : MyXMLParse
* Created : 22.05.2008 by
* Implementation notes:
* Initial content was generated by Series 60 Application Wizard.
* Version :
* Copyright:
* ============================================================================
*/
// INCLUDE FILES
#include <aknviewappui.h>
#include <avkon.hrh>
#include <MyXMLParse.rsg>
#include "MyXMLParseView3.h"
#include "MyXMLParseContainer3.h"
#include <charconv.h>//// for char set convert GBK - Unicode
#include "Myxmlparse.hrh"
#include <eikmenup.h>
#include <eikenv.h>///iEikonEnv
#include <AknQueryDialog.h> //弹出对话框
#include <f32file.h >//文件
#include <aknnotewrappers.h>//非阻塞对话框
#include "MyXMLParseAppUi.h"
#include "s32file.h"//for readstream
// ================= MEMBER FUNCTIONS =======================
// ---------------------------------------------------------
// CMyXMLParseView2::ConstructL(const TRect& aRect)
// EPOC two-phased constructor
// ---------------------------------------------------------
//
void CMyXMLParseView3::ConstructL()
{
BaseConstructL( R_MYXMLPARSE_VIEW3 );
}
// ---------------------------------------------------------
// CMyXMLParseView2::~CMyXMLParseView2()
// destructor
// ---------------------------------------------------------
//
CMyXMLParseView3::~CMyXMLParseView3()
{
if ( iContainer )
{
AppUi()->RemoveFromViewStack( *this, iContainer );
}
delete iContainer;
}
// ---------------------------------------------------------
// TUid CMyXMLParseView2::Id()
//
// ---------------------------------------------------------
//
TUid CMyXMLParseView3::Id() const
{
return KView3Id;
}
// ---------------------------------------------------------
// CMyXMLParseView2::HandleCommandL(TInt aCommand)
// takes care of view command handling
// ---------------------------------------------------------
//
void CMyXMLParseView3::HandleCommandL(TInt aCommand)
{
switch ( aCommand )
{
case EAknSoftkeyOk:
{
iEikonEnv->InfoMsg( _L("view3 ok") );
break;
}
case EAknSoftkeyBack:
{
AppUi()->ActivateLocalViewL( TUid::Uid( EMultiViewsView1Id ) );
break;
}
default:
{
AppUi()->HandleCommandL( aCommand );
break;
}
}
}
// ---------------------------------------------------------
// CMyXMLParseView2::HandleClientRectChange()
// ---------------------------------------------------------
//
void CMyXMLParseView3::HandleClientRectChange()
{
if ( iContainer )
{
iContainer->SetRect( ClientRect() );
}
}
// ---------------------------------------------------------
// CMyXMLParseView2::DoActivateL(...)
//
// ---------------------------------------------------------
//
void CMyXMLParseView3::DoActivateL(
const TVwsViewId& /*aPrevViewId*/,TUid /*aCustomMessageId*/,
const TDesC8& /*aCustomMessage*/)
{
if (!iContainer)
{
iContainer = new (ELeave) CMyXMLParseContainer3;
iContainer->SetMopParent(this);
iContainer->ConstructL( ClientRect() );
AppUi()->AddToStackL( *this, iContainer );
}
}
// ---------------------------------------------------------
// CMyXMLParseView2::DoDeactivate()
//
// ---------------------------------------------------------
//
void CMyXMLParseView3::DoDeactivate()
{
if ( iContainer )
{
AppUi()->RemoveFromViewStack( *this, iContainer );
}
delete iContainer;
iContainer = NULL;
}
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -