Ejemplo n.º 1
0
CSplashView *CSplashView::NewLC()
{
  CSplashView *self = new(ELeave)CSplashView();
  CleanupStack::PushL(self);
  self->ConstructL();
  return self;
}
Ejemplo n.º 2
0
class CSplashView* CSplashView::NewLC(CWayFinderAppUi* aWayfinderUI, 
                                      isab::Log* aLog)
{
   CSplashView* self = new (ELeave) CSplashView(aLog);
   CleanupStack::PushL(self);
   self->ConstructL(aWayfinderUI);
   return self;
}
Ejemplo n.º 3
0
void CMpAppUi::ConstructL()
{
	BaseConstructL();

	//// Initialize graphics
	//iSpriteHandler = CSpriteHandler::NewL();

	CView1* view1 = new (ELeave) CView1;

	CleanupStack::PushL( view1 );
	view1->ConstructL();
	AddViewL( view1 );      // transfer ownership to CAknViewAppUi
	CleanupStack::Pop();    // view1

	CView2* view2 = new (ELeave) CView2;

	CleanupStack::PushL( view2 );
	view2->ConstructL();
	AddViewL( view2 );
	CleanupStack::Pop(); 

	CView3* view3 = new (ELeave) CView3;

	CleanupStack::PushL( view3 );
	view3->ConstructL();
	AddViewL( view3 );
	CleanupStack::Pop(); 

	CView4* view4 = new (ELeave) CView4;

	CleanupStack::PushL( view4 );
	view4->ConstructL();
	AddViewL( view4 );
	CleanupStack::Pop(); 

	CSplashView* splash = new (ELeave) CSplashView;

	CleanupStack::PushL( splash );
	splash->ConstructL();
	AddViewL( splash );     
	CleanupStack::Pop();  

	//SetDefaultViewL(*view1);
	SetDefaultViewL(*splash);

	// Initialize graphics
	iSpriteHandler = CSpriteHandler::NewL();
}