resourcemgmt/hwresourcesmgr/common/inc/hwrmuipluginresolver.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 // Copyright (c) 2006-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 // Definition of class CHwrmUiPluginResolver. It encapsulates the logic to select which UI Plugin to load
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20 */
       
    21 
       
    22 #ifndef HWRMUIPLUGINRESOLVER_H
       
    23 #define HWRMUIPLUGINRESOLVER_H
       
    24 
       
    25 #include <e32base.h>
       
    26 #include <f32file.h>
       
    27 
       
    28 NONSHARABLE_CLASS(CHwrmUiPluginResolver) : public CBase
       
    29 	{
       
    30 public:	
       
    31 	IMPORT_C static CHwrmUiPluginResolver* NewL();
       
    32 	IMPORT_C static CHwrmUiPluginResolver* NewLC();
       
    33 	IMPORT_C ~CHwrmUiPluginResolver();
       
    34 
       
    35 	IMPORT_C TInt GetDesiredPluginL(TUid& aImplUid);
       
    36 
       
    37 private:
       
    38 	CHwrmUiPluginResolver();
       
    39 	void ConstructL();
       
    40 	
       
    41 	TBool IsTestFilePresent(const TDesC& aFilePath);
       
    42 	void GetTestFilePath(TDes& aFilePath);
       
    43 	
       
    44 private:
       
    45 	RFs iFs;
       
    46 	};
       
    47 
       
    48 #endif