1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/devsound/devsoundrefplugin/src/server/mmfAudioPolicyProxy.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,64 @@
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 __MMFAUDIOPOLICYPROXY_H__
1.20 +#define __MMFAUDIOPOLICYPROXY_H__
1.21 +
1.22 +#include <e32base.h>
1.23 +#include <e32std.h>
1.24 +#include "MmfAudioPolicySession.h"
1.25 +
1.26 +#ifdef SYMBIAN_MDF_SHAREDCHUNK_SOUNDDRIVER
1.27 + #include "mdasoundadapter.h"
1.28 +#else
1.29 + #include <mdasound.h>
1.30 +#endif
1.31 +
1.32 +#include <mmf/common/mmfipc.h>
1.33 +#ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
1.34 +#include <mmf/common/mmfipcserver.h>
1.35 +#endif
1.36 +class RMMFAudioPolicyProxy; // declared here.
1.37 +
1.38 +class CMMFAudioPolicyRequest;
1.39 +class TMMFDevSoundInfo;
1.40 +
1.41 +NONSHARABLE_CLASS( RMMFAudioPolicyProxy ): public RMmfSessionBase
1.42 +/**
1.43 +*@internalTechnology
1.44 +*/
1.45 + {
1.46 +public:
1.47 + IMPORT_C TInt Open(RServer2& aPolicyServerHandle);
1.48 + IMPORT_C TInt CreateServer(RServer2& aPolicyServerHandle);
1.49 + IMPORT_C TInt SetDevSoundInfo(TMMFDevSoundInfo& aDevSoundInfo);
1.50 + IMPORT_C void MakeRequest(TMMFAudioPolicyPrioritySettings& aPrioritySettings);
1.51 + IMPORT_C TInt UpdateState(TMMFAudioPolicyPrioritySettings& aPrioritySettings);
1.52 + IMPORT_C void ReceiveEvents(TMMFAudioPolicyEventPckg& aEventPckg, TRequestStatus& aStatus);
1.53 + IMPORT_C TInt CancelReceiveEvents();
1.54 + IMPORT_C TInt GetPlayFormatsSupported(RMdaDevSound::TSoundFormatsSupportedBuf& aPlayFormatsSupported);
1.55 + IMPORT_C TInt GetRecordFormatsSupported(RMdaDevSound::TSoundFormatsSupportedBuf& aRecordFormatsSupported);
1.56 + IMPORT_C TInt GetPlayFormat(RMdaDevSound::TCurrentSoundFormatBuf& aPlayFormat);
1.57 + IMPORT_C TInt GetRecordFormat(RMdaDevSound::TCurrentSoundFormatBuf& aRecordFormat);
1.58 + IMPORT_C TInt LaunchRequests();
1.59 + IMPORT_C TInt RequestResourceNotification(TUid aNotificationEventUid, const TDesC8& aNotificationData = KNullDesC8);
1.60 + IMPORT_C TInt CancelRequestResourceNotification(TUid aNotificationEventUid);
1.61 + IMPORT_C TInt StopNotification();
1.62 + IMPORT_C TInt IsRegisteredResourceNotification(TUid aEventType);
1.63 +private:
1.64 + TMMFAudioPolicyPrioritySettingsPckg iPsPckg;
1.65 + };
1.66 +
1.67 +#endif