sl@0: // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // The stub classes for testing the CRegistrar class sl@0: // sl@0: // sl@0: sl@0: #include "Discoverer.h" sl@0: #include "BackupNotifier.h" sl@0: #include "RegistryData.h" sl@0: sl@0: //****************************************** sl@0: // CDiscoverer Stubs sl@0: //****************************************** sl@0: CDiscoverer* CDiscoverer::NewL(MDiscovererObserver& aDiscovererObserver, RFs& aFs) sl@0: { sl@0: return new(ELeave) CDiscoverer(aDiscovererObserver, aFs); sl@0: } sl@0: sl@0: CDiscoverer::CDiscoverer(MDiscovererObserver& aDiscovererObserver, RFs& aFs) : sl@0: CBase(), sl@0: iDiscovererObserver(aDiscovererObserver), sl@0: iFs(aFs) sl@0: { sl@0: } sl@0: sl@0: CDiscoverer::~CDiscoverer() sl@0: { sl@0: } sl@0: sl@0: TInt CDiscoverer::Suspend() sl@0: { sl@0: return KErrNone; sl@0: } sl@0: sl@0: TInt CDiscoverer::Resume() sl@0: { sl@0: return KErrNone; sl@0: } sl@0: sl@0: //****************************************** sl@0: // CBackupNotifier Stubs sl@0: //****************************************** sl@0: CBackupNotifier* CBackupNotifier::NewL(MBackupNotifierObserver& aObserver) sl@0: { sl@0: return new(ELeave) CBackupNotifier(aObserver); sl@0: } sl@0: sl@0: CBackupNotifier::CBackupNotifier(MBackupNotifierObserver& aObserver) : sl@0: CBase(), sl@0: iObserver(aObserver) sl@0: { sl@0: } sl@0: sl@0: CBackupNotifier::~CBackupNotifier() sl@0: { sl@0: } sl@0: sl@0: void CBackupNotifier::HandleBackupOperationEventL(const TBackupOperationAttributes& aBackupOperationAttributes) sl@0: { sl@0: switch(aBackupOperationAttributes.iOperation) sl@0: { sl@0: case EStart: sl@0: iObserver.Suspend(); sl@0: break; sl@0: case EEnd: sl@0: iObserver.Resume(); sl@0: break; sl@0: default: sl@0: break; sl@0: } sl@0: }