sl@0: // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #ifndef MMFBTPOLICYCLIENTSERVER_H sl@0: #define MMFBTPOLICYCLIENTSERVER_H sl@0: sl@0: #include sl@0: sl@0: // opcodes used in message passing between client and server sl@0: enum TMMFPolicyServerRequest sl@0: { sl@0: EMMFPolicySetDevSoundInfo, sl@0: EMMFPolicyMakeRequest, sl@0: EMMFPolicyCancelMakeRequest, sl@0: EMMFPolicyUpdateState, sl@0: EMMFPolicyReceiveEvents, sl@0: EMMFPolicyCancelReceiveEvents, sl@0: EMMFPolicyGetPlayFormatsSupported, sl@0: EMMFPolicyGetRecordFormatsSupported, sl@0: EMMFPolicyGetPlayFormat, sl@0: EMMFPolicyGetRecordFormat, sl@0: EMMFPolicyLaunchRequests, sl@0: EMMFPolicyRequestResourceNotification, sl@0: EMMFPolicyCancelRequestResourceNotification, sl@0: EMMFPolicyStopNotification, sl@0: EMMFPolicyGetResourceNotificationEvent sl@0: }; sl@0: sl@0: enum TMMFAudioPolicyState sl@0: { sl@0: EMMFStatePlayData, sl@0: EMMFStateRecordData, sl@0: EMMFStatePlayTone, sl@0: EMMFStatePlayDTMFString, sl@0: EMMFStatePlayToneSequence, sl@0: EMMFStateStopped, sl@0: EMMFStateClosed, sl@0: EMMFStatePaused, sl@0: EMMFStatePlayDualTone, sl@0: EMMFStateNotified, sl@0: EMMFStateCompleted sl@0: }; sl@0: sl@0: sl@0: class TMMFAudioPolicyPrioritySettings sl@0: /** sl@0: *@internalTechnology sl@0: */ sl@0: { sl@0: public: sl@0: TInt iPriority; sl@0: TMdaPriorityPreference iPref; sl@0: TMMFAudioPolicyState iState; sl@0: TBool iCapabilities; sl@0: }; sl@0: sl@0: class TMMFResourceNotificationSettings sl@0: /** sl@0: *@internalTechnology sl@0: */ sl@0: { sl@0: public: sl@0: TUid iNotificationUid; sl@0: TBufC8<256> iNotificationDelay; sl@0: }; sl@0: sl@0: typedef TPckgBuf TMMFAudioPolicyPrioritySettingsPckg; sl@0: typedef TPckgBuf TMMFAudioPolicyResourceNotificationSettingsPckg; sl@0: sl@0: #endif