|
33
|
1 |
/*
|
|
|
2 |
* Copyright (c) 2005-2007 Nokia Corporation and/or its subsidiary(-ies).
|
|
|
3 |
* All rights reserved.
|
|
|
4 |
* This component and the accompanying materials are made available
|
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
|
6 |
* which accompanies this distribution, and is available
|
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
|
8 |
*
|
|
|
9 |
* Initial Contributors:
|
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
|
11 |
*
|
|
|
12 |
* Contributors:
|
|
|
13 |
*
|
|
|
14 |
* Description: Send Ss diverts observer
|
|
|
15 |
*
|
|
|
16 |
*/
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
#include "csatsendssdivertnouiobs.h"
|
|
|
20 |
#include "SatLog.h"
|
|
|
21 |
|
|
|
22 |
// ======== MEMBER FUNCTIONS ========
|
|
|
23 |
|
|
|
24 |
// -----------------------------------------------------------------------------
|
|
|
25 |
// CSatSendSsDivertNoUiObs::CSatSendSsDivertNoUiObs
|
|
|
26 |
// C++ default constructor can NOT contain any code, that might leave.
|
|
|
27 |
// -----------------------------------------------------------------------------
|
|
|
28 |
//
|
|
|
29 |
CSatSendSsDivertNoUiObs::CSatSendSsDivertNoUiObs()
|
|
|
30 |
{
|
|
|
31 |
LOG( SIMPLE,
|
|
|
32 |
"SENDSS: CSatSendSsDivertNoUiObs::CSatSendSsDivertNoUiObs \
|
|
|
33 |
calling-exiting" )
|
|
|
34 |
}
|
|
|
35 |
|
|
|
36 |
// -----------------------------------------------------------------------------
|
|
|
37 |
// CSatSendSsDivertNoUiObs::~CSatSendSsDivertNoUiObs
|
|
|
38 |
// Destructor.
|
|
|
39 |
// -----------------------------------------------------------------------------
|
|
|
40 |
//
|
|
|
41 |
CSatSendSsDivertNoUiObs::~CSatSendSsDivertNoUiObs()
|
|
|
42 |
{
|
|
|
43 |
LOG( SIMPLE,
|
|
|
44 |
"SENDSS: CSatSendSsDivertNoUiObs::~CSatSendSsDivertNoUiObs \
|
|
|
45 |
calling-exiting" )
|
|
|
46 |
}
|
|
|
47 |
|
|
|
48 |
// -----------------------------------------------------------------------------
|
|
|
49 |
// CSatSendSsDivertNoUiObs::HandleDivertingChangedL
|
|
|
50 |
// Notification of diverting change
|
|
|
51 |
// -----------------------------------------------------------------------------
|
|
|
52 |
//
|
|
|
53 |
void CSatSendSsDivertNoUiObs::HandleDivertingChangedL(
|
|
|
54 |
const TCallDivertSetting& aSetting,
|
|
|
55 |
TBool aPlural )
|
|
|
56 |
{
|
|
|
57 |
LOG( SIMPLE, "SENDSS: CSatSendSsDivertNoUiObs::HandleDivertingChangedL \
|
|
|
58 |
calling" )
|
|
|
59 |
|
|
|
60 |
LOG2( DETAILED, " CallDivert setting Condition: %i",
|
|
|
61 |
aSetting.iCondition )
|
|
|
62 |
LOG2( DETAILED, " CallDivert setting Setting: %i",
|
|
|
63 |
aSetting.iSetting )
|
|
|
64 |
LOG2( DETAILED, " CallDivert setting Status: %i",
|
|
|
65 |
aSetting.iStatus )
|
|
|
66 |
LOG2( DETAILED, " CallDivert setting Service group: %i",
|
|
|
67 |
aSetting.iServiceGroup )
|
|
|
68 |
LOG2( DETAILED, " CallDivert setting Tel Number: %S",
|
|
|
69 |
&aSetting.iNumber )
|
|
|
70 |
LOG2( DETAILED, " Plural: %i",
|
|
|
71 |
aPlural )
|
|
|
72 |
|
|
|
73 |
// Avoid warnigs about unused parameters.
|
|
|
74 |
aPlural = aPlural;
|
|
|
75 |
aPlural = aSetting.iCondition;
|
|
|
76 |
|
|
|
77 |
LOG( SIMPLE, "SENDSS: CSatSendSsDivertNoUiObs::HandleDivertingChangedL \
|
|
|
78 |
exiting" )
|
|
|
79 |
}
|
|
|
80 |
|
|
|
81 |
// -----------------------------------------------------------------------------
|
|
|
82 |
// CSatSendSsDivertNoUiObs::HandleDivertingStatusL
|
|
|
83 |
// Notification of diverting status change
|
|
|
84 |
// -----------------------------------------------------------------------------
|
|
|
85 |
//
|
|
|
86 |
void CSatSendSsDivertNoUiObs::HandleDivertingStatusL(
|
|
|
87 |
CMobilePhoneCFList&,
|
|
|
88 |
TBool )
|
|
|
89 |
{
|
|
|
90 |
LOG( SIMPLE,
|
|
|
91 |
"SENDSS: CSatSendSsDivertNoUiObs::HandleDivertingStatusL \
|
|
|
92 |
calling-exiting" )
|
|
|
93 |
}
|
|
|
94 |
|
|
|
95 |
// -----------------------------------------------------------------------------
|
|
|
96 |
// CSatSendSsDivertNoUiObs::HandleDivertingErrorL
|
|
|
97 |
// Notification of errors in diverts
|
|
|
98 |
// -----------------------------------------------------------------------------
|
|
|
99 |
//
|
|
|
100 |
void CSatSendSsDivertNoUiObs::HandleDivertingErrorL( TInt aReason )
|
|
|
101 |
{
|
|
|
102 |
LOG( SIMPLE,
|
|
|
103 |
"SENDSS: CSatSendSsDivertNoUiObs::HandleDivertingErrorL calling" )
|
|
|
104 |
|
|
|
105 |
LOG2( DETAILED, " Diverting error: %i", aReason )
|
|
|
106 |
|
|
|
107 |
// Avoid warnigs about unused parameters.
|
|
|
108 |
aReason = aReason;
|
|
|
109 |
|
|
|
110 |
LOG( SIMPLE,
|
|
|
111 |
"SENDSS: CSatSendSsDivertNoUiObs::HandleDivertingErrorL exiting" )
|
|
|
112 |
}
|
|
|
113 |
|
|
|
114 |
// -----------------------------------------------------------------------------
|
|
|
115 |
// CSatSendSsDivertNoUiObs::HandleCFRequestingL
|
|
|
116 |
// Notification of requesting
|
|
|
117 |
// -----------------------------------------------------------------------------
|
|
|
118 |
//
|
|
|
119 |
void CSatSendSsDivertNoUiObs::HandleCFRequestingL(
|
|
|
120 |
TBool aOngoing,
|
|
|
121 |
TBool aInterrupted )
|
|
|
122 |
{
|
|
|
123 |
LOG( SIMPLE,
|
|
|
124 |
"SENDSS: CSatSendSsDivertNoUiObs::HandleCFRequestingL calling" )
|
|
|
125 |
|
|
|
126 |
LOG2( DETAILED, " ongoing: %i", aOngoing )
|
|
|
127 |
LOG2( DETAILED, " interrupted: %i", aInterrupted )
|
|
|
128 |
|
|
|
129 |
// Avoid warnigs about unused parameters.
|
|
|
130 |
aOngoing = aOngoing;
|
|
|
131 |
aInterrupted = aInterrupted;
|
|
|
132 |
|
|
|
133 |
LOG( SIMPLE,
|
|
|
134 |
"SENDSS: CSatSendSsDivertNoUiObs::HandleCFRequestingL exiting" )
|
|
|
135 |
}
|
|
|
136 |
|
|
|
137 |
// -----------------------------------------------------------------------------
|
|
|
138 |
// CSatSendSsDivertNoUiObs::SetEngineContact
|
|
|
139 |
//
|
|
|
140 |
// -----------------------------------------------------------------------------
|
|
|
141 |
//
|
|
|
142 |
void CSatSendSsDivertNoUiObs::SetEngineContact(
|
|
|
143 |
MPsetCallDiverting* /*aDivertEngine*/ )
|
|
|
144 |
{
|
|
|
145 |
LOG( SIMPLE,
|
|
|
146 |
"SENDSS: CSatSendSsDivertNoUiObs::SetEngineContact calling-exiting" )
|
|
|
147 |
}
|
|
|
148 |
|
|
|
149 |
// End of File
|