common/tools/ats/smoketest/localisation/apparchitecture/inc/APRuleBased.h
changeset 793 0c32c669a39d
child 872 17498133d9ad
equal deleted inserted replaced
792:893b85cda81b 793:0c32c669a39d
       
     1 // Copyright (c) 2005-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"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // @file
       
    15 // 
       
    16 //
       
    17 
       
    18 #if !defined(__APRULEBASED_H__)
       
    19 #define __APRULEBASED_H__
       
    20 
       
    21 #if !defined(__APADEF_H__)
       
    22 #include <apadef.h>
       
    23 #endif
       
    24 
       
    25 #if !defined(__F32FILE_H__)
       
    26 #include <f32file.h>
       
    27 #endif
       
    28 
       
    29 /**
       
    30 @publishedPartner
       
    31 @released
       
    32 Uid for access to all implementations of rule-based interface
       
    33 */
       
    34 const TUid KUidRuleBasedInterfaceUid = { 0x1020d466 };
       
    35 
       
    36 class CApaRuleBasedDll;
       
    37 class CAppLaunchChecker;
       
    38 
       
    39 class CApaRuleBasedDll;
       
    40 /**
       
    41 @publishedPartner
       
    42 @released
       
    43 Rule-based framework.
       
    44 Loads all rule-based plug-ins available in the system and interrogates them 
       
    45 whether or not an activated application should be launched
       
    46 */
       
    47 class CApaScanningRuleBasedPlugIns : public CBase
       
    48 	{
       
    49 public:	
       
    50 	IMPORT_C static CApaScanningRuleBasedPlugIns* NewL();
       
    51 	IMPORT_C ~CApaScanningRuleBasedPlugIns();
       
    52 	IMPORT_C CAppLaunchChecker* operator[](TInt aIndex) const;
       
    53 	IMPORT_C void ScanForRuleBasedPlugInsL();
       
    54 	IMPORT_C TInt ImplementationCount() const; 
       
    55 private:
       
    56 	CApaScanningRuleBasedPlugIns()
       
    57 		{
       
    58 		}
       
    59 	void LoadEcomRuleBasedPlugInL(TUid aUid);
       
    60 	HBufC* ImplementationDisplayNameL(TUid aImplUID) const;
       
    61 	TInt RemovePlugIn(CApaRuleBasedDll* aDll);
       
    62 private:
       
    63 	RPointerArray<CApaRuleBasedDll> iRuleBasedLib; //all rule-based plug-ins available in the system
       
    64 	};
       
    65 
       
    66 #endif