audiostubs/devsoundextensions_stubs/audioenhancementfactorystubs/Inc/AddedDevSoundControlProxy.h
branchRCL_3
changeset 44 b5894bb67e73
parent 35 37b610eb7fe3
equal deleted inserted replaced
35:37b610eb7fe3 44:b5894bb67e73
     1 /*
       
     2 * Copyright (c) 2006 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: Audio Stubs -  Interface proxy for AddedDevSoundControl CI.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef ADDEDDEVSOUNDCONTROLPROXY_H
       
    20 #define ADDEDDEVSOUNDCONTROLPROXY_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <mmfcontrollerframework.h>
       
    24 #include "AddedDevSoundControlCI.h"
       
    25 
       
    26 // CONSTANTS
       
    27 
       
    28 // MACROS
       
    29 
       
    30 // DATA TYPES
       
    31 
       
    32 // FUNCTION PROTOTYPES
       
    33 
       
    34 // FORWARD DECLARATIONS
       
    35 class CCustomInterfaceUtility;
       
    36 class MCustomCommand;
       
    37 
       
    38 // CLASS DECLARATION
       
    39 
       
    40 /**
       
    41  * Proxy for AddedDevSoundControl CI.
       
    42  * This proxy translates the interface API calls to messages and
       
    43  * sends them to the message handler.
       
    44  *
       
    45  * @lib AddedDevSoundControlProxy.lib
       
    46  * @since S60 3.2
       
    47  */
       
    48 class CAddedDevSoundControlProxy : public MAddedDevSoundControl
       
    49 
       
    50 	{
       
    51     public:  // Constructors and destructor
       
    52 
       
    53         /**
       
    54          * Two-phased constructor.
       
    55          */
       
    56 		IMPORT_C static CAddedDevSoundControlProxy* NewL(
       
    57 		                TMMFMessageDestinationPckg aMessageHandler,
       
    58                         MCustomCommand& aCustomCommand,
       
    59                         CCustomInterfaceUtility* aCustomInterfaceUtility);
       
    60 
       
    61         /**
       
    62          * Destructor.
       
    63          */
       
    64 		virtual ~CAddedDevSoundControlProxy();
       
    65 
       
    66     public: // New functions
       
    67 
       
    68     public: // Functions from base classes
       
    69 
       
    70         // From MAddedDevSoundControl
       
    71 
       
    72         /**
       
    73          * Handles client request to alter DevSound's behavior for Pause.
       
    74          *
       
    75          * @since S60 3.2
       
    76          * @param TBool - Toggles HW awarness
       
    77          * @return TInt - Function call status
       
    78          *
       
    79          */
       
    80         virtual TInt SetHwAwareness(TBool aHwAware);
       
    81 
       
    82         /**
       
    83          * Handles client request to pause the audio resources and flush.
       
    84          * the buffers.
       
    85          *
       
    86          * @since S60 3.2
       
    87          * @return TInt - Function call status
       
    88          */
       
    89         virtual TInt PauseAndFlush();
       
    90 
       
    91 
       
    92     protected:  // New functions
       
    93 
       
    94     protected:  // Functions from base classes
       
    95 
       
    96     private:
       
    97 
       
    98         /**
       
    99          * C++ default constructor.
       
   100          */
       
   101 		CAddedDevSoundControlProxy(
       
   102                 TMMFMessageDestinationPckg aMessageHandler,
       
   103                 MCustomCommand& aCustomCommand,
       
   104                 CCustomInterfaceUtility* aCustomInterfaceUtility);
       
   105 
       
   106     public:     // Data
       
   107     protected:  // Data
       
   108     private:    // Data
       
   109 
       
   110         // Handle to object used for sending IPC commands
       
   111 		MCustomCommand& iCustomCommand;
       
   112 
       
   113         // Message object destined for the message handler
       
   114 		TMMFMessageDestinationPckg iMessageHandler;
       
   115 
       
   116         // Handle to utility object used in interface framework
       
   117 		CCustomInterfaceUtility* iCustomInterfaceUtility;
       
   118 
       
   119 	};
       
   120 
       
   121 #endif      // ADDEDDEVSOUNDCONTROLPROXY_H
       
   122 
       
   123 // End of File