|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
|
2 <html><head> |
|
3 <title>CTC++ Coverage Report - Execution Profile - cimalertmanager.cpp</title> |
|
4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
|
5 <meta name="keyword" content="CTC++, Testwell, Test Coverage Analyzer"> |
|
6 <meta name="date" content="Wed Sep 30 16:37:09 2009"> |
|
7 <meta name="generator" content="Testwell CTC++ add-on utility ctc2html v2.5"> |
|
8 <link rel="stylesheet" type="text/css" href="ctc.css"> |
|
9 <link rel="contents" href="index.html"> |
|
10 </head> |
|
11 <body text="#150040" bgcolor="#ffffff" link="#000088" vlink="#007788"> |
|
12 <span class="head1">CTC++ Coverage Report - </span> |
|
13 <span class="head2">Execution Profile</span> |
|
14 <span class="head3"> #1/8</span><br><br> |
|
15 <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> |
|
16 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> |
|
17 <span class="black"><strong>File: \meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp</strong></span><br> |
|
18 <span class="black"><strong>Instrumentation mode: </strong>function-decision</span><br> |
|
19 <span class="black"><strong>TER: </strong></span><span class="red">46 % ( 78/168)</span><br><br> |
|
20 <table cellspacing="0"> |
|
21 <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> |
|
22 <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> |
|
23 <tr><td colspan="5"><hr></td></tr> |
|
24 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 1 </td><td class="black_source">/*</td></tr> |
|
25 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 2 </td><td class="black_source"> * ==============================================================================</td></tr> |
|
26 <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> |
|
27 <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> |
|
28 <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> |
|
29 <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> |
|
30 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 7 </td><td class="black_source"> *</td></tr> |
|
31 <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> |
|
32 <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> |
|
33 <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> |
|
34 <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> |
|
35 <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> |
|
36 <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> |
|
37 <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> |
|
38 <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> |
|
39 <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> |
|
40 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 17 </td><td class="black_source"> * ==============================================================================</td></tr> |
|
41 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 18 </td><td class="black_source"> */</td></tr> |
|
42 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 19 </td><td class="black_source"></td></tr> |
|
43 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 20 </td><td class="black_source">// INCLUDE FILES</td></tr> |
|
44 <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> |
|
45 <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> |
|
46 <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> |
|
47 <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> |
|
48 <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> |
|
49 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 26 </td><td class="black_source"></td></tr> |
|
50 <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> |
|
51 <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> |
|
52 <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> |
|
53 <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> |
|
54 <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> |
|
55 <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> |
|
56 <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> |
|
57 <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> |
|
58 <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> |
|
59 <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> |
|
60 <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> |
|
61 <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> |
|
62 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 39 </td><td class="black_source"></td></tr> |
|
63 <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> |
|
64 <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> |
|
65 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 42 </td><td class="black_source"></td></tr> |
|
66 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 43 </td><td class="black_source"></td></tr> |
|
67 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 44 </td><td class="black_source">// CONSTANTS</td></tr> |
|
68 <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> |
|
69 <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> |
|
70 <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> |
|
71 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 48 </td><td class="black_source"></td></tr> |
|
72 <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> |
|
73 <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> |
|
74 <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> |
|
75 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 52 </td><td class="black_source"></td></tr> |
|
76 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 53 </td><td class="black_source"> </td></tr> |
|
77 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 54 </td><td class="black_source">// ============================ MEMBER FUNCTIONS ===============================</td></tr> |
|
78 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 55 </td><td class="black_source"></td></tr> |
|
79 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 56 </td><td class="black_source">// -----------------------------------------------------------------------------</td></tr> |
|
80 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 57 </td><td class="black_source">// CIMAlertManager::CIMAlertManager</td></tr> |
|
81 <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> |
|
82 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 59 </td><td class="black_source">// might leave.</td></tr> |
|
83 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 60 </td><td class="black_source">// -----------------------------------------------------------------------------</td></tr> |
|
84 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 61 </td><td class="black_source">//</td></tr> |
|
85 <tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr> |
|
86 <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> |
|
87 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 63 </td><td class="black_source"> : iAudioPlayerStatus( EAudioPlayerNotCreated ),</td></tr> |
|
88 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 64 </td><td class="black_source"> iTonePlayerStatus( EAudioPlayerNotCreated ),</td></tr> |
|
89 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 65 </td><td class="black_source"> iIsPlayingDefaultIMSound( EFalse ),</td></tr> |
|
90 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 66 </td><td class="black_source"> iCallState (EFalse)</td></tr> |
|
91 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 67 </td><td class="black_source"> {</td></tr> |
|
92 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 68 </td><td class="black_source"> }</td></tr> |
|
93 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 69 </td><td class="black_source"></td></tr> |
|
94 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 70 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
95 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 71 </td><td class="black_source">// CIMAlertManager::ConstructL</td></tr> |
|
96 <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> |
|
97 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 73 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
98 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 74 </td><td class="black_source">//</td></tr> |
|
99 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 75 </td><td class="black_source"></td></tr> |
|
100 <tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr> |
|
101 <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> |
|
102 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 77 </td><td class="black_source"> {</td></tr> |
|
103 <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> |
|
104 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 79 </td><td class="black_source"> iProfileApi = CreateProfileEngineL();</td></tr> |
|
105 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 80 </td><td class="black_source"> </td></tr> |
|
106 <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> |
|
107 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 82 </td><td class="black_source"></td></tr> |
|
108 <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> |
|
109 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 84 </td><td class="black_source"></td></tr> |
|
110 <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> |
|
111 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 86 </td><td class="black_source"> iAudioPlayerStatus = EAudioPlayerReady;</td></tr> |
|
112 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 87 </td><td class="black_source"></td></tr> |
|
113 <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> |
|
114 <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> |
|
115 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 90 </td><td class="black_source"> iTonePlayerStatus = EAudioPlayerReady;</td></tr> |
|
116 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 91 </td><td class="black_source"> </td></tr> |
|
117 <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> |
|
118 <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> |
|
119 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 94 </td><td class="black_source"> </td></tr> |
|
120 <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> |
|
121 <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> |
|
122 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 97 </td><td class="black_source"> *iProfilesRepository,</td></tr> |
|
123 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 98 </td><td class="black_source"> CCenRepNotifyHandler::EIntKey,</td></tr> |
|
124 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 99 </td><td class="black_source"> KProEngActiveRingingVolume );</td></tr> |
|
125 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 100 </td><td class="black_source"> iRingingVolumeNotifyHandler->StartListeningL();</td></tr> |
|
126 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 101 </td><td class="black_source"> </td></tr> |
|
127 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 102 </td><td class="black_source"> </td></tr> |
|
128 <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> |
|
129 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 104 </td><td class="black_source"> *iProfilesRepository,</td></tr> |
|
130 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 105 </td><td class="black_source"> CCenRepNotifyHandler::EIntKey,</td></tr> |
|
131 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 106 </td><td class="black_source"> KProEngActiveRingingType );</td></tr> |
|
132 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 107 </td><td class="black_source"> iRingingTypeNotifyHandler->StartListeningL();</td></tr> |
|
133 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 108 </td><td class="black_source"> </td></tr> |
|
134 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 109 </td><td class="black_source"> </td></tr> |
|
135 <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> |
|
136 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 111 </td><td class="black_source"> CCenRepNotifyHandler::EIntKey,</td></tr> |
|
137 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 112 </td><td class="black_source"> KVibraCtrlProfileVibraEnabled );</td></tr> |
|
138 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 113 </td><td class="black_source"> iVibraNotifyHandler->StartListeningL();</td></tr> |
|
139 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 114 </td><td class="black_source"> </td></tr> |
|
140 <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> |
|
141 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 116 </td><td class="black_source"> iRingingVolume ) );</td></tr> |
|
142 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 117 </td><td class="black_source"> </td></tr> |
|
143 <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> |
|
144 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 119 </td><td class="black_source"> iVibra ) );</td></tr> |
|
145 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 120 </td><td class="black_source"> </td></tr> |
|
146 <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> |
|
147 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 122 </td><td class="black_source"></td></tr> |
|
148 <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> |
|
149 <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> |
|
150 <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> |
|
151 <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> |
|
152 <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> |
|
153 <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> |
|
154 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 129 </td><td class="black_source"></td></tr> |
|
155 <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> |
|
156 <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> |
|
157 <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> |
|
158 <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> |
|
159 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 134 </td><td class="black_source"> RFile file;</td></tr> |
|
160 <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> |
|
161 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 136 </td><td class="black_source"> file.Close();</td></tr> |
|
162 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 137 </td><td class="black_source"> </td></tr> |
|
163 <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> |
|
164 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 139 </td><td class="black_source"> {</td></tr> |
|
165 <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> |
|
166 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 141 </td><td class="black_source"> beepFile.Zero();</td></tr> |
|
167 <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> |
|
168 <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> |
|
169 <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> |
|
170 <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> |
|
171 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 146 </td><td class="black_source"> file.Close();</td></tr> |
|
172 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 147 </td><td class="black_source"> } </td></tr> |
|
173 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 148 </td><td class="black_source"> </td></tr> |
|
174 <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> |
|
175 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 150 </td><td class="black_source"> </td></tr> |
|
176 <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> |
|
177 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 152 </td><td class="black_source"> {</td></tr> |
|
178 <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> |
|
179 <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> |
|
180 <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> |
|
181 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 156 </td><td class="black_source"> }</td></tr> |
|
182 <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> |
|
183 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 158 </td><td class="black_source"> {</td></tr> |
|
184 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 159 </td><td class="black_source"> HandleError( openErr );</td></tr> |
|
185 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 160 </td><td class="black_source"> }</td></tr> |
|
186 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 161 </td><td class="black_source"></td></tr> |
|
187 <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> |
|
188 <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> |
|
189 <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> |
|
190 <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> |
|
191 <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> |
|
192 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 167 </td><td class="black_source"> iActiveProfile->Release();</td></tr> |
|
193 <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> |
|
194 <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> |
|
195 <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> |
|
196 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 171 </td><td class="black_source"> </td></tr> |
|
197 <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> |
|
198 <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> |
|
199 <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> |
|
200 <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> |
|
201 <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> |
|
202 <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> |
|
203 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 176 </td><td class="black_source"> {</td></tr> |
|
204 <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> |
|
205 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 178 </td><td class="black_source"> iVibrator = NULL;</td></tr> |
|
206 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 179 </td><td class="black_source"> }</td></tr> |
|
207 <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> |
|
208 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 181 </td><td class="black_source"> {</td></tr> |
|
209 <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> |
|
210 <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> |
|
211 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 184 </td><td class="black_source"> }</td></tr> |
|
212 <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> |
|
213 <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> |
|
214 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 187 </td><td class="black_source"> }</td></tr> |
|
215 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 188 </td><td class="black_source"></td></tr> |
|
216 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 189 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
217 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 190 </td><td class="black_source">// CIMAlertManager::NewL</td></tr> |
|
218 <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> |
|
219 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 192 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
220 <tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr> |
|
221 <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> |
|
222 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 194 </td><td class="black_source"> {</td></tr> |
|
223 <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> |
|
224 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 196 </td><td class="black_source"></td></tr> |
|
225 <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> |
|
226 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 198 </td><td class="black_source"> self->ConstructL();</td></tr> |
|
227 <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> |
|
228 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 200 </td><td class="black_source"></td></tr> |
|
229 <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> |
|
230 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 202 </td><td class="black_source"> }</td></tr> |
|
231 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 203 </td><td class="black_source"></td></tr> |
|
232 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 204 </td><td class="black_source"></td></tr> |
|
233 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 205 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
234 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 206 </td><td class="black_source">// CIMAlertManager::~CIMAlertManager</td></tr> |
|
235 <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> |
|
236 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 208 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
237 <tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr> |
|
238 <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> |
|
239 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 210 </td><td class="black_source"> {</td></tr> |
|
240 <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> |
|
241 <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> |
|
242 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 213 </td><td class="black_source"></td></tr> |
|
243 <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> |
|
244 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 215 </td><td class="black_source"> {</td></tr> |
|
245 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 216 </td><td class="black_source"> iActiveProfile->Release();</td></tr> |
|
246 <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> |
|
247 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 218 </td><td class="black_source"> }</td></tr> |
|
248 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 219 </td><td class="black_source"></td></tr> |
|
249 <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> |
|
250 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 221 </td><td class="black_source"> {</td></tr> |
|
251 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 222 </td><td class="black_source"> iProfileApi->Release();</td></tr> |
|
252 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 223 </td><td class="black_source"> iProfileApi = NULL;</td></tr> |
|
253 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 224 </td><td class="black_source"> }</td></tr> |
|
254 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 225 </td><td class="black_source"></td></tr> |
|
255 <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> |
|
256 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 227 </td><td class="black_source"> {</td></tr> |
|
257 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 228 </td><td class="black_source"> iVibraNotifyHandler->StopListening();</td></tr> |
|
258 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 229 </td><td class="black_source"> delete iVibraNotifyHandler;</td></tr> |
|
259 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 230 </td><td class="black_source"> iVibraNotifyHandler = NULL;</td></tr> |
|
260 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 231 </td><td class="black_source"> }</td></tr> |
|
261 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 232 </td><td class="black_source"> </td></tr> |
|
262 <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> |
|
263 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 234 </td><td class="black_source"> {</td></tr> |
|
264 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 235 </td><td class="black_source"> iRingingTypeNotifyHandler->StopListening();</td></tr> |
|
265 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 236 </td><td class="black_source"> delete iRingingTypeNotifyHandler;</td></tr> |
|
266 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 237 </td><td class="black_source"> iRingingTypeNotifyHandler = NULL;</td></tr> |
|
267 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 238 </td><td class="black_source"> }</td></tr> |
|
268 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 239 </td><td class="black_source"> </td></tr> |
|
269 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 240 </td><td class="black_source"></td></tr> |
|
270 <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> |
|
271 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 242 </td><td class="black_source"> {</td></tr> |
|
272 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 243 </td><td class="black_source"> iRingingVolumeNotifyHandler->StopListening();</td></tr> |
|
273 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 244 </td><td class="black_source"> delete iRingingVolumeNotifyHandler;</td></tr> |
|
274 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 245 </td><td class="black_source"> iRingingVolumeNotifyHandler = NULL;</td></tr> |
|
275 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 246 </td><td class="black_source"> }</td></tr> |
|
276 <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> |
|
277 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 248 </td><td class="black_source"> {</td></tr> |
|
278 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 249 </td><td class="black_source"> delete iProfilesRepository;</td></tr> |
|
279 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 250 </td><td class="black_source"> iProfilesRepository = NULL;</td></tr> |
|
280 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 251 </td><td class="black_source"> }</td></tr> |
|
281 <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> |
|
282 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 253 </td><td class="black_source"> {</td></tr> |
|
283 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 254 </td><td class="black_source"> delete iVibraRepository;</td></tr> |
|
284 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 255 </td><td class="black_source"> iVibraRepository = NULL;</td></tr> |
|
285 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 256 </td><td class="black_source"> }</td></tr> |
|
286 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 257 </td><td class="black_source"> </td></tr> |
|
287 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 258 </td><td class="black_source"> iApaSession.Close();</td></tr> |
|
288 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 259 </td><td class="black_source"> </td></tr> |
|
289 <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> |
|
290 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 261 </td><td class="black_source"> {</td></tr> |
|
291 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 262 </td><td class="black_source"> delete iNotifierAPI;</td></tr> |
|
292 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 263 </td><td class="black_source"> iNotifierAPI = NULL;</td></tr> |
|
293 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 264 </td><td class="black_source"> }</td></tr> |
|
294 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 265 </td><td class="black_source"> </td></tr> |
|
295 <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> |
|
296 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 267 </td><td class="black_source"> {</td></tr> |
|
297 <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> |
|
298 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 269 </td><td class="black_source"> iAudioPlayer->Close();</td></tr> |
|
299 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 270 </td><td class="black_source"> delete iAudioPlayer;</td></tr> |
|
300 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 271 </td><td class="black_source"> iAudioPlayer = NULL;</td></tr> |
|
301 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 272 </td><td class="black_source"> }</td></tr> |
|
302 <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> |
|
303 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 274 </td><td class="black_source"> {</td></tr> |
|
304 <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> |
|
305 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 276 </td><td class="black_source"> delete iTonePlayer;</td></tr> |
|
306 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 277 </td><td class="black_source"> iTonePlayer = NULL;</td></tr> |
|
307 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 278 </td><td class="black_source"> }</td></tr> |
|
308 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 279 </td><td class="black_source"> </td></tr> |
|
309 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 280 </td><td class="black_source"> iObservers.Close();</td></tr> |
|
310 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 281 </td><td class="black_source"></td></tr> |
|
311 <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> |
|
312 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 283 </td><td class="black_source"> {</td></tr> |
|
313 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 284 </td><td class="black_source"> delete iToneFileName;</td></tr> |
|
314 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 285 </td><td class="black_source"> iToneFileName = NULL;</td></tr> |
|
315 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 286 </td><td class="black_source"> }</td></tr> |
|
316 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 287 </td><td class="black_source"></td></tr> |
|
317 <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> |
|
318 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 289 </td><td class="black_source"> {</td></tr> |
|
319 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 290 </td><td class="black_source"> delete iVibrator;</td></tr> |
|
320 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 291 </td><td class="black_source"> iVibrator = NULL;</td></tr> |
|
321 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 292 </td><td class="black_source"> }</td></tr> |
|
322 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 293 </td><td class="black_source"></td></tr> |
|
323 <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> |
|
324 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 295 </td><td class="black_source"> {</td></tr> |
|
325 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 296 </td><td class="black_source"> delete iBeepRingingTone;</td></tr> |
|
326 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 297 </td><td class="black_source"> iBeepRingingTone = NULL;</td></tr> |
|
327 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 298 </td><td class="black_source"> }</td></tr> |
|
328 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 299 </td><td class="black_source"></td></tr> |
|
329 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 300 </td><td class="black_source"> iFs.Close();</td></tr> |
|
330 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 301 </td><td class="black_source"> </td></tr> |
|
331 <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> |
|
332 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 303 </td><td class="black_source"> {</td></tr> |
|
333 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 304 </td><td class="black_source"> delete iSettingsStore;</td></tr> |
|
334 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 305 </td><td class="black_source"> iSettingsStore = NULL;</td></tr> |
|
335 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 306 </td><td class="black_source"> }</td></tr> |
|
336 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 307 </td><td class="black_source"> </td></tr> |
|
337 <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> |
|
338 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 309 </td><td class="black_source"> }</td></tr> |
|
339 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 310 </td><td class="black_source"></td></tr> |
|
340 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 311 </td><td class="black_source"></td></tr> |
|
341 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 312 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
342 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 313 </td><td class="black_source">// CIMAlertManager::Play</td></tr> |
|
343 <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> |
|
344 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 315 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
345 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 316 </td><td class="black_source">//</td></tr> |
|
346 <tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr> |
|
347 <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> |
|
348 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 318 </td><td class="black_source"> {</td></tr> |
|
349 <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> |
|
350 <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> |
|
351 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 321 </td><td class="black_source"> {</td></tr> |
|
352 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 322 </td><td class="black_source"> Stop();</td></tr> |
|
353 <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> |
|
354 <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> |
|
355 <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> |
|
356 <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> |
|
357 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 325 </td><td class="black_source"> {</td></tr> |
|
358 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 326 </td><td class="black_source"> HandleError( err );</td></tr> |
|
359 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 327 </td><td class="black_source"> }</td></tr> |
|
360 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 328 </td><td class="black_source"> }</td></tr> |
|
361 <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> |
|
362 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 330 </td><td class="black_source"> }</td></tr> |
|
363 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 331 </td><td class="black_source"></td></tr> |
|
364 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 332 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
365 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 333 </td><td class="black_source">// CIMAlertManager::DoPlayL</td></tr> |
|
366 <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> |
|
367 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 335 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
368 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 336 </td><td class="black_source">//</td></tr> |
|
369 <tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr> |
|
370 <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> |
|
371 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 338 </td><td class="black_source"> {</td></tr> |
|
372 <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> |
|
373 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 340 </td><td class="black_source"></td></tr> |
|
374 <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> |
|
375 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 342 </td><td class="black_source"></td></tr> |
|
376 <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> |
|
377 <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> |
|
378 <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> |
|
379 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 346 </td><td class="black_source"> iActiveProfile->Release();</td></tr> |
|
380 <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> |
|
381 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 348 </td><td class="black_source"></td></tr> |
|
382 <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> |
|
383 <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> |
|
384 <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> |
|
385 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 352 </td><td class="black_source"> </td></tr> |
|
386 <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> |
|
387 <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> |
|
388 <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> |
|
389 <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> |
|
390 <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> |
|
391 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 358 </td><td class="black_source"> {</td></tr> |
|
392 <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> |
|
393 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 360 </td><td class="black_source"> }</td></tr> |
|
394 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 361 </td><td class="black_source"></td></tr> |
|
395 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 362 </td><td class="black_source"> // sound ordering:</td></tr> |
|
396 <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> |
|
397 <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> |
|
398 <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> |
|
399 <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> |
|
400 <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> |
|
401 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 368 </td><td class="black_source"></td></tr> |
|
402 <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> |
|
403 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 370 </td><td class="black_source"> {</td></tr> |
|
404 <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> |
|
405 <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> |
|
406 <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> |
|
407 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 374 </td><td class="black_source"> }</td></tr> |
|
408 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 375 </td><td class="black_source"></td></tr> |
|
409 <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> |
|
410 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 377 </td><td class="black_source"></td></tr> |
|
411 <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> |
|
412 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 379 </td><td class="black_source"> {</td></tr> |
|
413 <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> |
|
414 <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> |
|
415 <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> |
|
416 <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> |
|
417 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 382 </td><td class="black_source"> }</td></tr> |
|
418 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 383 </td><td class="black_source"> </td></tr> |
|
419 <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> |
|
420 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 385 </td><td class="black_source"> {</td></tr> |
|
421 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 386 </td><td class="black_source"> err = KErrNone;</td></tr> |
|
422 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 387 </td><td class="black_source"></td></tr> |
|
423 <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> |
|
424 <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> |
|
425 <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> |
|
426 <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> |
|
427 <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> |
|
428 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 393 </td><td class="black_source"> </td></tr> |
|
429 <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> |
|
430 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 395 </td><td class="black_source"></td></tr> |
|
431 <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> |
|
432 <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> |
|
433 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 398 </td><td class="black_source"> {</td></tr> |
|
434 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 399 </td><td class="black_source"> // Not OFF</td></tr> |
|
435 <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> |
|
436 <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> |
|
437 <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> |
|
438 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 401 </td><td class="black_source"> }</td></tr> |
|
439 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 402 </td><td class="black_source"> }</td></tr> |
|
440 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 403 </td><td class="black_source"></td></tr> |
|
441 <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> |
|
442 <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> |
|
443 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 406 </td><td class="black_source"></td></tr> |
|
444 <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> |
|
445 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 408 </td><td class="black_source"> }</td></tr> |
|
446 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 409 </td><td class="black_source"></td></tr> |
|
447 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 410 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
448 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 411 </td><td class="black_source">// CIMAlertManager::Stop</td></tr> |
|
449 <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> |
|
450 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 413 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
451 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 414 </td><td class="black_source">//</td></tr> |
|
452 <tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr> |
|
453 <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> |
|
454 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 416 </td><td class="black_source"> {</td></tr> |
|
455 <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> |
|
456 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 418 </td><td class="black_source"></td></tr> |
|
457 <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> |
|
458 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 420 </td><td class="black_source"> {</td></tr> |
|
459 <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> |
|
460 <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> |
|
461 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 423 </td><td class="black_source"> iAudioPlayer->Stop();</td></tr> |
|
462 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 424 </td><td class="black_source"> iAudioPlayer->Close(); </td></tr> |
|
463 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 425 </td><td class="black_source"> iAudioPlayerStatus = EAudioPlayerReady;</td></tr> |
|
464 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 426 </td><td class="black_source"> }</td></tr> |
|
465 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 427 </td><td class="black_source"> </td></tr> |
|
466 <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> |
|
467 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 429 </td><td class="black_source"> {</td></tr> |
|
468 <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> |
|
469 <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> |
|
470 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 432 </td><td class="black_source"> iTonePlayer->CancelPlay(); </td></tr> |
|
471 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 433 </td><td class="black_source"> iTonePlayerStatus = EAudioPlayerReady;</td></tr> |
|
472 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 434 </td><td class="black_source"> } </td></tr> |
|
473 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 435 </td><td class="black_source"> </td></tr> |
|
474 <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> |
|
475 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 437 </td><td class="black_source"> }</td></tr> |
|
476 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 438 </td><td class="black_source"></td></tr> |
|
477 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 439 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
478 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 440 </td><td class="black_source">// CIMAlertManager::SetVolume</td></tr> |
|
479 <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> |
|
480 <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> |
|
481 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 443 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
482 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 444 </td><td class="black_source">//</td></tr> |
|
483 <tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr> |
|
484 <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> |
|
485 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 446 </td><td class="black_source"> {</td></tr> |
|
486 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 447 </td><td class="black_source"> iRingingVolumeNotifyHandler->StopListening();</td></tr> |
|
487 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 448 </td><td class="black_source"> iRingingVolume = aVolume;</td></tr> |
|
488 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 449 </td><td class="black_source"> }</td></tr> |
|
489 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 450 </td><td class="black_source"></td></tr> |
|
490 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 451 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
491 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 452 </td><td class="black_source">// CIMAlertManager::SetRingingType</td></tr> |
|
492 <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> |
|
493 <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> |
|
494 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 455 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
495 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 456 </td><td class="black_source">//</td></tr> |
|
496 <tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr> |
|
497 <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> |
|
498 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 458 </td><td class="black_source"> {</td></tr> |
|
499 <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> |
|
500 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 460 </td><td class="black_source"> {</td></tr> |
|
501 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 461 </td><td class="black_source"> iRingingTypeNotifyHandler->StopListening();</td></tr> |
|
502 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 462 </td><td class="black_source"> iRingingType = aRingingType;</td></tr> |
|
503 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 463 </td><td class="black_source"> }</td></tr> |
|
504 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 464 </td><td class="black_source"> }</td></tr> |
|
505 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 465 </td><td class="black_source"></td></tr> |
|
506 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 466 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
507 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 467 </td><td class="black_source">// CIMAlertManager::SetVibra</td></tr> |
|
508 <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> |
|
509 <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> |
|
510 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 470 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
511 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 471 </td><td class="black_source">//</td></tr> |
|
512 <tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr> |
|
513 <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> |
|
514 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 473 </td><td class="black_source"> {</td></tr> |
|
515 <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> |
|
516 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 475 </td><td class="black_source"> {</td></tr> |
|
517 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 476 </td><td class="black_source"> iVibraNotifyHandler->StopListening();</td></tr> |
|
518 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 477 </td><td class="black_source"> iVibra = aVibra;</td></tr> |
|
519 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 478 </td><td class="black_source"> }</td></tr> |
|
520 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 479 </td><td class="black_source"> }</td></tr> |
|
521 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 480 </td><td class="black_source"></td></tr> |
|
522 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 481 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
523 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 482 </td><td class="black_source">// CIMAlertManager::AddObserverL</td></tr> |
|
524 <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> |
|
525 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 484 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
526 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 485 </td><td class="black_source">//</td></tr> |
|
527 <tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr> |
|
528 <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> |
|
529 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 487 </td><td class="black_source"> {</td></tr> |
|
530 <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> |
|
531 <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> |
|
532 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 490 </td><td class="black_source"> {</td></tr> |
|
533 <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> |
|
534 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 492 </td><td class="black_source"> }</td></tr> |
|
535 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 493 </td><td class="black_source"> }</td></tr> |
|
536 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 494 </td><td class="black_source"></td></tr> |
|
537 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 495 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
538 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 496 </td><td class="black_source">// CIMAlertManager::RemoveObserver</td></tr> |
|
539 <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> |
|
540 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 498 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
541 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 499 </td><td class="black_source">//</td></tr> |
|
542 <tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr> |
|
543 <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> |
|
544 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 501 </td><td class="black_source"> {</td></tr> |
|
545 <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> |
|
546 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 503 </td><td class="black_source"></td></tr> |
|
547 <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> |
|
548 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 505 </td><td class="black_source"> {</td></tr> |
|
549 <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> |
|
550 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 507 </td><td class="black_source"> }</td></tr> |
|
551 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 508 </td><td class="black_source"> }</td></tr> |
|
552 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 509 </td><td class="black_source"></td></tr> |
|
553 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 510 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
554 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 511 </td><td class="black_source">// CIMAlertManager::ProcessFileL</td></tr> |
|
555 <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> |
|
556 <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> |
|
557 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 514 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
558 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 515 </td><td class="black_source">//</td></tr> |
|
559 <tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr> |
|
560 <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> |
|
561 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 517 </td><td class="black_source"> {</td></tr> |
|
562 <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> |
|
563 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 519 </td><td class="black_source"></td></tr> |
|
564 <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> |
|
565 <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> |
|
566 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 522 </td><td class="black_source"></td></tr> |
|
567 <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> |
|
568 <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> |
|
569 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 525 </td><td class="black_source"> {</td></tr> |
|
570 <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> |
|
571 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 527 </td><td class="black_source"> }</td></tr> |
|
572 <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> |
|
573 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 529 </td><td class="black_source"> {</td></tr> |
|
574 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 530 </td><td class="black_source"> *fileName = aFileName;</td></tr> |
|
575 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 531 </td><td class="black_source"> }</td></tr> |
|
576 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 532 </td><td class="black_source"></td></tr> |
|
577 <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> |
|
578 <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> |
|
579 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 535 </td><td class="black_source"> {</td></tr> |
|
580 <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> |
|
581 <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> |
|
582 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 538 </td><td class="black_source"> }</td></tr> |
|
583 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 539 </td><td class="black_source"></td></tr> |
|
584 <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> |
|
585 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 541 </td><td class="black_source"></td></tr> |
|
586 <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> |
|
587 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 543 </td><td class="black_source"> TDataType dataType;</td></tr> |
|
588 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 544 </td><td class="black_source"> </td></tr> |
|
589 <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> |
|
590 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 546 </td><td class="black_source"> dataType ) );</td></tr> |
|
591 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 547 </td><td class="black_source"></td></tr> |
|
592 <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> |
|
593 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 549 </td><td class="black_source"> {</td></tr> |
|
594 <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> |
|
595 <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> |
|
596 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 552 </td><td class="black_source"> {</td></tr> |
|
597 <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> |
|
598 <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> |
|
599 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 555 </td><td class="black_source"> &(*fileName));</td></tr> |
|
600 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 556 </td><td class="black_source"> iTonePlayerStatus = EAudioPlayerInitializing;</td></tr> |
|
601 <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> |
|
602 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 558 </td><td class="black_source"> }</td></tr> |
|
603 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 559 </td><td class="black_source"> }</td></tr> |
|
604 <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> |
|
605 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 561 </td><td class="black_source"> {</td></tr> |
|
606 <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> |
|
607 <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> |
|
608 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 564 </td><td class="black_source"> {</td></tr> |
|
609 <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> |
|
610 <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> |
|
611 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 567 </td><td class="black_source"> &(*fileName));</td></tr> |
|
612 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 568 </td><td class="black_source"> iAudioPlayerStatus = EAudioPlayerInitializing;</td></tr> |
|
613 <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> |
|
614 <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> |
|
615 <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> |
|
616 <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> |
|
617 <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> |
|
618 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 572 </td><td class="black_source"> err );</td></tr> |
|
619 <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> |
|
620 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 574 </td><td class="black_source"> { </td></tr> |
|
621 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 575 </td><td class="black_source"> iAudioPlayerStatus = EAudioPlayerReady;</td></tr> |
|
622 <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> |
|
623 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 577 </td><td class="black_source"> }</td></tr> |
|
624 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 578 </td><td class="black_source"> }</td></tr> |
|
625 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 579 </td><td class="black_source"> } </td></tr> |
|
626 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 580 </td><td class="black_source"></td></tr> |
|
627 <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> |
|
628 <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> |
|
629 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 583 </td><td class="black_source"> }</td></tr> |
|
630 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 584 </td><td class="black_source"></td></tr> |
|
631 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 585 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
632 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 586 </td><td class="black_source">// CIMAlertManager::DoSetRingingType</td></tr> |
|
633 <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> |
|
634 <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> |
|
635 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 589 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
636 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 590 </td><td class="black_source">//</td></tr> |
|
637 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 591 </td><td class="black_source"></td></tr> |
|
638 <tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr> |
|
639 <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> |
|
640 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 593 </td><td class="black_source"> {</td></tr> |
|
641 <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> |
|
642 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 595 </td><td class="black_source"> {</td></tr> |
|
643 <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> |
|
644 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 597 </td><td class="black_source"> {</td></tr> |
|
645 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 598 </td><td class="black_source"> // Fall through</td></tr> |
|
646 <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> |
|
647 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 600 </td><td class="black_source"> {</td></tr> |
|
648 <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> |
|
649 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 602 </td><td class="black_source"> TTimeIntervalMicroSeconds( KToneInterval ) );</td></tr> |
|
650 <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> |
|
651 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 604 </td><td class="black_source"> }</td></tr> |
|
652 <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> |
|
653 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 606 </td><td class="black_source"> {</td></tr> |
|
654 <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> |
|
655 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 608 </td><td class="black_source"> TTimeIntervalMicroSeconds( KToneInterval ) );</td></tr> |
|
656 <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> |
|
657 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 610 </td><td class="black_source"> }</td></tr> |
|
658 <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> |
|
659 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 612 </td><td class="black_source"> {</td></tr> |
|
660 <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> |
|
661 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 614 </td><td class="black_source"> }</td></tr> |
|
662 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 615 </td><td class="black_source"> }</td></tr> |
|
663 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 616 </td><td class="black_source"> }</td></tr> |
|
664 <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> |
|
665 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 618 </td><td class="black_source"> {</td></tr> |
|
666 <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> |
|
667 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 620 </td><td class="black_source"> {</td></tr> |
|
668 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 621 </td><td class="black_source"> // Fall through</td></tr> |
|
669 <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> |
|
670 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 623 </td><td class="black_source"> {</td></tr> |
|
671 <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> |
|
672 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 625 </td><td class="black_source"> TTimeIntervalMicroSeconds( KToneInterval ) );</td></tr> |
|
673 <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> |
|
674 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 627 </td><td class="black_source"> }</td></tr> |
|
675 <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> |
|
676 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 629 </td><td class="black_source"> {</td></tr> |
|
677 <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> |
|
678 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 631 </td><td class="black_source"> TTimeIntervalMicroSeconds( KToneInterval ) );</td></tr> |
|
679 <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> |
|
680 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 633 </td><td class="black_source"> }</td></tr> |
|
681 <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> |
|
682 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 635 </td><td class="black_source"> {</td></tr> |
|
683 <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> |
|
684 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 637 </td><td class="black_source"> }</td></tr> |
|
685 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 638 </td><td class="black_source"> }</td></tr> |
|
686 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 639 </td><td class="black_source"> }</td></tr> |
|
687 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 640 </td><td class="black_source"> }</td></tr> |
|
688 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 641 </td><td class="black_source"></td></tr> |
|
689 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 642 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
690 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 643 </td><td class="black_source">// CIMAlertManager::ConvertVolume</td></tr> |
|
691 <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> |
|
692 <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> |
|
693 <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> |
|
694 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 647 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
695 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 648 </td><td class="black_source">//</td></tr> |
|
696 <tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr> |
|
697 <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> |
|
698 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 650 </td><td class="black_source"> {</td></tr> |
|
699 <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> |
|
700 <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> |
|
701 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 653 </td><td class="black_source"> // is zero</td></tr> |
|
702 <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> |
|
703 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 655 </td><td class="black_source"> {</td></tr> |
|
704 <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> |
|
705 <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> |
|
706 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 658 </td><td class="black_source"> {</td></tr> |
|
707 <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> |
|
708 <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> |
|
709 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 661 </td><td class="black_source"> {</td></tr> |
|
710 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 662 </td><td class="black_source"> result = 1;</td></tr> |
|
711 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 663 </td><td class="black_source"> }</td></tr> |
|
712 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 664 </td><td class="black_source"> }</td></tr> |
|
713 <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> |
|
714 <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> |
|
715 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 667 </td><td class="black_source"> {</td></tr> |
|
716 <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> |
|
717 <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> |
|
718 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 670 </td><td class="black_source"> {</td></tr> |
|
719 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 671 </td><td class="black_source"> result = 1;</td></tr> |
|
720 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 672 </td><td class="black_source"> }</td></tr> |
|
721 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 673 </td><td class="black_source"> }</td></tr> |
|
722 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 674 </td><td class="black_source"> }</td></tr> |
|
723 <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> |
|
724 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 676 </td><td class="black_source"> }</td></tr> |
|
725 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 677 </td><td class="black_source"></td></tr> |
|
726 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 678 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
727 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 679 </td><td class="black_source">// CIMAlertManager::HandleError</td></tr> |
|
728 <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> |
|
729 <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> |
|
730 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 682 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
731 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 683 </td><td class="black_source">//</td></tr> |
|
732 <tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr> |
|
733 <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> |
|
734 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 685 </td><td class="black_source"> {</td></tr> |
|
735 <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> |
|
736 <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> |
|
737 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 688 </td><td class="black_source"> {</td></tr> |
|
738 <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> |
|
739 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 690 </td><td class="black_source"> }</td></tr> |
|
740 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 691 </td><td class="black_source"> }</td></tr> |
|
741 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 692 </td><td class="black_source"></td></tr> |
|
742 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 693 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
743 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 694 </td><td class="black_source">// CIMAlertManager::GetToneFileNameL</td></tr> |
|
744 <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> |
|
745 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 696 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
746 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 697 </td><td class="black_source">//</td></tr> |
|
747 <tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr> |
|
748 <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> |
|
749 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 699 </td><td class="black_source"> {</td></tr> |
|
750 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 700 </td><td class="black_source"> RBuf buffer;</td></tr> |
|
751 <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> |
|
752 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 702 </td><td class="black_source"> CleanupClosePushL( buffer );</td></tr> |
|
753 <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> |
|
754 <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> |
|
755 <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> |
|
756 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 706 </td><td class="black_source"> }</td></tr> |
|
757 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 707 </td><td class="black_source"></td></tr> |
|
758 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 708 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
759 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 709 </td><td class="black_source">// CIMAlertManager::MapcInitComplete</td></tr> |
|
760 <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> |
|
761 <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> |
|
762 <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> |
|
763 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 713 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
764 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 714 </td><td class="black_source">//</td></tr> |
|
765 <tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr> |
|
766 <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> |
|
767 <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> |
|
768 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 717 </td><td class="black_source"> {</td></tr> |
|
769 <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> |
|
770 <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> |
|
771 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 720 </td><td class="black_source"> aError);</td></tr> |
|
772 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 721 </td><td class="black_source"></td></tr> |
|
773 <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> |
|
774 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 723 </td><td class="black_source"> {</td></tr> |
|
775 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 724 </td><td class="black_source"> iAudioPlayerStatus = EAudioPlayerInitialized;</td></tr> |
|
776 <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> |
|
777 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 726 </td><td class="black_source"> // ringing once</td></tr> |
|
778 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 727 </td><td class="black_source"> DoSetRingingType( EProfileRingingTypeRingingOnce );</td></tr> |
|
779 <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> |
|
780 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 729 </td><td class="black_source"> iRingingVolume);</td></tr> |
|
781 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 730 </td><td class="black_source"> </td></tr> |
|
782 <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> |
|
783 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 732 </td><td class="black_source"> </td></tr> |
|
784 <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> |
|
785 <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> |
|
786 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 735 </td><td class="black_source"> //</td></tr> |
|
787 <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> |
|
788 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 737 </td><td class="black_source"> KAudioPriorityRecvMsg, </td></tr> |
|
789 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 738 </td><td class="black_source"> TMdaPriorityPreference( KAudioPrefNewSpecialMessage ) );</td></tr> |
|
790 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 739 </td><td class="black_source"> </td></tr> |
|
791 <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> |
|
792 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 741 </td><td class="black_source"> TMdaPriorityPreference( KAudioPrefNewSpecialMessage ) );</td></tr> |
|
793 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 742 </td><td class="black_source"> </td></tr> |
|
794 <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> |
|
795 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 744 </td><td class="black_source"> iAudioPlayer->Play();</td></tr> |
|
796 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 745 </td><td class="black_source"> iAudioPlayerStatus = EAudioPlayerPlaying;</td></tr> |
|
797 <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> |
|
798 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 747 </td><td class="black_source"> ECoreAppUIsTonePlaying );</td></tr> |
|
799 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 748 </td><td class="black_source"> }</td></tr> |
|
800 <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> |
|
801 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 750 </td><td class="black_source"> {</td></tr> |
|
802 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 751 </td><td class="black_source"> Stop();</td></tr> |
|
803 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 752 </td><td class="black_source"> iAudioPlayerStatus = EAudioPlayerReady;</td></tr> |
|
804 <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> |
|
805 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 754 </td><td class="black_source"> {</td></tr> |
|
806 <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> |
|
807 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 756 </td><td class="black_source"> }</td></tr> |
|
808 <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> |
|
809 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 758 </td><td class="black_source"> {</td></tr> |
|
810 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 759 </td><td class="black_source"> HandleError( aError );</td></tr> |
|
811 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 760 </td><td class="black_source"> iIsPlayingDefaultIMSound = EFalse;</td></tr> |
|
812 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 761 </td><td class="black_source"> }</td></tr> |
|
813 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 762 </td><td class="black_source"> }</td></tr> |
|
814 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 763 </td><td class="black_source"> }</td></tr> |
|
815 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 764 </td><td class="black_source"></td></tr> |
|
816 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 765 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
817 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 766 </td><td class="black_source">// CIMAlertManager::MapcPlayComplete</td></tr> |
|
818 <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> |
|
819 <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> |
|
820 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 769 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
821 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 770 </td><td class="black_source">//</td></tr> |
|
822 <tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr> |
|
823 <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> |
|
824 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 772 </td><td class="black_source"> {</td></tr> |
|
825 <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> |
|
826 <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> |
|
827 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 775 </td><td class="black_source"> aError);</td></tr> |
|
828 <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> |
|
829 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 777 </td><td class="black_source"> iAudioPlayer->Close();</td></tr> |
|
830 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 778 </td><td class="black_source"> iAudioPlayerStatus = EAudioPlayerReady;</td></tr> |
|
831 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 779 </td><td class="black_source"> </td></tr> |
|
832 <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> |
|
833 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 781 </td><td class="black_source"> {</td></tr> |
|
834 <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> |
|
835 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 783 </td><td class="black_source"> }</td></tr> |
|
836 <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> |
|
837 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 785 </td><td class="black_source"> {</td></tr> |
|
838 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 786 </td><td class="black_source"> HandleError( aError );</td></tr> |
|
839 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 787 </td><td class="black_source"> iIsPlayingDefaultIMSound = EFalse;</td></tr> |
|
840 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 788 </td><td class="black_source"> }</td></tr> |
|
841 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 789 </td><td class="black_source"> }</td></tr> |
|
842 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 790 </td><td class="black_source"></td></tr> |
|
843 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 791 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
844 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 792 </td><td class="black_source">// CIMAlertManager::HandleKeyChange</td></tr> |
|
845 <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> |
|
846 <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> |
|
847 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 795 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
848 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 796 </td><td class="black_source">//</td></tr> |
|
849 <tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr> |
|
850 <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> |
|
851 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 798 </td><td class="black_source"> {</td></tr> |
|
852 <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> |
|
853 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 800 </td><td class="black_source"></td></tr> |
|
854 <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> |
|
855 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 802 </td><td class="black_source"> * (1) EPSCTsyCallStateNone </td></tr> |
|
856 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 803 </td><td class="black_source"> * (2) EPSCTsyCallStateDialling </td></tr> |
|
857 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 804 </td><td class="black_source"> * (3) EPSCTsyCallStateAlerting </td></tr> |
|
858 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 805 </td><td class="black_source"> * (4) EPSTelephonyCallStateConnected </td></tr> |
|
859 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 806 </td><td class="black_source"> * (5) EPSCTsyCallStateDisconnecting </td></tr> |
|
860 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 807 </td><td class="black_source"> * (6) EPSCTsyCallStateNone</td></tr> |
|
861 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 808 </td><td class="black_source"> * </td></tr> |
|
862 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 809 </td><td class="black_source"> */</td></tr> |
|
863 <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> |
|
864 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 811 </td><td class="black_source"> {</td></tr> |
|
865 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 812 </td><td class="black_source"> iCallState = EFalse;</td></tr> |
|
866 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 813 </td><td class="black_source"> }</td></tr> |
|
867 <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> |
|
868 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 815 </td><td class="black_source"> {</td></tr> |
|
869 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 816 </td><td class="black_source"> iCallState = ETrue; </td></tr> |
|
870 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 817 </td><td class="black_source"> }</td></tr> |
|
871 <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> |
|
872 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 819 </td><td class="black_source"> {</td></tr> |
|
873 <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> |
|
874 <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> |
|
875 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 822 </td><td class="black_source"> Stop(); </td></tr> |
|
876 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 823 </td><td class="black_source"> }</td></tr> |
|
877 <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> |
|
878 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 825 </td><td class="black_source"> }</td></tr> |
|
879 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 826 </td><td class="black_source"></td></tr> |
|
880 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 827 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
881 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 828 </td><td class="black_source">// CIMAlertManager::HandleNotifyInt</td></tr> |
|
882 <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> |
|
883 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 830 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
884 <tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr> |
|
885 <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> |
|
886 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 832 </td><td class="black_source"> {</td></tr> |
|
887 <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> |
|
888 <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> |
|
889 <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> |
|
890 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 836 </td><td class="black_source"> </td></tr> |
|
891 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 837 </td><td class="black_source"></td></tr> |
|
892 <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> |
|
893 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 839 </td><td class="black_source"> {</td></tr> |
|
894 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 840 </td><td class="black_source"> iRingingVolume = aNewValue;</td></tr> |
|
895 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 841 </td><td class="black_source"> }</td></tr> |
|
896 <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> |
|
897 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 843 </td><td class="black_source"> {</td></tr> |
|
898 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 844 </td><td class="black_source"> iRingingType = aNewValue;</td></tr> |
|
899 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 845 </td><td class="black_source"> }</td></tr> |
|
900 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 846 </td><td class="black_source"></td></tr> |
|
901 <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> |
|
902 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 848 </td><td class="black_source"> {</td></tr> |
|
903 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 849 </td><td class="black_source"> iVibra = aNewValue;</td></tr> |
|
904 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 850 </td><td class="black_source"> }</td></tr> |
|
905 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 851 </td><td class="black_source"> </td></tr> |
|
906 <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> |
|
907 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 853 </td><td class="black_source"> }</td></tr> |
|
908 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 854 </td><td class="black_source"></td></tr> |
|
909 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 855 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
910 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 856 </td><td class="black_source">// CIMAlertManager::MatoPrepareComplete</td></tr> |
|
911 <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> |
|
912 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 858 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
913 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 859 </td><td class="black_source">//</td></tr> |
|
914 <tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr> |
|
915 <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> |
|
916 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 861 </td><td class="black_source"> {</td></tr> |
|
917 <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> |
|
918 <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> |
|
919 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 864 </td><td class="black_source"> aError);</td></tr> |
|
920 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 865 </td><td class="black_source"> </td></tr> |
|
921 <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> |
|
922 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 867 </td><td class="black_source"> {</td></tr> |
|
923 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 868 </td><td class="black_source"> iTonePlayerStatus = EAudioPlayerInitialized;</td></tr> |
|
924 <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> |
|
925 <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> |
|
926 <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> |
|
927 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 872 </td><td class="black_source"> </td></tr> |
|
928 <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> |
|
929 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 874 </td><td class="black_source"> // ringing once</td></tr> |
|
930 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 875 </td><td class="black_source"> DoSetRingingType( EProfileRingingTypeRingingOnce );</td></tr> |
|
931 <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> |
|
932 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 877 </td><td class="black_source"> ConvertVolume( iRingingVolume ));</td></tr> |
|
933 <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> |
|
934 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 879 </td><td class="black_source"></td></tr> |
|
935 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 880 </td><td class="black_source"></td></tr> |
|
936 <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> |
|
937 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 882 </td><td class="black_source"> KAudioPriorityRecvMsg, </td></tr> |
|
938 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 883 </td><td class="black_source"> TMdaPriorityPreference( KAudioPrefNewSpecialMessage ) );</td></tr> |
|
939 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 884 </td><td class="black_source"> </td></tr> |
|
940 <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> |
|
941 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 886 </td><td class="black_source"> TMdaPriorityPreference( KAudioPrefNewSpecialMessage ) );</td></tr> |
|
942 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 887 </td><td class="black_source"> </td></tr> |
|
943 <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> |
|
944 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 889 </td><td class="black_source"> iTonePlayer->Play();</td></tr> |
|
945 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 890 </td><td class="black_source"> iTonePlayerStatus = EAudioPlayerPlaying;</td></tr> |
|
946 <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> |
|
947 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 892 </td><td class="black_source"> ECoreAppUIsTonePlaying );</td></tr> |
|
948 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 893 </td><td class="black_source"> }</td></tr> |
|
949 <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> |
|
950 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 895 </td><td class="black_source"> {</td></tr> |
|
951 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 896 </td><td class="black_source"> Stop();</td></tr> |
|
952 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 897 </td><td class="black_source"> iTonePlayerStatus = EAudioPlayerReady;</td></tr> |
|
953 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 898 </td><td class="black_source"> </td></tr> |
|
954 <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> |
|
955 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 900 </td><td class="black_source"> {</td></tr> |
|
956 <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> |
|
957 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 902 </td><td class="black_source"> }</td></tr> |
|
958 <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> |
|
959 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 904 </td><td class="black_source"> {</td></tr> |
|
960 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 905 </td><td class="black_source"> HandleError( aError );</td></tr> |
|
961 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 906 </td><td class="black_source"> iIsPlayingDefaultIMSound = EFalse;</td></tr> |
|
962 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 907 </td><td class="black_source"> }</td></tr> |
|
963 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 908 </td><td class="black_source"> }</td></tr> |
|
964 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 909 </td><td class="black_source"> }</td></tr> |
|
965 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 910 </td><td class="black_source"></td></tr> |
|
966 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 911 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
967 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 912 </td><td class="black_source">// CIMAlertManager::MatoPlayComplete</td></tr> |
|
968 <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> |
|
969 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 914 </td><td class="black_source">// ---------------------------------------------------------</td></tr> |
|
970 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 915 </td><td class="black_source">//</td></tr> |
|
971 <tr><td colspan="5" class="black"><a href="indexD1.html" title="\meco_domain\conversations\instantmessagesalert\src\cimalertmanager.cpp">Top</a></td></tr> |
|
972 <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> |
|
973 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 917 </td><td class="black_source"> {</td></tr> |
|
974 <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> |
|
975 <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> |
|
976 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 920 </td><td class="black_source"> aError);</td></tr> |
|
977 <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> |
|
978 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 922 </td><td class="black_source"> iTonePlayerStatus = EAudioPlayerReady;</td></tr> |
|
979 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 923 </td><td class="black_source"> </td></tr> |
|
980 <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> |
|
981 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 925 </td><td class="black_source"> {</td></tr> |
|
982 <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> |
|
983 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 927 </td><td class="black_source"> }</td></tr> |
|
984 <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> |
|
985 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 929 </td><td class="black_source"> {</td></tr> |
|
986 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 930 </td><td class="black_source"> HandleError( aError );</td></tr> |
|
987 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 931 </td><td class="black_source"> iIsPlayingDefaultIMSound = EFalse;</td></tr> |
|
988 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 932 </td><td class="black_source"> }</td></tr> |
|
989 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 933 </td><td class="black_source"> }</td></tr> |
|
990 <tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 934 </td><td class="black_source"> </td></tr> |
|
991 <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> |
|
992 <tr><td colspan="5" class="red"><strong>***TER 46% (78/168) of SOURCE FILE <a name="ut84"></a>cimalertmanager.cpp</strong></td></tr> |
|
993 </table><br> |
|
994 <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> |
|
995 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> |
|
996 </body></html> |