⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 blueview.cpp

📁 一个简单的手机读写文件的例子。可以让你轻松学会在SYMBIAN中如何读写文件。
💻 CPP
字号:
/* Copyright (c) 2007, Nokia. All rights reserved */
#include <akncontext.h> 
#include "ParkingAppUi.h"
#include "BlueView.h"
#include "BlueContainer.h"
#include "Parking.hrh"
#include "Parking.rsg"
#include <parking.mbg>

CBlueView* CBlueView::NewL(MBlueNotify& aNotify)
{
    CBlueView* self = NewLC(aNotify);
    CleanupStack::Pop(self);
    return self;
}
CBlueView* CBlueView::NewLC(MBlueNotify& aNotify)
{
    CBlueView* self = new (ELeave) CBlueView(aNotify);
    CleanupStack::PushL(self);
    self->ConstructL();
    return self;
}

void CBlueView::ConstructL()
{
	BaseConstructL();
}

CBlueView::CBlueView(MBlueNotify& aNotify)
:m_BlueNotify(aNotify)
{
	m_pAppContainer = NULL;
}


CBlueView::~CBlueView()
{
}

TUid CBlueView::Id() const
{
	return TUid::Uid(2);
}

void CBlueView::HandleCommandL(TInt aCommand)
{
	m_BlueNotify.BlueNotify(100);
	//AppUi()->HandleCommandL(aCommand);
}

void CBlueView::HandleClientRectChange()
{

}

void CBlueView::DoActivateL(const TVwsViewId&, TUid, const TDesC8&)
{
	m_pAppContainer = new( ELeave ) CBlueContainer();
	m_pAppContainer->SetMopParent(this);
	m_pAppContainer->ConstructL( ClientRect() );	
	AppUi()->AddToStackL( *this, m_pAppContainer );

	CEikStatusPane* sp=iEikonEnv->AppUiFactory()->StatusPane();
	//Set view icon
	CAknContextPane* contextPane = (CAknContextPane*) sp->ControlL(TUid::Uid(EEikStatusPaneUidContext));
	CFbsBitmap* bitmap = iEikonEnv->CreateBitmapL(_L("\\system\\apps\\PARKING\\Parking.mbm"), EMbmParkingWmpnss_32x32_i);
	contextPane->SetPicture(bitmap);

}

void CBlueView::DoDeactivate()
{
	if(m_pAppContainer)
	{
		AppUi()->RemoveFromStack( m_pAppContainer );
		delete m_pAppContainer;
		m_pAppContainer = NULL;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -