sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description: This file contains priority and preference codes for
|
sl@0
|
15 |
* audio clients of the MMF DevSound. These priority and
|
sl@0
|
16 |
* preference settings allow the Audio Policy Server making
|
sl@0
|
17 |
* decisions regarding play requests received from the clients.
|
sl@0
|
18 |
*
|
sl@0
|
19 |
* Symbian allows S60 applications to use the upper 16 bits of
|
sl@0
|
20 |
* the Priority Preference value. Unique assignments of these
|
sl@0
|
21 |
* upper bits allow the Audio Policy Server to make decisions
|
sl@0
|
22 |
* in 'special' cases, in which the result may be a refusal,
|
sl@0
|
23 |
* modification or substituing of the request based on the
|
sl@0
|
24 |
* profile settings, call status and other audio activities.
|
sl@0
|
25 |
*
|
sl@0
|
26 |
*/
|
sl@0
|
27 |
|
sl@0
|
28 |
|
sl@0
|
29 |
#ifndef AUDIOPREFERENCE_H
|
sl@0
|
30 |
#define AUDIOPREFERENCE_H
|
sl@0
|
31 |
|
sl@0
|
32 |
#include <e32base.h>
|
sl@0
|
33 |
|
sl@0
|
34 |
//** Priorities
|
sl@0
|
35 |
const TUint KAudioPriorityCSEmergencyCallDownlink = 100; // CAP : NONE (Valid only for phone App SID: 0x100058B3)
|
sl@0
|
36 |
const TUint KAudioPriorityCSEmergencyCallUplink = 100; // CAP : NONE (Valid only for phone App SID: 0x100058B3)
|
sl@0
|
37 |
const TUint KAudioPriorityPhoneCall = 100;
|
sl@0
|
38 |
const TUint KAudioPriorityCSCallUplink = 100;
|
sl@0
|
39 |
const TUint KAudioPriorityCSCallDownlink = 100;
|
sl@0
|
40 |
const TUint KAudioPriorityTextToSpeechCall = 100;
|
sl@0
|
41 |
const TUint KAudioPriorityVoiceDial = 99;
|
sl@0
|
42 |
const TUint KAudioPriorityAlarm = 95;
|
sl@0
|
43 |
const TUint KAudioPriorityPocAudioUplink = 95;
|
sl@0
|
44 |
const TUint KAudioPriorityPocAudioDownlink = 95;
|
sl@0
|
45 |
const TUint KAudioPriorityIncomingPocCall = 95;
|
sl@0
|
46 |
const TUint KAudioPriorityVideoRecording = 93;
|
sl@0
|
47 |
const TUint KAudioPriorityRecvMsg = 90;
|
sl@0
|
48 |
const TUint KAudioPriorityRealOnePlayer = 80;
|
sl@0
|
49 |
const TUint KAudioPriorityRecording = 80;
|
sl@0
|
50 |
const TUint KAudioPrioritySmilPlayer = 80;
|
sl@0
|
51 |
const TUint KAudioPriorityMmsViewer = 80;
|
sl@0
|
52 |
const TUint KAudioPriorityUPnPRemotePlayback = 80; // CAP: None
|
sl@0
|
53 |
const TUint KAudioPriorityFMRadio = 79;
|
sl@0
|
54 |
const TUint KAudioPrioritySwisPlayback = 74;
|
sl@0
|
55 |
const TUint KAudioPriorityPocStartNotification = 70;
|
sl@0
|
56 |
const TUint KAudioPriorityPocEndNotification = 70;
|
sl@0
|
57 |
const TUint KAudioPriorityPocQueuedNotification = 70;
|
sl@0
|
58 |
const TUint KAudioPriorityWarningTone = 70;
|
sl@0
|
59 |
const TUint KAudioPriorityRingingTonePreview = 60;
|
sl@0
|
60 |
const TUint KAudioPriorityPreview = 60;
|
sl@0
|
61 |
const TUint KAudioPriorityPhonePower = 50;
|
sl@0
|
62 |
const TUint KAudioPriorityLowLevel = 55;
|
sl@0
|
63 |
const TUint KAudioPriorityKeyPress = 45;
|
sl@0
|
64 |
const TUint KAudioPriorityDTMFString = 45;
|
sl@0
|
65 |
const TUint KAudioPriorityDtmfKeyPress = 45;
|
sl@0
|
66 |
const TUint KAudioPriorityUnknownDTMFString = 45; // CAP: WDD
|
sl@0
|
67 |
const TUint KAudioPriorityKeyPressNonDTMFWithFeedback = 45;
|
sl@0
|
68 |
const TUint KAudioPriorityVoipAudioUplink = 100;
|
sl@0
|
69 |
const TUint KAudioPriorityVoipAudioDownlink = 100;
|
sl@0
|
70 |
const TUint KAudioPriorityNetMsg = 75;
|
sl@0
|
71 |
const TUint KAudioPrioritySpecialInformationTone = 75;
|
sl@0
|
72 |
const TUint KAudioPriorityRingingTone = 75;
|
sl@0
|
73 |
const TUint KAudioPriorityCameraTone = 45;
|
sl@0
|
74 |
const TUint KAudioPriorityVisualization = 40;
|
sl@0
|
75 |
|
sl@0
|
76 |
// Legacy definition. Do not modify these values - Begins
|
sl@0
|
77 |
const TUint KAudioPriorityUnknownVoipAudioUplink = 80; // CAP: WDD
|
sl@0
|
78 |
const TUint KAudioPriorityUnknownVoipAudioUplinkNonSignal = 80; // CAP: WDD
|
sl@0
|
79 |
const TUint KAudioPriorityUnknownVoipAudioDownlink = 80; // CAP: WDD
|
sl@0
|
80 |
// Legacy definition. Do not modify these values - Ends
|
sl@0
|
81 |
|
sl@0
|
82 |
|
sl@0
|
83 |
//** Preferences
|
sl@0
|
84 |
// The following constant defines the maximum preference value defined by the
|
sl@0
|
85 |
// S60 platform. Values ranging from 0x00000000 - 0x06000000 are reserved for
|
sl@0
|
86 |
// preference values used by S60 applications.
|
sl@0
|
87 |
const TUint KAudioPrefMaxValue = 0x06000000;
|
sl@0
|
88 |
|
sl@0
|
89 |
const TUint KAudioPrefSwisPlayback = 0x05330001;
|
sl@0
|
90 |
const TUint KAudioPrefVoipAudioUplinkNonSignal = 0x05230001;
|
sl@0
|
91 |
const TUint KAudioPrefVoipAudioUplink = 0x05220001;
|
sl@0
|
92 |
const TUint KAudioPrefVoipAudioDownlink = 0x05210001;
|
sl@0
|
93 |
const TUint KAudioPrefCSEmergencyCallDownlink = 0x05150001; // CAP : NONE (Valid only for phone App SID: 0x100058B3)
|
sl@0
|
94 |
const TUint KAudioPrefCSEmergencyCallUplink = 0x05140001; // CAP : NONE (Valid only for phone App SID: 0x100058B3)
|
sl@0
|
95 |
const TUint KAudioPrefVoipEmergencyCallDownlink = 0x05140002; // CAP : None (Valid only for MCE Server SID: 0x1020E4C7)
|
sl@0
|
96 |
const TUint KAudioPrefVoipEmergencyCallUplink = 0x05140003; // CAP : None (Valid only for MCE Server SID: 0x1020E4C7)
|
sl@0
|
97 |
const TUint KAudioPrefVoipEmergencyCallUplinkNonSignal = 0x05140004; // CAP : None (Valid only for MCE Server SID: 0x1020E4C7)
|
sl@0
|
98 |
const TUint KAudioPrefPocAudioUplink = 0x05130001;
|
sl@0
|
99 |
const TUint KAudioPrefPocAudioDownlink = 0x05120001;
|
sl@0
|
100 |
const TUint KAudioPrefIncomingPocCall = 0x05110001;
|
sl@0
|
101 |
const TUint KAudioPrefRadioAudioEvent = 0x03000001;
|
sl@0
|
102 |
const TUint KAudioPrefUPnPPlayback = 0x01610001; // CAP: NONE
|
sl@0
|
103 |
const TUint KAudioPrefSmilPlayer = 0x01450001;
|
sl@0
|
104 |
const TUint KAudioPrefMmsViewer = 0x01440001;
|
sl@0
|
105 |
const TUint KAudioPrefRealOneLocalPlayback = 0x01420001;
|
sl@0
|
106 |
const TUint KAudioPrefRealOneStreaming = 0x01410001;
|
sl@0
|
107 |
const TUint KAudioPrefTextToSpeechCall = 0x01370001;
|
sl@0
|
108 |
const TUint KAudioPrefCSCallDownlink = 0x01360001;
|
sl@0
|
109 |
const TUint KAudioPrefCSCallUplink = 0x01350001;
|
sl@0
|
110 |
const TUint KAudioPrefIncomingCall = 0x01340001;
|
sl@0
|
111 |
const TUint KAudioPrefIncomingDataCall = 0x01320001;
|
sl@0
|
112 |
const TUint KAudioPrefAlarmClock = 0x01220001;
|
sl@0
|
113 |
const TUint KAudioPrefCalendarAlarm = 0x01210001;
|
sl@0
|
114 |
const TUint KAudioPrefNewSMS = 0x01120001;
|
sl@0
|
115 |
const TUint KAudioPrefNewSpecialMessage = 0x01110001;
|
sl@0
|
116 |
const TUint KAudioPrefVideoRecording = 0x00950001;
|
sl@0
|
117 |
const TUint KAudioPrefVoiceRecStart = 0x00930001;
|
sl@0
|
118 |
const TUint KAudioPrefVoiceRecStop = 0x00910001;
|
sl@0
|
119 |
const TUint KAudioPrefPocQueuedNotification = 0x00750001;
|
sl@0
|
120 |
const TUint KAudioPrefPocEndNotification = 0x00740001;
|
sl@0
|
121 |
const TUint KAudioPrefPocStartNotification = 0x00730001;
|
sl@0
|
122 |
const TUint KAudioPrefWarning = 0x00710001;
|
sl@0
|
123 |
const TUint KAudioPrefVoiceStarting = 0x00630001;
|
sl@0
|
124 |
const TUint KAudioPrefConfirmation = 0x00320001;
|
sl@0
|
125 |
const TUint KAudioPrefDefaultTone = 0x00310001;
|
sl@0
|
126 |
const TUint KAudioDTMFString = 0x00150001;
|
sl@0
|
127 |
const TUint KAudioPrefUnknownDTMFString = 0x00150002; // CAP: WDD
|
sl@0
|
128 |
const TUint KAudioPrefKeyPressNonDTMF = 0x00140001;
|
sl@0
|
129 |
const TUint KAudioPrefKeyPressNonDTMFWithFeedback = 0x00140002; // CAP: WDD
|
sl@0
|
130 |
const TUint KAudioPrefKeyDownDTMF = 0x00130001;
|
sl@0
|
131 |
const TUint KAudioPrefCamera = 0x00110001;
|
sl@0
|
132 |
const TUint KAudioPrefKeyPressPreview = 0x00080001;
|
sl@0
|
133 |
const TUint KAudioPrefRingFilePreviewVibra = 0x00070001;
|
sl@0
|
134 |
const TUint KAudioPrefVoiceRec = 0x00060001;
|
sl@0
|
135 |
const TUint KAudioPrefRingFilePreview = 0x00040001;
|
sl@0
|
136 |
const TUint KAudioPrefVocosPlayback = 0x00030001;
|
sl@0
|
137 |
const TUint KAudioPrefVocosTrain = 0x00020001;
|
sl@0
|
138 |
const TUint KAudioPrefVocosRecog = 0x00010001;
|
sl@0
|
139 |
|
sl@0
|
140 |
// Legacy definition. Do not modify these values - Begins
|
sl@0
|
141 |
const TUint KAudioPrefUnknownVoipAudioUplink = 0x05110006; // CAP: WDD
|
sl@0
|
142 |
const TUint KAudioPrefUnknownVoipAudioUplinkNonSignal = 0x05110008; // CAP: WDD
|
sl@0
|
143 |
const TUint KAudioPrefUnknownVoipAudioDownlink = 0x05110007; // CAP: WDD
|
sl@0
|
144 |
// Legacy definition. Do not modify these values - Ends
|
sl@0
|
145 |
|
sl@0
|
146 |
const TUint KAudioPrefVisualization = 0x05350001;
|
sl@0
|
147 |
const TUint KAudioPrefRingGoing = 0x00870001;
|
sl@0
|
148 |
const TUint KAudioPrefBusy = 0x00860001;
|
sl@0
|
149 |
const TUint KAudioPrefCallWaiting = 0x00850001;
|
sl@0
|
150 |
const TUint KAudioPrefReorder = 0x00840001;
|
sl@0
|
151 |
const TUint KAudioPrefCongestion = 0x00830001;
|
sl@0
|
152 |
const TUint KAudioPrefSpecialInformation = 0x00820001;
|
sl@0
|
153 |
const TUint KAudioPrefRadioNotAvailable = 0x00810001;
|
sl@0
|
154 |
const TUint KAudioPrefVoiceAid = 0x00411441;
|
sl@0
|
155 |
|
sl@0
|
156 |
#endif // AUDIOPREFERENCE_H
|