diff -r 000000000000 -r 1e05558e2206 usbengines/usblocodplugin/tsrc/USBLocodPluginTest/src/LocodBearerPluginObs.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/usbengines/usblocodplugin/tsrc/USBLocodPluginTest/src/LocodBearerPluginObs.cpp Thu Dec 17 09:14:30 2009 +0200 @@ -0,0 +1,74 @@ +/* +* Copyright (c) 2002 - 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: ?Description +* +*/ + + +#include "LocodBearerPluginObs.h" + +CLocodBearerPluginObs::CLocodBearerPluginObs( CStifLogger* aLog ) + { + iLog = aLog; + } + + +CLocodBearerPluginObs::~CLocodBearerPluginObs() + { + STIF_LOG( "[STIF_LOG] >>>CLocodBearerPluginObs::~CLocodBearerPluginObs" ); + + if ( iWait -> IsStarted() ) + iWait -> AsyncStop(); + delete iWait; + iWait = NULL; + + STIF_LOG( "[STIF_LOG] <<ConstructL(); + CleanupStack::Pop( self ); + return self; + } + + +void CLocodBearerPluginObs::ConstructL() + { + STIF_LOG( "[STIF_LOG] >>>CLocodBearerPluginObs::ConstructL" ); + iWait = new ( ELeave )CActiveSchedulerWait(); + STIF_LOG( "[STIF_LOG] <<>>CLocodBearerPluginObs::NotifyBearerStatus" ); + if ( iWait -> IsStarted() ) + iWait -> AsyncStop(); + iLocodBearerStatus = aStatus; + STIF_LOG( "[STIF_LOG] <<>>CLocodBearerPluginObs::ActivateObserver" ); + iWait -> Start(); + aLocodBearerStatus = iLocodBearerStatus; + STIF_LOG( "[STIF_LOG] <<