diff -r 08cc4cc059d4 -r 59ea2209bb67 ImagePrint/ImagePrintUI/imageprintapp/src/cimgpviewemptyview.cpp --- a/ImagePrint/ImagePrintUI/imageprintapp/src/cimgpviewemptyview.cpp Fri Jun 11 16:24:10 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,113 +0,0 @@ -/* -* Copyright (c) 2004-2007 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#include -#include -#include -#include -#include -#include -#include - -#include "cimgpviewemptyview.h" -#include "cimageprintappui.h" -#include "cimageprintblankcontainer.h" - -// CONSTRUCTION -CIMGPViewEmptyView* CIMGPViewEmptyView::NewL() - { - CIMGPViewEmptyView* self = new (ELeave) CIMGPViewEmptyView; - CleanupStack::PushL( self ); - self->ConstructL(); - CleanupStack::Pop( self ); - return self; - } - -// Default constructor -CIMGPViewEmptyView::CIMGPViewEmptyView() - { - } - -// 2nd phase constructor -void CIMGPViewEmptyView::ConstructL() - { - BaseConstructL( R_EMPTY_VIEW ); - } - -// Destructor -CIMGPViewEmptyView::~CIMGPViewEmptyView() - { - if ( iContainer ) - { - AppUi()->RemoveFromViewStack( *this, iContainer ); - delete iContainer; - } - } - -// Returns view's ID -TUid CIMGPViewEmptyView::Id() const - { - return KIMGPViewEmptyViewId; - } - -// Handles view commands -void CIMGPViewEmptyView::HandleCommandL( - TInt /*aCommand*/ ) - { - AppUi()->HandleCommandL( EAknCmdExit ); - } - -// Activates the view, creates the container and other UI controls -void CIMGPViewEmptyView::DoActivateL( - const TVwsViewId& /*aPrevViewId*/, - TUid /*aCustomMessageId*/, - const TDesC8& /*aCustomMessage*/) - { - TRect rect( AppUi()->ClientRect() ); - iContainer = CImagePrintBlankContainer::NewL(rect); - iContainer->SetMopParent( this ); - AppUi()->AddToStackL( *this, iContainer ); - } - -// Deactivates the view, deletes print container -void CIMGPViewEmptyView::DoDeactivate() - { - if ( iContainer ) - { - AppUi()->RemoveFromViewStack( *this, iContainer ); - delete iContainer; - iContainer = 0; - } - } - - -void CIMGPViewEmptyView::SizeChanged() - { - //No Implementetion needed - } - - -void CIMGPViewEmptyView::HandleForegroundEventL( TBool aForeground ) - { - if ( aForeground ) - { - ViewScreenDeviceChangedL(); - } - } - -// End of File