os/mm/mm_plat/custom_interface_builder_api/inc/CustomInterfaceBuilder.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/mm_plat/custom_interface_builder_api/inc/CustomInterfaceBuilder.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,62 @@
     1.4 +/*
     1.5 +* Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies). 
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description:  CustomInterface Builder
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +#ifndef __CUSTOMINTERFACEBUILDER_H
    1.22 +#define __CUSTOMINTERFACEBUILDER_H
    1.23 +
    1.24 +#include <e32std.h>
    1.25 +#include <mmf/common/mmfcontroller.h>
    1.26 +#include <MCustomInterface.h>
    1.27 +
    1.28 +class CAdaptationCustomInterfaceBuilder;
    1.29 +class CMMFDevSound;
    1.30 +class CMMFObjectContainer;
    1.31 +
    1.32 +class CCustomInterfaceBuilder : public CMMFObject
    1.33 +	{
    1.34 +public:
    1.35 +	IMPORT_C static CCustomInterfaceBuilder* NewL(CMMFObjectContainer& aObjectContainer,
    1.36 +	                                              CMMFDevSound&        aDevSound);
    1.37 +	virtual ~CCustomInterfaceBuilder();
    1.38 +
    1.39 +	virtual void HandleRequest(TMMFMessage& aMessage);
    1.40 +
    1.41 +    IMPORT_C static CCustomInterfaceBuilder* NewL(CMMFObjectContainer& aObjectContainer,
    1.42 +	                                              MCustomInterface& aCustomInterface);
    1.43 +
    1.44 +    IMPORT_C void SetSecureCustomInterfaces( const TBool aSecure );
    1.45 +
    1.46 +private:
    1.47 +	CCustomInterfaceBuilder(CMMFObjectContainer& aObjectContainer,
    1.48 +	                        CMMFDevSound&        aDevSound);
    1.49 +	CCustomInterfaceBuilder(CMMFObjectContainer& aObjectContainer,
    1.50 +	                        MCustomInterface& aCustomInterface);
    1.51 +	void ConstructL();
    1.52 +	void        DoHandleRequestL(TMMFMessage& aMessage);
    1.53 +	void        DoBuildL(TMMFMessage& aMessage);
    1.54 +	void        DoRemoveL(TMMFMessage& aMessage);
    1.55 +	TAny*       GetCustomInterfaceL(TUid aInterfaceId);
    1.56 +
    1.57 +	//CMMFDevSound&                      iDevSound;
    1.58 +    CMMFDevSound*                      iDevSound;
    1.59 +	MCustomInterface*                  iCustomInterface;
    1.60 +	CMMFObjectContainer&               iObjectContainer;
    1.61 +	CAdaptationCustomInterfaceBuilder* iAdaptationBuilder;
    1.62 +	TBool                              iSecureCustomInterfaces;
    1.63 +	};
    1.64 +
    1.65 +#endif