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