audiostubs/devsoundextensions_stubs/cistubplugin/inc/cistubplugin.h
branchRCL_3
changeset 6 51acc10b7a0c
parent 5 4bfd755294b7
child 7 ed4d16870c37
equal deleted inserted replaced
5:4bfd755294b7 6:51acc10b7a0c
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: CI stub plugin
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // This file defines the API for AudiPlayRoutingControlCIStub.dll
       
    21 
       
    22 #ifndef CISTUBPLUGIN_H
       
    23 #define CISTUBPLUGIN_H
       
    24 
       
    25 #include <e32base.h>	// CBase
       
    26 #include <e32std.h>	 // TBuf
       
    27 #include <e32debug.h>
       
    28 #include <ecom.h>
       
    29 #include "RestrictedAudioOutputCIStub.h"
       
    30 #include "AudioOutputCI.h"
       
    31 #include "AudioInputCI.h"
       
    32 #include "AudioOutputMessageTypes.h"
       
    33 #include "AudioInputMessageTypes.h"
       
    34 
       
    35 class MyMCustomInterface
       
    36     {
       
    37 public:
       
    38     virtual TAny* CustomInterface(TUid aCustomeInterface) = 0;
       
    39     virtual void Release() = 0;
       
    40     virtual void PassDestructionKey(TUid aUid) = 0;
       
    41     };
       
    42 
       
    43 class CCIStubPlugin : public CBase,public MyMCustomInterface
       
    44     {
       
    45 public:
       
    46 
       
    47     static MyMCustomInterface* NewL();
       
    48     static CCIStubPlugin* NewLC();
       
    49     ~CCIStubPlugin();
       
    50     TAny* CustomInterface(TUid aInterfaceId);
       
    51     void Release();
       
    52     void PassDestructionKey(TUid aUid);
       
    53 
       
    54 private:
       
    55     TUid iDtor_ID_Key;
       
    56     CCIStubPlugin();
       
    57     void ConstructL();
       
    58     };
       
    59 
       
    60 #endif  // __AUDIPLAYROUTINGCONTROLHWDEVICE_H__