usbengines/usblocodplugin/tsrc/USBLocodPluginTest/inc/LocodBearerPluginObs.h
changeset 35 9d8b04ca6939
parent 0 1e05558e2206
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/usbengines/usblocodplugin/tsrc/USBLocodPluginTest/inc/LocodBearerPluginObs.h	Fri Jun 04 10:27:39 2010 +0100
@@ -0,0 +1,51 @@
+/*
+* 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
+*
+*/
+
+
+#ifndef LOCODBEARERPLUGINOBS_H_
+#define LOCODBEARERPLUGINOBS_H_
+
+#include <e32base.h>
+#include <e32debug.h>
+#include <StifLogger.h>
+#include <testclassassert.h>
+
+#include <locodbearerplugin.h>
+#include <locodbearerpluginobserver.h>
+#include <locodbearer.h>
+
+NONSHARABLE_CLASS( CLocodBearerPluginObs ) : public MLocodBearerPluginObserver
+{
+public:
+    static CLocodBearerPluginObs* NewL( CStifLogger* aLog );
+    virtual ~CLocodBearerPluginObs();
+    
+    void ActivateObserver( TBool& aLocodBearerStatus );
+    
+private:
+    CLocodBearerPluginObs( CStifLogger* aLog );
+    
+    void ConstructL();
+    void NotifyBearerStatus( TLocodBearer aBearer, TBool aStatus );
+    
+private:
+    CStifLogger* iLog;
+    CActiveSchedulerWait* iWait;
+    TBool iLocodBearerStatus;
+};
+
+#endif /*LOCODBEARERPLUGINOBS_H_*/