bthci/bthci2/hctl/interface/hctluartpowerobserver.h
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 // Copyright (c) 2007-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 "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 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @publishedPartner
       
    19  @released
       
    20 */
       
    21 
       
    22 #ifndef HCTLUARTPOWEROBSERVER_H
       
    23 #define HCTLUARTPOWEROBSERVER_H
       
    24 
       
    25 #include <e32def.h>
       
    26 
       
    27 /**
       
    28 Interface for monitoring the power state of a UART device and receiving
       
    29 notification when the power state changes.
       
    30 
       
    31 This interface can be implemented by any UART based HCTL implementations
       
    32 and should be used with the CHCTLUartPowerManager class.
       
    33 */
       
    34 class MHCTLUartPowerObserver
       
    35 	{
       
    36 public:
       
    37 	/**
       
    38 	Called when the power state of the UART device changes. If an error
       
    39 	is returned then monitoring of the power state will have stopped and
       
    40 	should be specifically re-started if required.
       
    41 	
       
    42 	@param aError Any error that occurred while monitoring power state.
       
    43 	*/
       
    44 	virtual void MhupoPowerChange(TInt aError) =0;
       
    45 	};
       
    46 
       
    47 #endif // HCTLUARTPOWEROBSERVER_H