mmserv/callaudiocontrol/inc/CallAudioControlUtility.h
changeset 0 71ca22bcf22a
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Holds data types for CallAudioControl
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CALLAUDIOCONTROLUTILITY_H
       
    19 #define CALLAUDIOCONTROLUTILITY_H
       
    20 
       
    21 // consts for volume:
       
    22 
       
    23 const TInt KMinVolume = 0;
       
    24 const TInt KMaxVolume = 10;
       
    25 
       
    26 #ifdef __SERIES60_31__ /* 3.1 only */
       
    27     const TUid KUidCallInfo = {0x101F8787}; 
       
    28     const TUid KUidVolume = {0x101F8784}; 
       
    29     const TUid KUidMute = {0x100052FB};	
       
    30     const TUint32 KTelephonyCallState = 0x00000004;
       
    31     enum 
       
    32         {
       
    33         ECmdMuteMic = 5
       
    34         };
       
    35 #else		
       
    36     /* 3.2 and beyond: */
       
    37     const TUid KUidCallInfo = {0x102029AC}; 
       
    38     const TUid KUidVolume = {0x102828B1}; 
       
    39     const TUid KUidMute = {0x102029A9}; 
       
    40     const TUint32 KTelephonyCallState = 0x00000001;
       
    41     #ifndef __SERIES60_32__ /* 5.0 and beyond */
       
    42         /* CallAudioControl is in mw and TPSTelMicMuteState is defined in app
       
    43          * layer (epoc32/include/platform/app/telmicmutestatuspskeys.h in 9.2).
       
    44          * Including this header will create upward dependency . Hence we are
       
    45          * redefining the enum here. */
       
    46         enum TPSTelMicMuteState
       
    47             {
       
    48             EPSTelMicMuteStateUninitialized = 0,
       
    49             EPSTelMicMuteOn,
       
    50             EPSTelMicMuteOff
       
    51             };
       
    52     #endif /*#ifndef __SERIES60_32__*/
       
    53 #endif /*#ifdef __SERIES60_31__*/
       
    54 
       
    55 const TUint32 KTelephonyEPVolume = 0x00000001;
       
    56 const TUint32 KTelephonyIHFVolume = 0x00000002;
       
    57 
       
    58 const TUint32 KTelephonyMute = 0x00000001;
       
    59 
       
    60 enum TCallState {
       
    61     ECallStateUninitialized,
       
    62     ECallStateNone,
       
    63     ECallStateAlerting,
       
    64     ECallStateRinging,
       
    65     ECallStateDialling,
       
    66     ECallStateAnswering,
       
    67     ECallStateDisconnecting,
       
    68     ECallStateConnected,
       
    69     ECallStateHold
       
    70 };
       
    71 
       
    72 enum TMicMuteState 
       
    73 {
       
    74 	EMuteUninitialized,
       
    75 	EMuteOn,
       
    76 	EMuteOff
       
    77 };
       
    78    
       
    79 enum TAction 
       
    80 {
       
    81 	ECallState,
       
    82 	EEPVolume,
       
    83 	EIHFVolume,
       
    84 	EMute
       
    85 };
       
    86 
       
    87 #endif // CALLAUDIOCONTROLUTILITY_H
       
    88 
       
    89 // End of file