sl@0: /* sl@0: * Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: CustomInterface Builder sl@0: * sl@0: */ sl@0: sl@0: #ifndef __CUSTOMINTERFACEBUILDER_H sl@0: #define __CUSTOMINTERFACEBUILDER_H sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: class CAdaptationCustomInterfaceBuilder; sl@0: class CMMFDevSound; sl@0: class CMMFObjectContainer; sl@0: sl@0: class CCustomInterfaceBuilder : public CMMFObject sl@0: { sl@0: public: sl@0: IMPORT_C static CCustomInterfaceBuilder* NewL(CMMFObjectContainer& aObjectContainer, sl@0: CMMFDevSound& aDevSound); sl@0: virtual ~CCustomInterfaceBuilder(); sl@0: sl@0: virtual void HandleRequest(TMMFMessage& aMessage); sl@0: sl@0: IMPORT_C static CCustomInterfaceBuilder* NewL(CMMFObjectContainer& aObjectContainer, sl@0: MCustomInterface& aCustomInterface); sl@0: sl@0: IMPORT_C void SetSecureCustomInterfaces( const TBool aSecure ); sl@0: sl@0: private: sl@0: CCustomInterfaceBuilder(CMMFObjectContainer& aObjectContainer, sl@0: CMMFDevSound& aDevSound); sl@0: CCustomInterfaceBuilder(CMMFObjectContainer& aObjectContainer, sl@0: MCustomInterface& aCustomInterface); sl@0: void ConstructL(); sl@0: void DoHandleRequestL(TMMFMessage& aMessage); sl@0: void DoBuildL(TMMFMessage& aMessage); sl@0: void DoRemoveL(TMMFMessage& aMessage); sl@0: TAny* GetCustomInterfaceL(TUid aInterfaceId); sl@0: sl@0: //CMMFDevSound& iDevSound; sl@0: CMMFDevSound* iDevSound; sl@0: MCustomInterface* iCustomInterface; sl@0: CMMFObjectContainer& iObjectContainer; sl@0: CAdaptationCustomInterfaceBuilder* iAdaptationBuilder; sl@0: TBool iSecureCustomInterfaces; sl@0: }; sl@0: sl@0: #endif