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 MMFPOLICYCLIENTSERVER_H sl@0: #define MMFPOLICYCLIENTSERVER_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: // All the "play" states must be LOWER in value than EMMFStateStopped! sl@0: enum TMMFAudioPolicyState sl@0: { sl@0: EMMFStatePlayData, // 0 sl@0: EMMFStateRecordData, // 1 sl@0: EMMFStatePlayTone, // 2 sl@0: EMMFStatePlayDTMFString, // 3 sl@0: EMMFStatePlayToneSequence, // 4 sl@0: EMMFStateStopped, // 5 sl@0: EMMFStateClosed, // 6 sl@0: EMMFStatePaused, // 7 sl@0: EMMFStatePlayDualTone, // 8 sl@0: EMMFStateNotified, // 9 sl@0: EMMFStateCompleted, // 10 sl@0: EMMFStateWaitingForResource,// 11 sl@0: EMMFStatePreempted, // 12 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