Update contrib.
1 // Copyright (c) 1999-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 MMFPOLICYCLIENTSERVER_H
17 #define MMFPOLICYCLIENTSERVER_H
19 #include <mmf/common/mmfbase.h>
21 // opcodes used in message passing between client and server
22 enum TMMFPolicyServerRequest
24 EMMFPolicySetDevSoundInfo,
25 EMMFPolicyMakeRequest,
26 EMMFPolicyCancelMakeRequest,
27 EMMFPolicyUpdateState,
28 EMMFPolicyReceiveEvents,
29 EMMFPolicyCancelReceiveEvents,
30 EMMFPolicyGetPlayFormatsSupported,
31 EMMFPolicyGetRecordFormatsSupported,
32 EMMFPolicyGetPlayFormat,
33 EMMFPolicyGetRecordFormat,
34 EMMFPolicyLaunchRequests,
35 EMMFPolicyRequestResourceNotification,
36 EMMFPolicyCancelRequestResourceNotification,
37 EMMFPolicyStopNotification,
38 EMMFPolicyGetResourceNotificationEvent
41 // All the "play" states must be LOWER in value than EMMFStateStopped!
42 enum TMMFAudioPolicyState
44 EMMFStatePlayData, // 0
45 EMMFStateRecordData, // 1
46 EMMFStatePlayTone, // 2
47 EMMFStatePlayDTMFString, // 3
48 EMMFStatePlayToneSequence, // 4
49 EMMFStateStopped, // 5
52 EMMFStatePlayDualTone, // 8
53 EMMFStateNotified, // 9
54 EMMFStateCompleted, // 10
55 EMMFStateWaitingForResource,// 11
56 EMMFStatePreempted, // 12
60 class TMMFAudioPolicyPrioritySettings
67 TMdaPriorityPreference iPref;
68 TMMFAudioPolicyState iState;
72 class TMMFResourceNotificationSettings
78 TUid iNotificationUid;
79 TBufC8<256> iNotificationDelay;
82 typedef TPckgBuf<TMMFAudioPolicyPrioritySettings> TMMFAudioPolicyPrioritySettingsPckg;
83 typedef TPckgBuf<TMMFResourceNotificationSettings> TMMFAudioPolicyResourceNotificationSettingsPckg;