os/kernelhwsrv/kerneltest/e32test/usb/t_usb_device/include/activedevicestatenotifier.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 // e32test/usb/t_usb_device/include/activedevicestatenotifier.h
    15 // 
    16 //
    17 
    18 #ifndef __ACTIVEDEVICESTATENOTIFIER_H__
    19 #define __ACTIVEDEVICESTATENOTIFIER_H__
    20 
    21 class CActiveDeviceStateNotifier : public CActive
    22 	{
    23 public:
    24 	static CActiveDeviceStateNotifier* NewL(CConsoleBase* aConsole, RDEVCLIENT* aPort, TUint aPortNumber);
    25 	~CActiveDeviceStateNotifier();
    26 	void Activate();
    27 
    28 private:
    29 	CActiveDeviceStateNotifier(CConsoleBase* aConsole, RDEVCLIENT* aPort, TUint aPortNumber);
    30 	void ConstructL();
    31 	virtual void DoCancel();
    32 	virtual void RunL();
    33 
    34 private:
    35 	CConsoleBase* iConsole;
    36 	RDEVCLIENT* iPort;
    37 	TUint iDeviceState;
    38 	TUint iPortNumber; 
    39 	};
    40 
    41 #endif	// __ACTIVEDEVICESTATENOTIFIER_H__