usbengines/usblocodplugin/tsrc/USBLocodPluginTest/inc/LocodBearerPluginObs.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 17 Dec 2009 09:14:30 +0200
changeset 0 1e05558e2206
permissions -rw-r--r--
Revision: 200949 Kit: 200951

/*
* 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_*/