diff -r 95243422089a -r 491b3ed49290 filemanager/src/fmbkupengine/src/CMMCScBkupStateNotifyAllSnapshotsSupplied.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/filemanager/src/fmbkupengine/src/CMMCScBkupStateNotifyAllSnapshotsSupplied.cpp Tue Aug 31 15:06:05 2010 +0300 @@ -0,0 +1,109 @@ +/* +* Copyright (c) 2005 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: CMMCScBkupStateNotifyAllSnapshotsSupplied implementation +* +* +*/ + +#include "CMMCScBkupStateNotifyAllSnapshotsSupplied.h" + +// System includes +#include + +// User includes +#include "MMCScBkupLogger.h" + + + + +// ========================= MEMBER FUNCTIONS ================================ + +// --------------------------------------------------------------------------- +// CMMCScBkupStateNotifyAllSnapshotsSupplied::CMMCScBkupStateNotifyAllSnapshotsSupplied() +// +// C++ constructor. +// --------------------------------------------------------------------------- +CMMCScBkupStateNotifyAllSnapshotsSupplied::CMMCScBkupStateNotifyAllSnapshotsSupplied( MMMCScBkupDriver& aDriver ) +: CMMCScBkupState( aDriver ) + { + __LOG1("CMMCScBkupStateNotifyAllSnapshotsSupplied::CMMCScBkupStateNotifyAllSnapshotsSupplied() - 0x%08x", StateId().iUid ); + } + + +// --------------------------------------------------------------------------- +// CMMCScBkupStateNotifyAllSnapshotsSupplied::NewL() +// +// Destructor. +// --------------------------------------------------------------------------- +CMMCScBkupStateNotifyAllSnapshotsSupplied* CMMCScBkupStateNotifyAllSnapshotsSupplied::NewL( MMMCScBkupDriver& aDriver ) + { + CMMCScBkupStateNotifyAllSnapshotsSupplied* self = new(ELeave) CMMCScBkupStateNotifyAllSnapshotsSupplied( aDriver); + return self; + } + + +// --------------------------------------------------------------------------- +// CMMCScBkupStateNotifyAllSnapshotsSupplied::StateId() +// +// +// --------------------------------------------------------------------------- +TMMCScBkupStateId CMMCScBkupStateNotifyAllSnapshotsSupplied::StateId() const + { + return KMMCScBkupStateIdNotifyAllSnapshotsSupplied; + } + + +// --------------------------------------------------------------------------- +// CMMCScBkupStateNotifyAllSnapshotsSupplied::NextStateId() +// +// +// --------------------------------------------------------------------------- +TMMCScBkupStateId CMMCScBkupStateNotifyAllSnapshotsSupplied::NextStateId() const + { + TMMCScBkupStateId nextState = KMMCScBkupStateIdRequestSizeOfBackupData; + // + const TMMCScBkupOperationType type = Driver().DrvOperation(); + switch(type) + { + case EMMCScBkupOperationTypeFullBackup: + nextState = KMMCScBkupStateIdRequestSizeOfBackupData; + break; + case EMMCScBkupOperationTypeFullRestore: + nextState = KMMCScBkupStateIdArchiveOpSystemData; + break; + default: + ASSERT( EFalse ); + break; + } + // + return nextState; + } + + +// --------------------------------------------------------------------------- +// CMMCScBkupStateNotifyAllSnapshotsSupplied::PerformStateInitL() +// +// +// --------------------------------------------------------------------------- +void CMMCScBkupStateNotifyAllSnapshotsSupplied::PerformStateInitL() + { + Driver().DrvSecureBackupClient().AllSnapshotsSuppliedL(); + } + + + + + + +