os/mm/mm_plat/custom_interface_utility_api/inc/CustomInterfaceUtility.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_utility_api/inc/CustomInterfaceUtility.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,78 @@
     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 Utility
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +#ifndef __CUSTOMINTERFACEUTILITY_H
    1.22 +#define __CUSTOMINTERFACEUTILITY_H
    1.23 +
    1.24 +#include <e32base.h>
    1.25 +#include <MCustomInterface.h>
    1.26 +//#include "CustomCommandTypes.h"
    1.27 +#include <CustomCommandUtility.h>
    1.28 +class CProxyCustomInterfaceUtility;
    1.29 +//class CCustomInterfaceProxyBuilder;
    1.30 +class CMdaAudioConvertUtility;
    1.31 +class CMdaAudioPlayerUtility;
    1.32 +class CMdaAudioRecorderUtility;
    1.33 +class MCustomCommand;
    1.34 +class CMMFDevSound;
    1.35 +class CMidiClientUtility;
    1.36 +class CDrmPlayerUtility;
    1.37 +class CVideoPlayerUtility;
    1.38 +class CVideoRecorderUtility;
    1.39 +
    1.40 +class CCustomInterfaceUtility : public    CBase,
    1.41 +                                public    MCustomInterface
    1.42 +    {
    1.43 +public:
    1.44 +    IMPORT_C static CCustomInterfaceUtility* NewL(CMdaAudioConvertUtility&  aUtility);
    1.45 +    IMPORT_C static CCustomInterfaceUtility* NewL(CMdaAudioPlayerUtility&   aUtility);
    1.46 +    IMPORT_C static CCustomInterfaceUtility* NewL(CMdaAudioRecorderUtility& aUtility,
    1.47 +                                                  TBool       aRecordStream);
    1.48 +    IMPORT_C static CCustomInterfaceUtility* NewL(CCustomCommandUtility* aCustomCommandUtility);
    1.49 +    IMPORT_C static CCustomInterfaceUtility* NewL(CMMFDevSound& aDevSound);
    1.50 +    IMPORT_C static CCustomInterfaceUtility* NewL(CMidiClientUtility& aUtility);
    1.51 +    IMPORT_C static CCustomInterfaceUtility* NewL(MCustomCommand& aUtility);
    1.52 +    IMPORT_C virtual ~CCustomInterfaceUtility();
    1.53 +
    1.54 +    /**
    1.55 +    * Factory function for creating CCustomInterfaceUtility object.
    1.56 +    * @since 3.0
    1.57 +    * @param CDrmPlayerUtility A reference to a CDrmPlayerUtility object
    1.58 +    * @return pointer to CCustomInterfaceUtility object
    1.59 +    */
    1.60 +    IMPORT_C static CCustomInterfaceUtility* NewL(CDrmPlayerUtility& aUtility);
    1.61 +    IMPORT_C static CCustomInterfaceUtility* NewL(CVideoPlayerUtility&   aUtility);
    1.62 +    IMPORT_C static CCustomInterfaceUtility* NewL(CVideoRecorderUtility&   aUtility);
    1.63 +
    1.64 +    virtual TAny* CustomInterface(TUid aInterfaceId);
    1.65 +
    1.66 +    virtual void RemoveCustomInterface(TMMFMessageDestinationPckg aMessageHandler);
    1.67 +protected:
    1.68 +    IMPORT_C CCustomInterfaceUtility();
    1.69 +    virtual void ConstructL(CCustomCommandUtility* aCustomCommandUtility);
    1.70 +    virtual void ConstructL(CMMFDevSound& aDevSound);
    1.71 +
    1.72 +private:
    1.73 +
    1.74 +    CProxyCustomInterfaceUtility* iProxyFactory;
    1.75 +
    1.76 +
    1.77 +private:
    1.78 +    CMMFDevSound*       iDevSound;
    1.79 +    };
    1.80 +
    1.81 +#endif