os/mm/devsound/sounddevbt/src/server/MmfBtAudioPolicyProxy.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 __MMFBTAUDIOPOLICYPROXY_H__
    17 #define __MMFBTAUDIOPOLICYPROXY_H__
    18 
    19 #include <e32base.h>
    20 #include <e32std.h>
    21 #include "MmfBtAudioPolicySession.h"  
    22 #include "mdasound.h"
    23 
    24 #include <mmf/common/mmfipc.h>
    25 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
    26 #include <mmf/common/mmfipcserver.h>
    27 #endif
    28 class RMMFAudioPolicyProxy; // declared here.
    29 
    30 class CMMFAudioPolicyRequest;
    31 class TMMFDevSoundInfo;
    32 
    33 NONSHARABLE_CLASS( RMMFAudioPolicyProxy ): public RMmfSessionBase
    34 /**
    35 *@internalTechnology
    36 */
    37 	{
    38 public:
    39 	IMPORT_C TInt Open(RServer2& aPolicyServerHandle);
    40 	IMPORT_C TInt SetDevSoundInfo(TMMFDevSoundInfo& aDevSoundInfo);
    41 	IMPORT_C void MakeRequest(TMMFAudioPolicyPrioritySettings& aPrioritySettings);
    42 	IMPORT_C TInt UpdateState(TMMFAudioPolicyPrioritySettings& aPrioritySettings);
    43 	IMPORT_C void ReceiveEvents(TMMFAudioPolicyEventPckg& aEventPckg, TRequestStatus& aStatus);
    44 	IMPORT_C TInt CancelReceiveEvents();
    45 	IMPORT_C TInt GetPlayFormatsSupported(RMdaDevSound::TSoundFormatsSupportedBuf& aPlayFormatsSupported);
    46 	IMPORT_C TInt GetRecordFormatsSupported(RMdaDevSound::TSoundFormatsSupportedBuf& aRecordFormatsSupported);
    47 	IMPORT_C TInt GetPlayFormat(RMdaDevSound::TCurrentSoundFormatBuf& aPlayFormat);
    48 	IMPORT_C TInt GetRecordFormat(RMdaDevSound::TCurrentSoundFormatBuf& aRecordFormat);
    49 	IMPORT_C TInt LaunchRequests();
    50 	IMPORT_C TInt RequestResourceNotification(TUid aNotificationEventUid, const TDesC8& aNotificationData = KNullDesC8);
    51 	IMPORT_C TInt CancelRequestResourceNotification(TUid aNotificationEventUid);
    52 	IMPORT_C TInt StopNotification();
    53 	IMPORT_C TInt IsRegisteredResourceNotification(TUid aEventType);
    54 private:
    55 	TMMFAudioPolicyPrioritySettingsPckg iPsPckg;
    56 	};
    57 
    58 #endif