hwresourceadaptation/hwresourcemgruiplugin/inc/hwrmuiplugin.h
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     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 #ifndef HWRMUIPLUGIN_H
       
    17 #define HWRMUIPLUGIN_H
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <coemain.h>
       
    21 
       
    22 #include <hwrm/hwrmuipluginservice.h>
       
    23 
       
    24 /*		
       
    25 *	Cone Plugin implementation class: registers with CONE
       
    26 *   and listens for foreground events on behalf of data member 
       
    27 *	iMHWRMForegroundObserver, the handling of which is delegated to the 
       
    28 *	iMHWRMForegroundObserver data member
       
    29 */
       
    30 class CHwrmUiPlugin : public CHwrmUiPluginService, public MCoeForegroundObserver
       
    31 	{
       
    32 public:
       
    33 	static CHwrmUiPlugin* NewL();	
       
    34 	~CHwrmUiPlugin();
       
    35 
       
    36 protected: //From CHwrmUiPluginService
       
    37 	virtual void AddForegroundObserverL(MHwrmForegroundObserver* aObserver);
       
    38 	virtual TBool InForeground() const;
       
    39 
       
    40 protected: //From MCoeForegroundObserver
       
    41 	virtual void HandleGainingForeground();
       
    42 	virtual void HandleLosingForeground();	
       
    43 
       
    44 protected:	
       
    45 	CHwrmUiPlugin();
       
    46 	void ConstructL();
       
    47     
       
    48 private:	
       
    49 	MHwrmForegroundObserver* iHwrmForegroundObserver; //NOT OWNED
       
    50 	};
       
    51 	
       
    52 #endif