epoc32/include/mw/remconbatterytarget.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:27:01 +0100
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 epoc32/include/remconbatterytarget.h@2fe1408b6811
child 4 837f303aceeb
permissions -rw-r--r--
Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
     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 "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 
    17 
    18 /**
    19  @file
    20  @publishedAll
    21  @released  
    22 */
    23 
    24 #ifndef REMCONBATTERYTARGET_H
    25 #define REMCONBATTERYTARGET_H
    26 
    27 #include <e32base.h>
    28 #include <remcon/remconinterfacebase.h>
    29 #include <remcon/remconinterfaceif.h>
    30 
    31 class MRemConBatteryTargetObserver;
    32 class MRemConCoreApiTargetObserver;
    33 class CRemConInterfaceSelector;
    34 
    35 /**
    36 Client-instantiable type supporting sending Battery Status responses.
    37 */
    38 NONSHARABLE_CLASS(CRemConBatteryApiTarget) : public CRemConInterfaceBase, 
    39 								          		public MRemConInterfaceIf
    40 	{
    41 public:
    42 	/**
    43 	Factory function.
    44 	@see CRemConInterfaceSelector
    45 	@see MRemConBatteryTargetObserver
    46 	@param aInterfaceSelector The interface selector. The client must have 
    47 	created one of these first.
    48 	@param aObserver The observer of this interface.
    49 	@return A new CRemConBatteryApiTarget, owned by the interface selector.
    50 	*/
    51 	IMPORT_C static CRemConBatteryApiTarget* NewL(CRemConInterfaceSelector& aInterfaceSelector, 
    52 		MRemConBatteryTargetObserver& aObserver);
    53 	
    54 	/** Destructor */
    55 	IMPORT_C ~CRemConBatteryApiTarget();
    56 
    57 private:
    58 	/** 
    59 	Constructor.
    60 	@param aInterfaceSelector The interface selector.
    61 	@param aObserver The observer of this interface.
    62 	*/
    63 	CRemConBatteryApiTarget(CRemConInterfaceSelector& aInterfaceSelector, 
    64 		MRemConBatteryTargetObserver& aObserver);
    65 
    66 	void ConstructL();
    67 
    68 private: // from CRemConInterfaceBase
    69 	TAny* GetInterfaceIf(TUid aUid);
    70 
    71 private: // from MRemConInterfaceIf
    72 	void MrcibNewMessage(TUint aOperationId, const TDesC8& aData);
    73 
    74 private: // unowned
    75 	MRemConBatteryTargetObserver& iObserver;
    76 
    77 private: // owned
    78 	CBufFlat*       iOutData;
    79 	
    80 	
    81 	};
    82 
    83 #endif // REMCONBATTERYTARGET_H