?? blueview.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 + -