os/mm/devsound/devsoundrefplugin/src/server/mmfAudioPolicyProxy.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 #ifndef __MMFAUDIOPOLICYPROXY_H__
    17 #define __MMFAUDIOPOLICYPROXY_H__
    18 
    19 #include <e32base.h>
    20 #include <e32std.h>
    21 #include "MmfAudioPolicySession.h"  
    22 
    23 #ifdef SYMBIAN_MDF_SHAREDCHUNK_SOUNDDRIVER
    24 	#include "mdasoundadapter.h"
    25 #else
    26 	#include <mdasound.h>
    27 #endif
    28 
    29 #include <mmf/common/mmfipc.h>
    30 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
    31 #include <mmf/common/mmfipcserver.h>
    32 #endif
    33 class RMMFAudioPolicyProxy; // declared here.
    34 
    35 class CMMFAudioPolicyRequest;
    36 class TMMFDevSoundInfo;
    37 
    38 NONSHARABLE_CLASS( RMMFAudioPolicyProxy ): public RMmfSessionBase
    39 /**
    40 *@internalTechnology
    41 */
    42 	{
    43 public:
    44 	IMPORT_C TInt Open(RServer2& aPolicyServerHandle);
    45 	IMPORT_C TInt CreateServer(RServer2& aPolicyServerHandle);
    46 	IMPORT_C TInt SetDevSoundInfo(TMMFDevSoundInfo& aDevSoundInfo);
    47 	IMPORT_C void MakeRequest(TMMFAudioPolicyPrioritySettings& aPrioritySettings);
    48 	IMPORT_C TInt UpdateState(TMMFAudioPolicyPrioritySettings& aPrioritySettings);
    49 	IMPORT_C void ReceiveEvents(TMMFAudioPolicyEventPckg& aEventPckg, TRequestStatus& aStatus);
    50 	IMPORT_C TInt CancelReceiveEvents();
    51 	IMPORT_C TInt GetPlayFormatsSupported(RMdaDevSound::TSoundFormatsSupportedBuf& aPlayFormatsSupported);
    52 	IMPORT_C TInt GetRecordFormatsSupported(RMdaDevSound::TSoundFormatsSupportedBuf& aRecordFormatsSupported);
    53 	IMPORT_C TInt GetPlayFormat(RMdaDevSound::TCurrentSoundFormatBuf& aPlayFormat);
    54 	IMPORT_C TInt GetRecordFormat(RMdaDevSound::TCurrentSoundFormatBuf& aRecordFormat);
    55 	IMPORT_C TInt LaunchRequests();
    56 	IMPORT_C TInt RequestResourceNotification(TUid aNotificationEventUid, const TDesC8& aNotificationData = KNullDesC8);
    57 	IMPORT_C TInt CancelRequestResourceNotification(TUid aNotificationEventUid);
    58 	IMPORT_C TInt StopNotification();
    59 	IMPORT_C TInt IsRegisteredResourceNotification(TUid aEventType);
    60 private:
    61 	TMMFAudioPolicyPrioritySettingsPckg iPsPckg;
    62 	};
    63 
    64 #endif