|
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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef MMFBTPOLICYCLIENTSERVER_H |
|
17 #define MMFBTPOLICYCLIENTSERVER_H |
|
18 |
|
19 #include <mmf/common/mmfbase.h> |
|
20 |
|
21 // opcodes used in message passing between client and server |
|
22 enum TMMFPolicyServerRequest |
|
23 { |
|
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 |
|
39 }; |
|
40 |
|
41 enum TMMFAudioPolicyState |
|
42 { |
|
43 EMMFStatePlayData, |
|
44 EMMFStateRecordData, |
|
45 EMMFStatePlayTone, |
|
46 EMMFStatePlayDTMFString, |
|
47 EMMFStatePlayToneSequence, |
|
48 EMMFStateStopped, |
|
49 EMMFStateClosed, |
|
50 EMMFStatePaused, |
|
51 EMMFStatePlayDualTone, |
|
52 EMMFStateNotified, |
|
53 EMMFStateCompleted |
|
54 }; |
|
55 |
|
56 |
|
57 class TMMFAudioPolicyPrioritySettings |
|
58 /** |
|
59 *@internalTechnology |
|
60 */ |
|
61 { |
|
62 public: |
|
63 TInt iPriority; |
|
64 TMdaPriorityPreference iPref; |
|
65 TMMFAudioPolicyState iState; |
|
66 TBool iCapabilities; |
|
67 }; |
|
68 |
|
69 class TMMFResourceNotificationSettings |
|
70 /** |
|
71 *@internalTechnology |
|
72 */ |
|
73 { |
|
74 public: |
|
75 TUid iNotificationUid; |
|
76 TBufC8<256> iNotificationDelay; |
|
77 }; |
|
78 |
|
79 typedef TPckgBuf<TMMFAudioPolicyPrioritySettings> TMMFAudioPolicyPrioritySettingsPckg; |
|
80 typedef TPckgBuf<TMMFResourceNotificationSettings> TMMFAudioPolicyResourceNotificationSettingsPckg; |
|
81 |
|
82 #endif |