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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __MMFAUDIOPOLICYPROXY_H__
17 #define __MMFAUDIOPOLICYPROXY_H__
21 #include "MmfAudioPolicySession.h"
23 #ifdef SYMBIAN_MDF_SHAREDCHUNK_SOUNDDRIVER
24 #include "mdasoundadapter.h"
29 #include <mmf/common/mmfipc.h>
30 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
31 #include <mmf/common/mmfipcserver.h>
33 class RMMFAudioPolicyProxy; // declared here.
35 class CMMFAudioPolicyRequest;
36 class TMMFDevSoundInfo;
38 NONSHARABLE_CLASS( RMMFAudioPolicyProxy ): public RMmfSessionBase
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);
61 TMMFAudioPolicyPrioritySettingsPckg iPsPckg;