<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<title>CTC++ Coverage Report - Execution Profile - cimalertmanager.cpp</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="keyword" content="CTC++, Testwell, Test Coverage Analyzer">
<meta name="date" content="Wed Sep 30 16:37:09 2009">
<meta name="generator" content="Testwell CTC++ add-on utility ctc2html v2.5">
<link rel="stylesheet" type="text/css" href="ctc.css">
<link rel="contents" href="index.html">
</head>
<body text="#150040" bgcolor="#ffffff" link="#000088" vlink="#007788">
<span class="head1">CTC++ Coverage Report - </span>
<span class="head2">Execution Profile</span>
<span class="head3"> #1/8</span><br><br>
<span class="black"><a href="indexF.html" target="_top">Directory Summary</a> | <a href="index.html" target="_top">Files Summary</a> | <a href="indexB1.html" target="_top">Functions Summary</a> | <a href="indexD1.html">Execution Profile</a><br>
To files: <a href="indexD1.html">First</a> | Previous | <a href="indexD2.html">Next</a> | <a href="indexD8.html">Last</a> | <a href="indexA.html#a1">Index</a> | <a href="indexD1.html" target="_top">No Index</a></span><br><br>
<span class="black"><strong>File: \meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp</strong></span><br>
<span class="black"><strong>Instrumentation mode: </strong>function-decision</span><br>
<span class="black"><strong>TER: </strong></span><span class="red">46 % ( 78/168)</span><br><br>
<table cellspacing="0">
<tr><td align="right" class="black"><strong>Start/</strong> </td><td align="right" class="black"><strong>End/</strong> </td><td> </td><td> </td><td> </td></tr>
<tr><td align="right" class="black"><strong>True</strong> </td><td align="right" class="black"><strong>False</strong> </td><td align="right" class="black"><strong>-</strong></td><td align="right" class="black"> <a href="indexD1.html#ut1" title="First untested"><strong>Line</strong></a> </td><td class="black"><strong>Source</strong></td></tr>
<tr><td colspan="5"><hr></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 1 </td><td class="black_source">/*</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 2 </td><td class="black_source"> * ==============================================================================</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 3 </td><td class="black_source"> * Name : cimalertmanager.cpp</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 4 </td><td class="black_source"> * Part of : conversations/instantmessagesalert</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 5 </td><td class="black_source"> * Description : This class gives interface to play IM message alert</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 6 </td><td class="black_source"> * Version : %version: 3 %</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 7 </td><td class="black_source"> *</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 8 </td><td class="black_source"> * Copyright © 2009 Nokia. All rights reserved..</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 9 </td><td class="black_source"> * This material, including documentation and any related </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 10 </td><td class="black_source"> * computer programs, is protected by copyright controlled by </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 11 </td><td class="black_source"> * Nokia Corporation. All rights are reserved. Copying, </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 12 </td><td class="black_source"> * including reproducing, storing, adapting or translating, any </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 13 </td><td class="black_source"> * or all of this material requires the prior written consent of </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 14 </td><td class="black_source"> * Nokia Corporation. This material also contains confidential </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 15 </td><td class="black_source"> * information which may not be disclosed to others without the </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 16 </td><td class="black_source"> * prior written consent of Nokia Corporation.</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 17 </td><td class="black_source"> * ==============================================================================</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 18 </td><td class="black_source"> */</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 19 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 20 </td><td class="black_source">// INCLUDE FILES</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 21 </td><td class="black_source">#include "cimalertmanager.h"</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 22 </td><td class="black_source">#include "imalertdebugprint.h" </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 23 </td><td class="black_source">#include "mimalertmanagerobserver.h"</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 24 </td><td class="black_source">#include "mimalertnotifierinterface.h"</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 25 </td><td class="black_source">#include "imalertnotifierfactory.h"</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 26 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 27 </td><td class="black_source">#include <MProfileEngine.h></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 28 </td><td class="black_source">#include <pathinfo.h></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 29 </td><td class="black_source">#include <mda/common/resource.h></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 30 </td><td class="black_source">#include <audiopreference.h></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 31 </td><td class="black_source">#include <bautils.h></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 32 </td><td class="black_source">#include <hwrmvibrasdkcrkeys.h></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 33 </td><td class="black_source">#include <coreapplicationuisdomainpskeys.h></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 34 </td><td class="black_source">#include <ProfileEngineSDKCRKeys.h></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 35 </td><td class="black_source">#include <MProfileTones.h></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 36 </td><td class="black_source">#include <TProfileToneSettings.h></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 37 </td><td class="black_source">#include <MProfile.h></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 38 </td><td class="black_source">#include <HWRMVibra.h></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 39 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 40 </td><td class="black_source">//to get message tone file</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 41 </td><td class="black_source">#include <cvimpstsettingsstore.h></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 42 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 43 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 44 </td><td class="black_source">// CONSTANTS</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 45 </td><td class="black_source">const TInt KMinVolumeLevel( 1 );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 46 </td><td class="black_source">const TInt KMaxVolumeLevel( 10 );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 47 </td><td class="black_source">const TInt KToneInterval( 1000000 ); // 1 second pause between tones</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 48 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 49 </td><td class="black_source">_LIT( KChatRngMimeType, "application/vnd.nokia.ringing-tone" );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 50 </td><td class="black_source">_LIT( KBeepOnceSound, "beep.rng" );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 51 </td><td class="black_source">_LIT( KProfileSilentTone, "No_Sound.wav" ); </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 52 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 53 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 54 </td><td class="black_source">// ============================ MEMBER FUNCTIONS ===============================</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 55 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 56 </td><td class="black_source">// -----------------------------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 57 </td><td class="black_source">// CIMAlertManager::CIMAlertManager</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 58 </td><td class="black_source">// C++ default constructor can NOT contain any code, that</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 59 </td><td class="black_source">// might leave.</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 60 </td><td class="black_source">// -----------------------------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 61 </td><td class="black_source">//</td></tr>
<tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr>
<tr><td align="right" class="black_profile"><a name="a1"></a>17 </td><td align="right" class="black_profile">17 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 62 </td><td class="black_source">CIMAlertManager::CIMAlertManager()</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 63 </td><td class="black_source"> : iAudioPlayerStatus( EAudioPlayerNotCreated ),</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 64 </td><td class="black_source"> iTonePlayerStatus( EAudioPlayerNotCreated ),</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 65 </td><td class="black_source"> iIsPlayingDefaultIMSound( EFalse ),</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 66 </td><td class="black_source"> iCallState (EFalse)</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 67 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 68 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 69 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 70 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 71 </td><td class="black_source">// CIMAlertManager::ConstructL</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 72 </td><td class="black_source">// (other items were commented in a header).</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 73 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 74 </td><td class="black_source">//</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 75 </td><td class="black_source"></td></tr>
<tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr>
<tr><td align="right" class="black_profile"><a name="a2"></a>17 </td><td align="right" class="black_profile">17 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 76 </td><td class="black_source">void CIMAlertManager::ConstructL()</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 77 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 78 </td><td class="black_source"> CHAT_DP_FUNC_ENTER("ConstructL"); </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 79 </td><td class="black_source"> iProfileApi = CreateProfileEngineL();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 80 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 81 </td><td class="black_source"> User::LeaveIfError( iFs.Connect() );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 82 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 83 </td><td class="black_source"> CHAT_DP_TXT("CMdaAudioPlayerUtility::NewL()" );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 84 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 85 </td><td class="black_source"> iAudioPlayer = CMdaAudioPlayerUtility::NewL( *this );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 86 </td><td class="black_source"> iAudioPlayerStatus = EAudioPlayerReady;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 87 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 88 </td><td class="black_source"> CHAT_DP_TXT("CMdaAudioToneUtility::NewL()" );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 89 </td><td class="black_source"> iTonePlayer = CMdaAudioToneUtility::NewL( *this );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 90 </td><td class="black_source"> iTonePlayerStatus = EAudioPlayerReady;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 91 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 92 </td><td class="black_source"> iProfilesRepository = CRepository::NewL( KCRUidProfileEngine );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 93 </td><td class="black_source"> iVibraRepository = CRepository::NewL( KCRUidVibraCtrl );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 94 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 95 </td><td class="black_source"> // Get initial settings from active profile</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 96 </td><td class="black_source"> iRingingVolumeNotifyHandler = CCenRepNotifyHandler::NewL( *this, </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 97 </td><td class="black_source"> *iProfilesRepository,</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 98 </td><td class="black_source"> CCenRepNotifyHandler::EIntKey,</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 99 </td><td class="black_source"> KProEngActiveRingingVolume );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 100 </td><td class="black_source"> iRingingVolumeNotifyHandler->StartListeningL();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 101 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 102 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 103 </td><td class="black_source"> iRingingTypeNotifyHandler = CCenRepNotifyHandler::NewL( *this, </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 104 </td><td class="black_source"> *iProfilesRepository,</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 105 </td><td class="black_source"> CCenRepNotifyHandler::EIntKey,</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 106 </td><td class="black_source"> KProEngActiveRingingType );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 107 </td><td class="black_source"> iRingingTypeNotifyHandler->StartListeningL();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 108 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 109 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 110 </td><td class="black_source"> iVibraNotifyHandler = CCenRepNotifyHandler::NewL( *this, *iVibraRepository,</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 111 </td><td class="black_source"> CCenRepNotifyHandler::EIntKey,</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 112 </td><td class="black_source"> KVibraCtrlProfileVibraEnabled );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 113 </td><td class="black_source"> iVibraNotifyHandler->StartListeningL();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 114 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 115 </td><td class="black_source"> User::LeaveIfError( iProfilesRepository->Get( KProEngActiveRingingVolume, </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 116 </td><td class="black_source"> iRingingVolume ) );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 117 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 118 </td><td class="black_source"> User::LeaveIfError( iVibraRepository->Get( KVibraCtrlProfileVibraEnabled, </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 119 </td><td class="black_source"> iVibra ) );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 120 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 121 </td><td class="black_source"> User::LeaveIfError( iApaSession.Connect() );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 122 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 123 </td><td class="black_source"> // register for changes in message Tone quitting</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 124 </td><td class="black_source"> iNotifierAPI = IMAlertNotifierFactory::CreateNotifierL( this );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 125 </td><td class="black_source"> iNotifierAPI->ListenKeyChanges( MIMAlertNotifierInterface::EMSGToneQuitKey );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 126 </td><td class="black_source"> // also register for changes in call state </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 127 </td><td class="black_source"> iNotifierAPI->ListenKeyChanges( MIMAlertNotifierInterface::ECallState );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 128 </td><td class="black_source"> iToneFileName = HBufC::NewL( KMaxPath );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 129 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 130 </td><td class="black_source"> // Get path to beep once ringing tone, first check simple sound folder.</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 131 </td><td class="black_source"> TFileName beepFile = PathInfo::RomRootPath();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 132 </td><td class="black_source"> beepFile.Append( PathInfo::SimpleSoundsPath() );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 133 </td><td class="black_source"> beepFile.Append( KBeepOnceSound );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 134 </td><td class="black_source"> RFile file;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 135 </td><td class="black_source"> TInt openErr = file.Open( iFs, beepFile, EFileRead );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 136 </td><td class="black_source"> file.Close();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 137 </td><td class="black_source"> </td></tr>
<tr><td align="right" class="black_profile">17 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut1" href="indexD1.html#ut2">138</a> </td><td class="red_source"> if ( openErr == KErrNotFound || openErr == KErrPathNotFound )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 139 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 140 </td><td class="black_source"> // Check digital sounds folder</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 141 </td><td class="black_source"> beepFile.Zero();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 142 </td><td class="black_source"> beepFile.Append( PathInfo::RomRootPath() );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 143 </td><td class="black_source"> beepFile.Append( PathInfo::DigitalSoundsPath() );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 144 </td><td class="black_source"> beepFile.Append( KBeepOnceSound );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 145 </td><td class="black_source"> openErr = file.Open( iFs, beepFile, EFileRead );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 146 </td><td class="black_source"> file.Close();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 147 </td><td class="black_source"> } </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 148 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 149 </td><td class="black_source"> CHAT_DP( D_PLAIN_LIT( "CIMAlertManager::ConstructL() openErr = %d" ), openErr );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 150 </td><td class="black_source"> </td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="black_profile">17 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut2" href="indexD1.html#ut3">151</a> </td><td class="red_source"> if ( openErr == KErrNone )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 152 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 153 </td><td class="black_source"> iBeepRingingTone = beepFile.AllocL();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 154 </td><td class="black_source"> TPtrC ptr = iBeepRingingTone->Des();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 155 </td><td class="black_source"> CHAT_DP( D_PLAIN_LIT( "CIMAlertManager::ConstructL() iBeepRingingTone = %S" ), &ptr );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 156 </td><td class="black_source"> }</td></tr>
<tr><td align="right" class="red_profile"> </td><td align="right" class="red_profile"> </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 157 </td><td class="black_source"> else</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 158 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 159 </td><td class="black_source"> HandleError( openErr );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 160 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 161 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 162 </td><td class="black_source"> // get active ringing type, change events come to us later...</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 163 </td><td class="black_source"> iActiveProfile = iProfileApi->ActiveProfileL();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 164 </td><td class="black_source"> const MProfileTones& profileTones = iActiveProfile->ProfileTones();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 165 </td><td class="black_source"> const TProfileToneSettings& profileSettings = profileTones.ToneSettings();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 166 </td><td class="black_source"> iRingingType = profileSettings.iRingingType;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 167 </td><td class="black_source"> iActiveProfile->Release();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 168 </td><td class="black_source"> iActiveProfile = NULL; // prevent further usage</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 169 </td><td class="black_source"> // after this, active ringing type changes are notified via the cenrep</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 170 </td><td class="black_source"> // notify handler callback through HandleNotifyInt</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 171 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 172 </td><td class="black_source"> // TRAP to catch leaves, leaves with KErrNotSupported if vibra</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 173 </td><td class="black_source"> // is not supported</td></tr>
<tr><td align="right" class="black_profile">17 </td><td align="right" class="black_profile">17 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 174 </td><td class="black_source"> TRAPD( err, iVibrator = CHWRMVibra::NewL() );</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile"> </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut3" href="indexD1.html#ut4">174</a> </td><td class="red_profile"> catch (XLeaveException & l)</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile"> </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut4" href="indexD1.html#ut5">174</a> </td><td class="red_profile"> catch (...)</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="black_profile">17 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut5" href="indexD1.html#ut6">175</a> </td><td class="red_source"> if ( err == KErrNotSupported )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 176 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 177 </td><td class="black_source"> // Make sure it's NULL</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 178 </td><td class="black_source"> iVibrator = NULL;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 179 </td><td class="black_source"> }</td></tr>
<tr><td align="right" class="red_profile"> </td><td align="right" class="red_profile"> </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 180 </td><td class="black_source"> else</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 181 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 182 </td><td class="black_source"> // Leave with other errors e.g. KErrNoMemory</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 183 </td><td class="black_source"> User::LeaveIfError( err );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 184 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 185 </td><td class="black_source"> iSettingsStore = CVIMPSTSettingsStore::NewL();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 186 </td><td class="black_source"> CHAT_DP_FUNC_DONE("ConstructL");</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 187 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 188 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 189 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 190 </td><td class="black_source">// CIMAlertManager::NewL</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 191 </td><td class="black_source">// (other items were commented in a header).</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 192 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr>
<tr><td align="right" class="black_profile"><a name="a3"></a>17 </td><td align="right" class="black_profile">0 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 193 </td><td class="black_source">EXPORT_C CIMAlertManager* CIMAlertManager::NewL()</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 194 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 195 </td><td class="black_source"> CIMAlertManager* self = new( ELeave ) CIMAlertManager();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 196 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 197 </td><td class="black_source"> CleanupStack::PushL( self );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 198 </td><td class="black_source"> self->ConstructL();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 199 </td><td class="black_source"> CleanupStack::Pop( self );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 200 </td><td class="black_source"></td></tr>
<tr><td align="right" class="black_profile">17 </td><td align="right" class="red_profile"> </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 201 </td><td class="black_source"> return self;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 202 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 203 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 204 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 205 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 206 </td><td class="black_source">// CIMAlertManager::~CIMAlertManager</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 207 </td><td class="black_source">// (other items were commented in a header).</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 208 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr>
<tr><td align="right" class="black_profile"><a name="a4"></a>17 </td><td align="right" class="black_profile">17 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 209 </td><td class="black_source">CIMAlertManager::~CIMAlertManager()</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 210 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 211 </td><td class="black_source"> CHAT_DP_FUNC_ENTER("~CIMAlertManager");</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 212 </td><td class="black_source"> Stop(); // Stops possible playback</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 213 </td><td class="black_source"></td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="black_profile">17 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut6" href="indexD1.html#ut7">214</a> </td><td class="red_source"> if ( iActiveProfile )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 215 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 216 </td><td class="black_source"> iActiveProfile->Release();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 217 </td><td class="black_source"> iActiveProfile = NULL; // prevent further usage</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 218 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 219 </td><td class="black_source"></td></tr>
<tr><td align="right" class="black_profile">17 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut7" href="indexD1.html#ut8">220</a> </td><td class="red_source"> if ( iProfileApi ) </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 221 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 222 </td><td class="black_source"> iProfileApi->Release();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 223 </td><td class="black_source"> iProfileApi = NULL;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 224 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 225 </td><td class="black_source"></td></tr>
<tr><td align="right" class="black_profile">17 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut8" href="indexD1.html#ut9">226</a> </td><td class="red_source"> if ( iVibraNotifyHandler )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 227 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 228 </td><td class="black_source"> iVibraNotifyHandler->StopListening();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 229 </td><td class="black_source"> delete iVibraNotifyHandler;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 230 </td><td class="black_source"> iVibraNotifyHandler = NULL;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 231 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 232 </td><td class="black_source"> </td></tr>
<tr><td align="right" class="black_profile">17 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut9" href="indexD1.html#ut10">233</a> </td><td class="red_source"> if ( iRingingTypeNotifyHandler )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 234 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 235 </td><td class="black_source"> iRingingTypeNotifyHandler->StopListening();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 236 </td><td class="black_source"> delete iRingingTypeNotifyHandler;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 237 </td><td class="black_source"> iRingingTypeNotifyHandler = NULL;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 238 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 239 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 240 </td><td class="black_source"></td></tr>
<tr><td align="right" class="black_profile">17 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut10" href="indexD1.html#ut11">241</a> </td><td class="red_source"> if ( iRingingVolumeNotifyHandler )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 242 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 243 </td><td class="black_source"> iRingingVolumeNotifyHandler->StopListening();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 244 </td><td class="black_source"> delete iRingingVolumeNotifyHandler;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 245 </td><td class="black_source"> iRingingVolumeNotifyHandler = NULL;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 246 </td><td class="black_source"> }</td></tr>
<tr><td align="right" class="black_profile">17 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut11" href="indexD1.html#ut12">247</a> </td><td class="red_source"> if(iProfilesRepository)</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 248 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 249 </td><td class="black_source"> delete iProfilesRepository;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 250 </td><td class="black_source"> iProfilesRepository = NULL;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 251 </td><td class="black_source"> }</td></tr>
<tr><td align="right" class="black_profile">17 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut12" href="indexD1.html#ut13">252</a> </td><td class="red_source"> if(iVibraRepository)</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 253 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 254 </td><td class="black_source"> delete iVibraRepository;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 255 </td><td class="black_source"> iVibraRepository = NULL;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 256 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 257 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 258 </td><td class="black_source"> iApaSession.Close();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 259 </td><td class="black_source"> </td></tr>
<tr><td align="right" class="black_profile">17 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut13" href="indexD1.html#ut14">260</a> </td><td class="red_source"> if(iNotifierAPI)</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 261 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 262 </td><td class="black_source"> delete iNotifierAPI;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 263 </td><td class="black_source"> iNotifierAPI = NULL;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 264 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 265 </td><td class="black_source"> </td></tr>
<tr><td align="right" class="black_profile">17 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut14" href="indexD1.html#ut15">266</a> </td><td class="red_source"> if(iAudioPlayer)</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 267 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 268 </td><td class="black_source"> CHAT_DP_TXT( "delete CMdaAudioPlayerUtility" );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 269 </td><td class="black_source"> iAudioPlayer->Close();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 270 </td><td class="black_source"> delete iAudioPlayer;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 271 </td><td class="black_source"> iAudioPlayer = NULL;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 272 </td><td class="black_source"> }</td></tr>
<tr><td align="right" class="black_profile">17 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut15" href="indexD1.html#ut16">273</a> </td><td class="red_source"> if(iTonePlayer)</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 274 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 275 </td><td class="black_source"> CHAT_DP_TXT( "delete CMdaAudioToneUtility" );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 276 </td><td class="black_source"> delete iTonePlayer;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 277 </td><td class="black_source"> iTonePlayer = NULL;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 278 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 279 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 280 </td><td class="black_source"> iObservers.Close();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 281 </td><td class="black_source"></td></tr>
<tr><td align="right" class="black_profile">17 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut16" href="indexD1.html#ut17">282</a> </td><td class="red_source"> if(iToneFileName)</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 283 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 284 </td><td class="black_source"> delete iToneFileName;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 285 </td><td class="black_source"> iToneFileName = NULL;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 286 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 287 </td><td class="black_source"></td></tr>
<tr><td align="right" class="black_profile">17 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut17" href="indexD1.html#ut18">288</a> </td><td class="red_source"> if(iVibrator)</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 289 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 290 </td><td class="black_source"> delete iVibrator;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 291 </td><td class="black_source"> iVibrator = NULL;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 292 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 293 </td><td class="black_source"></td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="black_profile">17 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut18" href="indexD1.html#ut19">294</a> </td><td class="red_source"> if(iBeepRingingTone)</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 295 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 296 </td><td class="black_source"> delete iBeepRingingTone;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 297 </td><td class="black_source"> iBeepRingingTone = NULL;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 298 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 299 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 300 </td><td class="black_source"> iFs.Close();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 301 </td><td class="black_source"> </td></tr>
<tr><td align="right" class="black_profile">17 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut19" href="indexD1.html#ut20">302</a> </td><td class="red_source"> if(iSettingsStore)</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 303 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 304 </td><td class="black_source"> delete iSettingsStore;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 305 </td><td class="black_source"> iSettingsStore = NULL;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 306 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 307 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 308 </td><td class="black_source"> CHAT_DP_FUNC_DONE("~CIMAlertManager");</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 309 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 310 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 311 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 312 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 313 </td><td class="black_source">// CIMAlertManager::Play</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 314 </td><td class="black_source">// (other items were commented in a header).</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 315 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 316 </td><td class="black_source">//</td></tr>
<tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr>
<tr><td align="right" class="black_profile"><a name="a5"></a>1 </td><td align="right" class="black_profile">1 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 317 </td><td class="black_source">EXPORT_C void CIMAlertManager::PlayL(TUint32 aServiceId)</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 318 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 319 </td><td class="black_source"> CHAT_DP_FUNC_ENTER("Play");</td></tr>
<tr><td align="right" class="black_profile">1 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut20" href="indexD1.html#ut21">320</a> </td><td class="red_source"> if( !iCallState )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 321 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 322 </td><td class="black_source"> Stop();</td></tr>
<tr><td align="right" class="black_profile">1 </td><td align="right" class="black_profile">0 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 323 </td><td class="black_source"> TRAPD( err, DoPlayL(aServiceId) );</td></tr>
<tr><td align="right" class="black_profile">1 </td><td align="right" class="red_profile"> </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 323 </td><td class="black_profile"> catch (XLeaveException & l)</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile"> </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut21" href="indexD1.html#ut22">323</a> </td><td class="red_profile"> catch (...)</td></tr>
<tr><td align="right" class="black_profile">1 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut22" href="indexD1.html#ut23">324</a> </td><td class="red_source"> if( err )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 325 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 326 </td><td class="black_source"> HandleError( err );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 327 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 328 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 329 </td><td class="black_source"> CHAT_DP_FUNC_DONE("Play");</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 330 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 331 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 332 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 333 </td><td class="black_source">// CIMAlertManager::DoPlayL</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 334 </td><td class="black_source">// (other items were commented in a header).</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 335 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 336 </td><td class="black_source">//</td></tr>
<tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr>
<tr><td align="right" class="black_profile"><a name="a6"></a>1 </td><td align="right" class="black_profile">0 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 337 </td><td class="black_source">EXPORT_C void CIMAlertManager::DoPlayL(TUint32 aServiceId)</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 338 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 339 </td><td class="black_source"> CHAT_DP_FUNC_ENTER("DoPlayL");</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 340 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 341 </td><td class="black_source"> TBuf<KMaxPath> toneFileName;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 342 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 343 </td><td class="black_source"> // check if we're silent or not</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 344 </td><td class="black_source"> iActiveProfile = iProfileApi->ActiveProfileL();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 345 </td><td class="black_source"> TBool isSilent = iActiveProfile->IsSilent();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 346 </td><td class="black_source"> iActiveProfile->Release();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 347 </td><td class="black_source"> iActiveProfile = NULL; // prevent further usage</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 348 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 349 </td><td class="black_source"> // vibrate, if it's allowed</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 350 </td><td class="black_source"> CHWRMVibra::TVibraModeState vibraModeState = iVibrator->VibraSettings();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 351 </td><td class="black_source"> CHWRMVibra::TVibraStatus vibraStatus = iVibrator->VibraStatus();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 352 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 353 </td><td class="black_source"> // TODO: Find from Nikhil what the behaviour should be if Vibra is already</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 354 </td><td class="black_source"> // on and you get a new message. Aare you supposed to truncate the existing</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 355 </td><td class="black_source"> // vibration and start afresh or let the existing vibration continue?</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 356 </td><td class="black_source"> if ( vibraModeState == CHWRMVibra::EVibraModeON && </td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="black_profile">1 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut23" href="indexD1.html#ut24">357</a> </td><td class="red_source"> vibraStatus == CHWRMVibra::EVibraStatusStopped )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 358 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 359 </td><td class="black_source"> iVibrator->StartVibraL( KIMVibraDuration );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 360 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 361 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 362 </td><td class="black_source"> // sound ordering:</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 363 </td><td class="black_source"> // silent: get out.</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 364 </td><td class="black_source"> // beep once: beep, and if ok, exit.</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 365 </td><td class="black_source"> // if beep failed, or not active: try to play sound</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 366 </td><td class="black_source"> // for this server.</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 367 </td><td class="black_source"> // if it failed, play default sound.</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 368 </td><td class="black_source"></td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="black_profile">1 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut24" href="indexD1.html#ut25">369</a> </td><td class="red_source"> if ( isSilent ) </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 370 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 371 </td><td class="black_source"> // Silent profile, get out.</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 372 </td><td class="black_source"> CHAT_DP_TXT( "DoPlayL - Returning" );</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile"> </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut25" href="indexD1.html#ut26">373</a> </td><td class="red_source"> return;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 374 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 375 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 376 </td><td class="black_source"> TInt err = KErrNone;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 377 </td><td class="black_source"></td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="black_profile">1 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut26" href="indexD1.html#ut27">378</a> </td><td class="red_source"> if ( iRingingType == EProfileRingingTypeBeepOnce && iBeepRingingTone )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 379 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 380 </td><td class="black_source"> // Play beep.rng</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="black_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut27" href="indexD1.html#ut28">381</a> </td><td class="red_source"> TRAP( err, ProcessFileL( *iBeepRingingTone ) );</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile"> </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut28" href="indexD1.html#ut29">381</a> </td><td class="red_profile"> catch (XLeaveException & l)</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile"> </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut29" href="indexD1.html#ut30">381</a> </td><td class="red_profile"> catch (...)</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 382 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 383 </td><td class="black_source"> </td></tr>
<tr><td align="right" class="black_profile">1 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut30" href="indexD1.html#ut31">384</a> </td><td class="red_source"> if ( err != KErrNone || iRingingType != EProfileRingingTypeBeepOnce )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 385 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 386 </td><td class="black_source"> err = KErrNone;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 387 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 388 </td><td class="black_source"> // Beep once not active, or beep once failed.</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 389 </td><td class="black_source"> // Try to play the sound set for this server</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 390 </td><td class="black_source"> TBuf<KMaxPath> toneFileName;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 391 </td><td class="black_source"> GetToneFileNameL( toneFileName, aServiceId );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 392 </td><td class="black_source"> TParsePtr parsedPtr( toneFileName );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 393 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 394 </td><td class="black_source"> CHAT_DP( D_CHAT_LIT(" file = [%S] "),&toneFileName);</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 395 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 396 </td><td class="black_source"> // If alert tone OFF, don't play anything</td></tr>
<tr><td align="right" class="black_profile">1 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut31" href="indexD1.html#ut32">397</a> </td><td class="red_source"> if( parsedPtr.NameAndExt().Compare( KProfileSilentTone ) != 0 )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 398 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 399 </td><td class="black_source"> // Not OFF</td></tr>
<tr><td align="right" class="black_profile">1 </td><td align="right" class="black_profile">0 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 400 </td><td class="black_source"> TRAP( err, ProcessFileL( toneFileName ) ); </td></tr>
<tr><td align="right" class="black_profile">1 </td><td align="right" class="red_profile"> </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 400 </td><td class="black_profile"> catch (XLeaveException & l)</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile"> </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut32" href="indexD1.html#ut33">400</a> </td><td class="red_profile"> catch (...)</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 401 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 402 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 403 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 404 </td><td class="black_source"> // Not ringing once, but left</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 405 </td><td class="black_source"> User::LeaveIfError( err );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 406 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 407 </td><td class="black_source"> CHAT_DP_FUNC_DONE("DoPlayL");</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 408 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 409 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 410 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 411 </td><td class="black_source">// CIMAlertManager::Stop</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 412 </td><td class="black_source">// (other items were commented in a header).</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 413 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 414 </td><td class="black_source">//</td></tr>
<tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr>
<tr><td align="right" class="black_profile"><a name="a7"></a>22 </td><td align="right" class="black_profile">22 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 415 </td><td class="black_source">EXPORT_C void CIMAlertManager::Stop()</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 416 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 417 </td><td class="black_source"> CHAT_DP_FUNC_ENTER("Stop");</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 418 </td><td class="black_source"></td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="black_profile">22 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut33" href="indexD1.html#ut34">419</a> </td><td class="red_source"> if( iAudioPlayerStatus == EAudioPlayerPlaying )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 420 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 421 </td><td class="black_source"> CHAT_DP_TXT( </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 422 </td><td class="black_source"> "Audio player is playing. CMdaAudioPlayerUtility::Stop()" );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 423 </td><td class="black_source"> iAudioPlayer->Stop();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 424 </td><td class="black_source"> iAudioPlayer->Close(); </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 425 </td><td class="black_source"> iAudioPlayerStatus = EAudioPlayerReady;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 426 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 427 </td><td class="black_source"> </td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="black_profile">22 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut34" href="indexD1.html#ut35">428</a> </td><td class="red_source"> if( iTonePlayerStatus == EAudioPlayerPlaying )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 429 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 430 </td><td class="black_source"> CHAT_DP_TXT( </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 431 </td><td class="black_source"> "Tone player is playing. CMdaAudioToneUtility::CancelPlay()" );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 432 </td><td class="black_source"> iTonePlayer->CancelPlay(); </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 433 </td><td class="black_source"> iTonePlayerStatus = EAudioPlayerReady;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 434 </td><td class="black_source"> } </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 435 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 436 </td><td class="black_source"> CHAT_DP_FUNC_DONE("Stop");</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 437 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 438 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 439 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 440 </td><td class="black_source">// CIMAlertManager::SetVolume</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 441 </td><td class="black_source">// Set the volume at which the sound is played</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 442 </td><td class="black_source">// (other items were commented in a header).</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 443 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 444 </td><td class="black_source">//</td></tr>
<tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr>
<tr><td align="right" class="black_profile"><a name="a8"></a>1 </td><td align="right" class="black_profile">1 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 445 </td><td class="black_source">EXPORT_C void CIMAlertManager::SetVolume( TInt aVolume )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 446 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 447 </td><td class="black_source"> iRingingVolumeNotifyHandler->StopListening();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 448 </td><td class="black_source"> iRingingVolume = aVolume;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 449 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 450 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 451 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 452 </td><td class="black_source">// CIMAlertManager::SetRingingType</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 453 </td><td class="black_source">// Sets the ringing type how the sound is played</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 454 </td><td class="black_source">// (other items were commented in a header).</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 455 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 456 </td><td class="black_source">//</td></tr>
<tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr>
<tr><td align="right" class="black_profile"><a name="a9"></a>1 </td><td align="right" class="black_profile">1 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 457 </td><td class="black_source">EXPORT_C void CIMAlertManager::SetRingingType( TProfileRingingType aRingingType )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 458 </td><td class="black_source"> {</td></tr>
<tr><td align="right" class="black_profile">1 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut35" href="indexD1.html#ut36">459</a> </td><td class="red_source"> if(iRingingTypeNotifyHandler)</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 460 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 461 </td><td class="black_source"> iRingingTypeNotifyHandler->StopListening();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 462 </td><td class="black_source"> iRingingType = aRingingType;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 463 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 464 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 465 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 466 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 467 </td><td class="black_source">// CIMAlertManager::SetVibra</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 468 </td><td class="black_source">// Sets the vibrating alert on or off</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 469 </td><td class="black_source">// (other items were commented in a header).</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 470 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 471 </td><td class="black_source">//</td></tr>
<tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr>
<tr><td align="right" class="black_profile"><a name="a10"></a>1 </td><td align="right" class="black_profile">1 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 472 </td><td class="black_source">EXPORT_C void CIMAlertManager::SetVibra( TBool aVibra )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 473 </td><td class="black_source"> {</td></tr>
<tr><td align="right" class="black_profile">1 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut36" href="indexD1.html#ut37">474</a> </td><td class="red_source"> if(iVibraNotifyHandler)</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 475 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 476 </td><td class="black_source"> iVibraNotifyHandler->StopListening();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 477 </td><td class="black_source"> iVibra = aVibra;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 478 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 479 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 480 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 481 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 482 </td><td class="black_source">// CIMAlertManager::AddObserverL</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 483 </td><td class="black_source">// (other items were commented in a header).</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 484 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 485 </td><td class="black_source">//</td></tr>
<tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr>
<tr><td align="right" class="black_profile"><a name="a11"></a>1 </td><td align="right" class="black_profile">1 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 486 </td><td class="black_source">EXPORT_C void CIMAlertManager::AddObserverL( const MIMAlertManagerObserver* aObserver )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 487 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 488 </td><td class="black_source"> // make sure that aObserver does not get appended in release mode also.</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="black_profile">1 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut37" href="indexD1.html#ut38">489</a> </td><td class="red_source"> if( aObserver ) </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 490 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 491 </td><td class="black_source"> User::LeaveIfError( iObservers.Append( aObserver ) );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 492 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 493 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 494 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 495 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 496 </td><td class="black_source">// CIMAlertManager::RemoveObserver</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 497 </td><td class="black_source">// (other items were commented in a header).</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 498 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 499 </td><td class="black_source">//</td></tr>
<tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr>
<tr><td align="right" class="black_profile"><a name="a12"></a>1 </td><td align="right" class="black_profile">1 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 500 </td><td class="black_source">EXPORT_C void CIMAlertManager::RemoveObserver( const MIMAlertManagerObserver* aObserver )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 501 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 502 </td><td class="black_source"> TInt index( iObservers.Find( aObserver ) );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 503 </td><td class="black_source"></td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="black_profile">1 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut38" href="indexD1.html#ut39">504</a> </td><td class="red_source"> if( index != KErrNotFound )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 505 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 506 </td><td class="black_source"> iObservers.Remove( index );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 507 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 508 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 509 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 510 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 511 </td><td class="black_source">// CIMAlertManager::ProcessFileL</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 512 </td><td class="black_source">// If filename is defined, prepare the audioplayer.</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 513 </td><td class="black_source">// (other items were commented in a header).</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 514 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 515 </td><td class="black_source">//</td></tr>
<tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr>
<tr><td align="right" class="black_profile"><a name="a13"></a>1 </td><td align="right" class="black_profile">0 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 516 </td><td class="black_source">void CIMAlertManager::ProcessFileL( const TDesC& aFileName )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 517 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 518 </td><td class="black_source"> CHAT_DP_FUNC_ENTER("ProcessFileL");</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 519 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 520 </td><td class="black_source"> TFileName *fileName = new (ELeave) TFileName();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 521 </td><td class="black_source"> CleanupStack::PushL( fileName );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 522 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 523 </td><td class="black_source"> // if filename is empty, use default sound</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="black_profile">1 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut39" href="indexD1.html#ut40">524</a> </td><td class="red_source"> if ( aFileName.Length() == 0 )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 525 </td><td class="black_source"> {</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile"> </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut40" href="indexD1.html#ut41">526</a> </td><td class="red_source"> return;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 527 </td><td class="black_source"> }</td></tr>
<tr><td align="right" class="red_profile"> </td><td align="right" class="red_profile"> </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 528 </td><td class="black_source"> else</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 529 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 530 </td><td class="black_source"> *fileName = aFileName;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 531 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 532 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 533 </td><td class="black_source"> TPtr filePtr( NULL, 0 );</td></tr>
<tr><td align="right" class="black_profile">1 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut41" href="indexD1.html#ut42">534</a> </td><td class="red_source"> if( !BaflUtils::FileExists( iFs, *fileName ) )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 535 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 536 </td><td class="black_source"> CHAT_DP( D_CHAT_LIT( "File does not exist ( %S )" ), &(*fileName) );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 537 </td><td class="black_source"> User::Leave( KErrNotFound );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 538 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 539 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 540 </td><td class="black_source"> Stop(); // Stops possible playback </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 541 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 542 </td><td class="black_source"> TUid dummyUid( KNullUid );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 543 </td><td class="black_source"> TDataType dataType;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 544 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 545 </td><td class="black_source"> User::LeaveIfError( iApaSession.AppForDocument( *fileName, dummyUid, </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 546 </td><td class="black_source"> dataType ) );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 547 </td><td class="black_source"></td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut42" href="indexD1.html#ut43">548</a> </td><td class="red_source"> if( dataType.Des().CompareF( KChatRngMimeType ) == 0 ) </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 549 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 550 </td><td class="black_source"> // making sure that another initializing is not already ongoing</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut43" href="indexD1.html#ut44">551</a> </td><td class="red_source"> if( iTonePlayerStatus == EAudioPlayerReady )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 552 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 553 </td><td class="black_source"> CHAT_DP( D_CHAT_LIT( </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 554 </td><td class="black_source"> "CMdaAudioToneUtility::PrepareToPlayFileSequence( %S )" ), </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 555 </td><td class="black_source"> &(*fileName));</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 556 </td><td class="black_source"> iTonePlayerStatus = EAudioPlayerInitializing;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 557 </td><td class="black_source"> iTonePlayer->PrepareToPlayFileSequence( *fileName );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 558 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 559 </td><td class="black_source"> }</td></tr>
<tr><td align="right" class="red_profile"> </td><td align="right" class="red_profile"> </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 560 </td><td class="black_source"> else</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 561 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 562 </td><td class="black_source"> // making sure that another initializing is not already ongoing</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut44" href="indexD1.html#ut45">563</a> </td><td class="red_source"> if( iAudioPlayerStatus == EAudioPlayerReady )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 564 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 565 </td><td class="black_source"> CHAT_DP( D_CHAT_LIT(</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 566 </td><td class="black_source"> "FileList - CMdaAudioPlayerUtility::OpenFileL( %S )" ), </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 567 </td><td class="black_source"> &(*fileName));</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 568 </td><td class="black_source"> iAudioPlayerStatus = EAudioPlayerInitializing;</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="black_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut45" href="indexD1.html#ut46">569</a> </td><td class="red_source"> TRAPD( err, iAudioPlayer->OpenFileL( *fileName ) );</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile"> </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut46" href="indexD1.html#ut47">569</a> </td><td class="red_profile"> catch (XLeaveException & l)</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile"> </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut47" href="indexD1.html#ut48">569</a> </td><td class="red_profile"> catch (...)</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 570 </td><td class="black_source"> CHAT_DP( D_CHAT_LIT(</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 571 </td><td class="black_source"> "FileList - CMdaAudioPlayerUtility::OpenFileL err = %d" ), </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 572 </td><td class="black_source"> err );</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut48" href="indexD1.html#ut49">573</a> </td><td class="red_source"> if( err )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 574 </td><td class="black_source"> { </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 575 </td><td class="black_source"> iAudioPlayerStatus = EAudioPlayerReady;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 576 </td><td class="black_source"> User::Leave( err );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 577 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 578 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 579 </td><td class="black_source"> } </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 580 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 581 </td><td class="black_source"> CleanupStack::PopAndDestroy( fileName );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 582 </td><td class="black_source"> CHAT_DP_FUNC_DONE("ProcessFileL");</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 583 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 584 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 585 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 586 </td><td class="black_source">// CIMAlertManager::DoSetRingingType</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 587 </td><td class="black_source">// When audioplayer is ready, set its ringing type</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 588 </td><td class="black_source">// (other items were commented in a header).</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 589 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 590 </td><td class="black_source">//</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 591 </td><td class="black_source"></td></tr>
<tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr>
<tr><td align="right" class="black_profile"><a name="a14"></a>1 </td><td align="right" class="black_profile">1 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 592 </td><td class="black_source">void CIMAlertManager::DoSetRingingType( TInt aRingingType )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 593 </td><td class="black_source"> {</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="black_profile">1 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut49" href="indexD1.html#ut50">594</a> </td><td class="red_source"> if( iAudioPlayerStatus == EAudioPlayerInitialized )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 595 </td><td class="black_source"> {</td></tr>
<tr><td align="right" class="red_profile"> </td><td align="right" class="red_profile"> </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 596 </td><td class="black_source"> switch( aRingingType )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 597 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 598 </td><td class="black_source"> // Fall through</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile"> </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut50" href="indexD1.html#ut51">599</a> </td><td class="red_source"> case EProfileRingingTypeRingingOnce:</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 600 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 601 </td><td class="black_source"> iAudioPlayer->SetRepeats( 0, </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 602 </td><td class="black_source"> TTimeIntervalMicroSeconds( KToneInterval ) );</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile"> </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut51" href="indexD1.html#ut52">603</a> </td><td class="red_source"> break;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 604 </td><td class="black_source"> }</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile"> </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut52" href="indexD1.html#ut53">605</a> </td><td class="red_source"> case EProfileRingingTypeBeepOnce:</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 606 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 607 </td><td class="black_source"> iAudioPlayer->SetRepeats( 0, </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 608 </td><td class="black_source"> TTimeIntervalMicroSeconds( KToneInterval ) );</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile"> </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut53" href="indexD1.html#ut54">609</a> </td><td class="red_source"> break;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 610 </td><td class="black_source"> }</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile"> </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut54" href="indexD1.html#ut55">611</a> </td><td class="red_source"> default:</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 612 </td><td class="black_source"> {</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile"> </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut55" href="indexD1.html#ut56">613</a> </td><td class="red_source"> break;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 614 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 615 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 616 </td><td class="black_source"> }</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="black_profile">1 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut56" href="indexD1.html#ut57">617</a> </td><td class="red_source"> else if( iTonePlayerStatus == EAudioPlayerInitialized )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 618 </td><td class="black_source"> {</td></tr>
<tr><td align="right" class="red_profile"> </td><td align="right" class="red_profile"> </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 619 </td><td class="black_source"> switch( aRingingType )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 620 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 621 </td><td class="black_source"> // Fall through</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile"> </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut57" href="indexD1.html#ut58">622</a> </td><td class="red_source"> case EProfileRingingTypeRingingOnce:</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 623 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 624 </td><td class="black_source"> iTonePlayer->SetRepeats( 0, </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 625 </td><td class="black_source"> TTimeIntervalMicroSeconds( KToneInterval ) );</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile"> </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut58" href="indexD1.html#ut59">626</a> </td><td class="red_source"> break;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 627 </td><td class="black_source"> }</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile"> </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut59" href="indexD1.html#ut60">628</a> </td><td class="red_source"> case EProfileRingingTypeBeepOnce:</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 629 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 630 </td><td class="black_source"> iTonePlayer->SetRepeats( 0, </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 631 </td><td class="black_source"> TTimeIntervalMicroSeconds( KToneInterval ) );</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile"> </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut60" href="indexD1.html#ut61">632</a> </td><td class="red_source"> break;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 633 </td><td class="black_source"> }</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile"> </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut61" href="indexD1.html#ut62">634</a> </td><td class="red_source"> default:</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 635 </td><td class="black_source"> {</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile"> </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut62" href="indexD1.html#ut63">636</a> </td><td class="red_source"> break;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 637 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 638 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 639 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 640 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 641 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 642 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 643 </td><td class="black_source">// CIMAlertManager::ConvertVolume</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 644 </td><td class="black_source">// Convert volume to the scale used by hardware.</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 645 </td><td class="black_source">// E.g. Profiles lets user select volume 1-10, but hw's scale is normally 1-9.</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 646 </td><td class="black_source">// (other items were commented in a header).</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 647 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 648 </td><td class="black_source">//</td></tr>
<tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr>
<tr><td align="right" class="black_profile"><a name="a15"></a>1 </td><td align="right" class="black_profile">0 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 649 </td><td class="black_source">TInt CIMAlertManager::ConvertVolume( TInt aVolume )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 650 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 651 </td><td class="black_source"> TInt result( 0 );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 652 </td><td class="black_source"> // if ringing type is "silent" then volume</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 653 </td><td class="black_source"> // is zero</td></tr>
<tr><td align="right" class="black_profile">1 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut63" href="indexD1.html#ut64">654</a> </td><td class="red_source"> if( iRingingType != EProfileRingingTypeSilent )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 655 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 656 </td><td class="black_source"> if ( iAudioPlayerStatus == EAudioPlayerInitialized ||</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="black_profile">1 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut64" href="indexD1.html#ut65">657</a> </td><td class="red_source"> iAudioPlayerStatus == EAudioPlayerPlaying )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 658 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 659 </td><td class="black_source"> result = iAudioPlayer->MaxVolume() * aVolume / KMaxVolumeLevel;</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut65" href="indexD1.html#ut66">660</a> </td><td class="red_source"> if ( aVolume == KMinVolumeLevel && result == 0 )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 661 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 662 </td><td class="black_source"> result = 1;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 663 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 664 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 665 </td><td class="black_source"> else if( iTonePlayerStatus == EAudioPlayerInitialized ||</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="black_profile">1 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut66" href="indexD1.html#ut67">666</a> </td><td class="red_source"> iTonePlayerStatus == EAudioPlayerPlaying )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 667 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 668 </td><td class="black_source"> result = iTonePlayer->MaxVolume() * aVolume / KMaxVolumeLevel;</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut67" href="indexD1.html#ut68">669</a> </td><td class="red_source"> if ( aVolume == KMinVolumeLevel && result == 0 )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 670 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 671 </td><td class="black_source"> result = 1;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 672 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 673 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 674 </td><td class="black_source"> }</td></tr>
<tr><td align="right" class="black_profile">1 </td><td align="right" class="red_profile"> </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 675 </td><td class="black_source"> return result;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 676 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 677 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 678 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 679 </td><td class="black_source">// CIMAlertManager::HandleError</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 680 </td><td class="black_source">// Notifies all observers that playing is completed</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 681 </td><td class="black_source">// (other items were commented in a header).</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 682 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 683 </td><td class="black_source">//</td></tr>
<tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr>
<tr><td align="right" class="black_profile"><a name="a16"></a>23 </td><td align="right" class="black_profile">23 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 684 </td><td class="black_source">void CIMAlertManager::HandleError( TInt aError )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 685 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 686 </td><td class="black_source"> if ( ( aError == KErrNoMemory ) || </td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="black_profile">23 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut68" href="indexD1.html#ut69">687</a> </td><td class="red_source"> ( aError == KErrDiskFull ) ) </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 688 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 689 </td><td class="black_source"> CActiveScheduler::Current()->Error( aError );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 690 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 691 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 692 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 693 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 694 </td><td class="black_source">// CIMAlertManager::GetToneFileNameL</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 695 </td><td class="black_source">// (other items were commented in a header).</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 696 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 697 </td><td class="black_source">//</td></tr>
<tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr>
<tr><td align="right" class="black_profile"><a name="a17"></a>1 </td><td align="right" class="black_profile">1 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 698 </td><td class="black_source">void CIMAlertManager::GetToneFileNameL( TDes& aToneFileName ,TUint32 aServiceId)</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 699 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 700 </td><td class="black_source"> RBuf buffer;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 701 </td><td class="black_source"> buffer.CreateL( RProperty::KMaxPropertySize ); </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 702 </td><td class="black_source"> CleanupClosePushL( buffer );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 703 </td><td class="black_source"> iSettingsStore->GetL(aServiceId, EServiceToneFileName, buffer); </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 704 </td><td class="black_source"> aToneFileName.Copy( buffer );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 705 </td><td class="black_source"> CleanupStack::PopAndDestroy(); //buffer</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 706 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 707 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 708 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 709 </td><td class="black_source">// CIMAlertManager::MapcInitComplete</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 710 </td><td class="black_source">// This method is called when the audioplayer initialisation is ready.</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 711 </td><td class="black_source">// If file format is supported, start playing the sound file.</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 712 </td><td class="black_source">// (other items were commented in a header).</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 713 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 714 </td><td class="black_source">//</td></tr>
<tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr>
<tr><td align="right" class="black_profile"><a name="a18"></a>1 </td><td align="right" class="black_profile">1 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 715 </td><td class="black_source">void CIMAlertManager::MapcInitComplete(</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 716 </td><td class="black_source"> TInt aError, const TTimeIntervalMicroSeconds& /* aDuration */ )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 717 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 718 </td><td class="black_source"> CHAT_DP( D_CHAT_LIT(</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 719 </td><td class="black_source"> "MMdaAudioPlayerCallback::MapcInitComplete() callback, error == %d" ), </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 720 </td><td class="black_source"> aError);</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 721 </td><td class="black_source"></td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="black_profile">1 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut69" href="indexD1.html#ut70">722</a> </td><td class="red_source"> if ( !aError && iAudioPlayerStatus == EAudioPlayerInitializing )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 723 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 724 </td><td class="black_source"> iAudioPlayerStatus = EAudioPlayerInitialized;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 725 </td><td class="black_source"> // currently IM messages supports only this ringing type</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 726 </td><td class="black_source"> // ringing once</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 727 </td><td class="black_source"> DoSetRingingType( EProfileRingingTypeRingingOnce );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 728 </td><td class="black_source"> CHAT_DP( D_CHAT_LIT("CMdaAudioPlayerUtility::SetVolume( %d )" ), </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 729 </td><td class="black_source"> iRingingVolume);</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 730 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 731 </td><td class="black_source"> iAudioPlayer->SetVolume( ConvertVolume( iRingingVolume ) );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 732 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 733 </td><td class="black_source"> // TODO: please check the value KAudioPrefNewSpecialMessage.</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 734 </td><td class="black_source"> // WHy does it have this particular value? What is the rationale.</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 735 </td><td class="black_source"> //</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 736 </td><td class="black_source"> CHAT_DP( D_CHAT_LIT("CMdaAudioPlayerUtility::SetPriority( %d, %d )" ),</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 737 </td><td class="black_source"> KAudioPriorityRecvMsg, </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 738 </td><td class="black_source"> TMdaPriorityPreference( KAudioPrefNewSpecialMessage ) );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 739 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 740 </td><td class="black_source"> iAudioPlayer->SetPriority( KAudioPriorityRecvMsg,</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 741 </td><td class="black_source"> TMdaPriorityPreference( KAudioPrefNewSpecialMessage ) );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 742 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 743 </td><td class="black_source"> CHAT_DP_TXT("CMdaAudioPlayerUtility::Play()" );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 744 </td><td class="black_source"> iAudioPlayer->Play();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 745 </td><td class="black_source"> iAudioPlayerStatus = EAudioPlayerPlaying;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 746 </td><td class="black_source"> iNotifierAPI->SetInt( MIMAlertNotifierInterface::EMSGToneQuitKey, </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 747 </td><td class="black_source"> ECoreAppUIsTonePlaying );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 748 </td><td class="black_source"> }</td></tr>
<tr><td align="right" class="red_profile"> </td><td align="right" class="red_profile"> </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 749 </td><td class="black_source"> else</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 750 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 751 </td><td class="black_source"> Stop();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 752 </td><td class="black_source"> iAudioPlayerStatus = EAudioPlayerReady;</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="black_profile">1 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut70" href="indexD1.html#ut71">753</a> </td><td class="red_source"> if( ( ( aError == KErrNotSupported ) || ( aError == KErrCorrupt ) ))</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 754 </td><td class="black_source"> {</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile"> </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut71" href="indexD1.html#ut72">755</a> </td><td class="red_source"> return;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 756 </td><td class="black_source"> }</td></tr>
<tr><td align="right" class="red_profile"> </td><td align="right" class="red_profile"> </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 757 </td><td class="black_source"> else</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 758 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 759 </td><td class="black_source"> HandleError( aError );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 760 </td><td class="black_source"> iIsPlayingDefaultIMSound = EFalse;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 761 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 762 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 763 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 764 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 765 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 766 </td><td class="black_source">// CIMAlertManager::MapcPlayComplete</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 767 </td><td class="black_source">// This method is called when the audioplayer has finished playing a sound</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 768 </td><td class="black_source">// (other items were commented in a header).</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 769 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 770 </td><td class="black_source">//</td></tr>
<tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr>
<tr><td align="right" class="black_profile"><a name="a19"></a>1 </td><td align="right" class="black_profile">1 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 771 </td><td class="black_source">void CIMAlertManager::MapcPlayComplete( TInt aError )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 772 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 773 </td><td class="black_source"> CHAT_DP( D_CHAT_LIT(</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 774 </td><td class="black_source"> "MMdaAudioPlayerCallback::MapcPlayComplete() callback, error == %d" ), </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 775 </td><td class="black_source"> aError);</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 776 </td><td class="black_source"> iNotifierAPI->SetInt( MIMAlertNotifierInterface::EMSGToneQuitKey, ECoreAppUIsTonePlayingUninitialized );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 777 </td><td class="black_source"> iAudioPlayer->Close();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 778 </td><td class="black_source"> iAudioPlayerStatus = EAudioPlayerReady;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 779 </td><td class="black_source"> </td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="black_profile">1 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut72" href="indexD1.html#ut73">780</a> </td><td class="red_source"> if( ( ( aError == KErrNotSupported ) || ( aError == KErrCorrupt ) ) )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 781 </td><td class="black_source"> {</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile"> </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut73" href="indexD1.html#ut74">782</a> </td><td class="red_source"> return;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 783 </td><td class="black_source"> }</td></tr>
<tr><td align="right" class="red_profile"> </td><td align="right" class="red_profile"> </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 784 </td><td class="black_source"> else</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 785 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 786 </td><td class="black_source"> HandleError( aError );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 787 </td><td class="black_source"> iIsPlayingDefaultIMSound = EFalse;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 788 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 789 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 790 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 791 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 792 </td><td class="black_source">// CIMAlertManager::HandleKeyChange</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 793 </td><td class="black_source">// This method receives notifications from the shared data server</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 794 </td><td class="black_source">// (other items were commented in a header).</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 795 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 796 </td><td class="black_source">//</td></tr>
<tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr>
<tr><td align="right" class="black_profile"><a name="a20"></a>1 </td><td align="right" class="black_profile">1 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 797 </td><td class="black_source">void CIMAlertManager::HandleKeyChange( TUpdatedKey& aUpdatedValues )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 798 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 799 </td><td class="black_source"> CHAT_DP_FUNC_ENTER("HandleKeyChange");</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 800 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 801 </td><td class="black_source"> /*Do not play im tone in any of the call state except EPSCTsyCallStateNone</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 802 </td><td class="black_source"> * (1) EPSCTsyCallStateNone </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 803 </td><td class="black_source"> * (2) EPSCTsyCallStateDialling </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 804 </td><td class="black_source"> * (3) EPSCTsyCallStateAlerting </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 805 </td><td class="black_source"> * (4) EPSTelephonyCallStateConnected </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 806 </td><td class="black_source"> * (5) EPSCTsyCallStateDisconnecting </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 807 </td><td class="black_source"> * (6) EPSCTsyCallStateNone</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 808 </td><td class="black_source"> * </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 809 </td><td class="black_source"> */</td></tr>
<tr><td align="right" class="black_profile">1 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut74" href="indexD1.html#ut75">810</a> </td><td class="red_source"> if( aUpdatedValues.iValue == EPSCTsyCallStateNone)</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 811 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 812 </td><td class="black_source"> iCallState = EFalse;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 813 </td><td class="black_source"> }</td></tr>
<tr><td align="right" class="red_profile"> </td><td align="right" class="red_profile"> </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 814 </td><td class="black_source"> else</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 815 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 816 </td><td class="black_source"> iCallState = ETrue; </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 817 </td><td class="black_source"> }</td></tr>
<tr><td align="right" class="black_profile">1 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut75" href="indexD1.html#ut76">818</a> </td><td class="red_source"> if(aUpdatedValues.iValue == ECoreAppUIsStopTonePlaying )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 819 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 820 </td><td class="black_source"> // Message tone should be stopped</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 821 </td><td class="black_source"> CHAT_DP_TXT( "**stop playing!**" );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 822 </td><td class="black_source"> Stop(); </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 823 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 824 </td><td class="black_source"> CHAT_DP_FUNC_DONE("HandleKeyChange");</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 825 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 826 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 827 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 828 </td><td class="black_source">// CIMAlertManager::HandleNotifyInt</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 829 </td><td class="black_source">// (other items were commented in a header).</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 830 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr>
<tr><td align="right" class="black_profile"><a name="a21"></a>1 </td><td align="right" class="black_profile">1 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 831 </td><td class="black_source">void CIMAlertManager::HandleNotifyInt( TUint32 aId, TInt aNewValue )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 832 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 833 </td><td class="black_source"> CHAT_DP_FUNC_ENTER("HandleNotifyL");</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 834 </td><td class="black_source"> CHAT_DP( D_CHAT_LIT("aKey == %d" ), aId);</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 835 </td><td class="black_source"> CHAT_DP( D_CHAT_LIT("aValue == %d" ), aNewValue);</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 836 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 837 </td><td class="black_source"></td></tr>
<tr><td align="right" class="black_profile">1 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut76" href="indexD1.html#ut77">838</a> </td><td class="red_source"> if ( aId == KProEngActiveRingingVolume ) // Ringing volume has changed</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 839 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 840 </td><td class="black_source"> iRingingVolume = aNewValue;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 841 </td><td class="black_source"> }</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">0 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut77" href="indexD1.html#ut78">842</a> </td><td class="red_source"> else if ( aId == KProEngActiveRingingType ) // Ringing type has changed</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 843 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 844 </td><td class="black_source"> iRingingType = aNewValue;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 845 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 846 </td><td class="black_source"></td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="black_profile">1 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut78" href="indexD1.html#ut79">847</a> </td><td class="red_source"> if ( aId == KVibraCtrlProfileVibraEnabled ) // Vibra setting has changed</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 848 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 849 </td><td class="black_source"> iVibra = aNewValue;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 850 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 851 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 852 </td><td class="black_source"> CHAT_DP_FUNC_DONE("HandleNotifyL");</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 853 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 854 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 855 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 856 </td><td class="black_source">// CIMAlertManager::MatoPrepareComplete</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 857 </td><td class="black_source">// (other items were commented in a header).</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 858 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 859 </td><td class="black_source">//</td></tr>
<tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr>
<tr><td align="right" class="black_profile"><a name="a22"></a>1 </td><td align="right" class="black_profile">1 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 860 </td><td class="black_source">void CIMAlertManager::MatoPrepareComplete( TInt aError )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 861 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 862 </td><td class="black_source"> CHAT_DP( D_CHAT_LIT(</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 863 </td><td class="black_source"> "MMdaAudioToneObserver::MatoPrepareComplete() callback, error == %d" ), </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 864 </td><td class="black_source"> aError);</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 865 </td><td class="black_source"> </td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="black_profile">1 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut79" href="indexD1.html#ut80">866</a> </td><td class="red_source"> if ( !aError && iTonePlayerStatus == EAudioPlayerInitializing )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 867 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 868 </td><td class="black_source"> iTonePlayerStatus = EAudioPlayerInitialized;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 869 </td><td class="black_source"> // TODO: confirm with UI spec/Nikhil if only this ringing type is</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 870 </td><td class="black_source"> // supported. If not in writing, get an entry into the UI spec done.</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 871 </td><td class="black_source"> // TODO: where is this requirement specified?</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 872 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 873 </td><td class="black_source"> // currently IM messages supports only this ringing type</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 874 </td><td class="black_source"> // ringing once</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 875 </td><td class="black_source"> DoSetRingingType( EProfileRingingTypeRingingOnce );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 876 </td><td class="black_source"> CHAT_DP( D_CHAT_LIT("CMdaAudioToneUtility::SetVolume( %d )" ), </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 877 </td><td class="black_source"> ConvertVolume( iRingingVolume ));</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 878 </td><td class="black_source"> iTonePlayer->SetVolume( ConvertVolume( iRingingVolume ) );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 879 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 880 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 881 </td><td class="black_source"> CHAT_DP( D_CHAT_LIT("CMdaAudioToneUtility::SetPriority( %d, %d )" ),</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 882 </td><td class="black_source"> KAudioPriorityRecvMsg, </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 883 </td><td class="black_source"> TMdaPriorityPreference( KAudioPrefNewSpecialMessage ) );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 884 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 885 </td><td class="black_source"> iTonePlayer->SetPriority( KAudioPriorityRecvMsg,</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 886 </td><td class="black_source"> TMdaPriorityPreference( KAudioPrefNewSpecialMessage ) );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 887 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 888 </td><td class="black_source"> CHAT_DP_TXT("CMdaAudioToneUtility::Play()" );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 889 </td><td class="black_source"> iTonePlayer->Play();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 890 </td><td class="black_source"> iTonePlayerStatus = EAudioPlayerPlaying;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 891 </td><td class="black_source"> iNotifierAPI->SetInt( MIMAlertNotifierInterface::EMSGToneQuitKey, </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 892 </td><td class="black_source"> ECoreAppUIsTonePlaying );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 893 </td><td class="black_source"> }</td></tr>
<tr><td align="right" class="red_profile"> </td><td align="right" class="red_profile"> </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 894 </td><td class="black_source"> else</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 895 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 896 </td><td class="black_source"> Stop();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 897 </td><td class="black_source"> iTonePlayerStatus = EAudioPlayerReady;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 898 </td><td class="black_source"> </td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="black_profile">1 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut80" href="indexD1.html#ut81">899</a> </td><td class="red_source"> if( ( ( aError == KErrNotSupported ) || ( aError == KErrCorrupt ) ) )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 900 </td><td class="black_source"> {</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile"> </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut81" href="indexD1.html#ut82">901</a> </td><td class="red_source"> return;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 902 </td><td class="black_source"> }</td></tr>
<tr><td align="right" class="red_profile"> </td><td align="right" class="red_profile"> </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 903 </td><td class="black_source"> else</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 904 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 905 </td><td class="black_source"> HandleError( aError );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 906 </td><td class="black_source"> iIsPlayingDefaultIMSound = EFalse;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 907 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 908 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 909 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 910 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 911 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 912 </td><td class="black_source">// CIMAlertManager::MatoPlayComplete</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 913 </td><td class="black_source">// (other items were commented in a header).</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 914 </td><td class="black_source">// ---------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 915 </td><td class="black_source">//</td></tr>
<tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr>
<tr><td align="right" class="black_profile"><a name="a23"></a>1 </td><td align="right" class="black_profile">1 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 916 </td><td class="black_source">void CIMAlertManager::MatoPlayComplete( TInt aError )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 917 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 918 </td><td class="black_source"> CHAT_DP( D_CHAT_LIT(</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 919 </td><td class="black_source"> "MMdaAudioToneObserver::MatoPlayComplete() callback, error == %d" ), </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 920 </td><td class="black_source"> aError);</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 921 </td><td class="black_source"> iNotifierAPI->SetInt( MIMAlertNotifierInterface::EMSGToneQuitKey, ECoreAppUIsTonePlayingUninitialized );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 922 </td><td class="black_source"> iTonePlayerStatus = EAudioPlayerReady;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 923 </td><td class="black_source"> </td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="black_profile">1 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut82" href="indexD1.html#ut83">924</a> </td><td class="red_source"> if( ( ( aError == KErrNotSupported ) || ( aError == KErrCorrupt ) ) )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 925 </td><td class="black_source"> {</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="red_profile"> </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut83" href="indexD1.html#ut84">926</a> </td><td class="red_source"> return ;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 927 </td><td class="black_source"> }</td></tr>
<tr><td align="right" class="red_profile"> </td><td align="right" class="red_profile"> </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 928 </td><td class="black_source"> else</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 929 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 930 </td><td class="black_source"> HandleError( aError );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 931 </td><td class="black_source"> iIsPlayingDefaultIMSound = EFalse;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 932 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 933 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 934 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 935 </td><td class="black_source">// End of File </td></tr>
<tr><td colspan="5" class="red"><strong>***TER 46% (78/168) of SOURCE FILE <a name="ut84"></a>cimalertmanager.cpp</strong></td></tr>
</table><br>
<span class="black"><a href="indexF.html" target="_top">Directory Summary</a> | <a href="index.html" target="_top">Files Summary</a> | <a href="indexB1.html" target="_top">Functions Summary</a> | <a href="indexD1.html">Execution Profile</a><br>
To files: <a href="indexD1.html">First</a> | Previous | <a href="indexD2.html">Next</a> | <a href="indexD8.html">Last</a> | <a href="indexD1.html">Top</a> | <a href="indexA.html#a1">Index</a> | <a href="indexD1.html" target="_top">No Index</a></span><br><br>
</body></html>