1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/devsound/sounddevbt/src/server/MmfBtAudioPolicyProxy.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,58 @@
1.4 +// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +#ifndef __MMFBTAUDIOPOLICYPROXY_H__
1.20 +#define __MMFBTAUDIOPOLICYPROXY_H__
1.21 +
1.22 +#include <e32base.h>
1.23 +#include <e32std.h>
1.24 +#include "MmfBtAudioPolicySession.h"
1.25 +#include "mdasound.h"
1.26 +
1.27 +#include <mmf/common/mmfipc.h>
1.28 +#ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
1.29 +#include <mmf/common/mmfipcserver.h>
1.30 +#endif
1.31 +class RMMFAudioPolicyProxy; // declared here.
1.32 +
1.33 +class CMMFAudioPolicyRequest;
1.34 +class TMMFDevSoundInfo;
1.35 +
1.36 +NONSHARABLE_CLASS( RMMFAudioPolicyProxy ): public RMmfSessionBase
1.37 +/**
1.38 +*@internalTechnology
1.39 +*/
1.40 + {
1.41 +public:
1.42 + IMPORT_C TInt Open(RServer2& aPolicyServerHandle);
1.43 + IMPORT_C TInt SetDevSoundInfo(TMMFDevSoundInfo& aDevSoundInfo);
1.44 + IMPORT_C void MakeRequest(TMMFAudioPolicyPrioritySettings& aPrioritySettings);
1.45 + IMPORT_C TInt UpdateState(TMMFAudioPolicyPrioritySettings& aPrioritySettings);
1.46 + IMPORT_C void ReceiveEvents(TMMFAudioPolicyEventPckg& aEventPckg, TRequestStatus& aStatus);
1.47 + IMPORT_C TInt CancelReceiveEvents();
1.48 + IMPORT_C TInt GetPlayFormatsSupported(RMdaDevSound::TSoundFormatsSupportedBuf& aPlayFormatsSupported);
1.49 + IMPORT_C TInt GetRecordFormatsSupported(RMdaDevSound::TSoundFormatsSupportedBuf& aRecordFormatsSupported);
1.50 + IMPORT_C TInt GetPlayFormat(RMdaDevSound::TCurrentSoundFormatBuf& aPlayFormat);
1.51 + IMPORT_C TInt GetRecordFormat(RMdaDevSound::TCurrentSoundFormatBuf& aRecordFormat);
1.52 + IMPORT_C TInt LaunchRequests();
1.53 + IMPORT_C TInt RequestResourceNotification(TUid aNotificationEventUid, const TDesC8& aNotificationData = KNullDesC8);
1.54 + IMPORT_C TInt CancelRequestResourceNotification(TUid aNotificationEventUid);
1.55 + IMPORT_C TInt StopNotification();
1.56 + IMPORT_C TInt IsRegisteredResourceNotification(TUid aEventType);
1.57 +private:
1.58 + TMMFAudioPolicyPrioritySettingsPckg iPsPckg;
1.59 + };
1.60 +
1.61 +#endif