equal
deleted
inserted
replaced
28 // |
28 // |
29 CPECallDurationDisplaySettingMonitor* CPECallDurationDisplaySettingMonitor::NewL( |
29 CPECallDurationDisplaySettingMonitor* CPECallDurationDisplaySettingMonitor::NewL( |
30 // None |
30 // None |
31 ) |
31 ) |
32 { |
32 { |
33 TEFLOGSTRING(KTAOBJECT, "CPECallDurationDisplaySettingMonitor::NewL"); |
33 TEFLOGSTRING(KTAOBJECT, "CPECallDurationDisplaySettingMonitor::NewL"); |
34 CPECallDurationDisplaySettingMonitor* me = new ( ELeave ) CPECallDurationDisplaySettingMonitor(); |
34 CPECallDurationDisplaySettingMonitor* me = new ( ELeave ) CPECallDurationDisplaySettingMonitor(); |
35 CleanupStack::PushL( me ); |
35 CleanupStack::PushL( me ); |
36 me->ConstructL(); |
36 me->ConstructL(); |
37 CleanupStack::Pop( me ); |
37 CleanupStack::Pop( me ); |
38 return ( me ); |
38 return ( me ); |
39 } |
39 } |
40 |
40 |
41 // Destructor |
41 // Destructor |
42 CPECallDurationDisplaySettingMonitor::~CPECallDurationDisplaySettingMonitor() |
42 CPECallDurationDisplaySettingMonitor::~CPECallDurationDisplaySettingMonitor() |
43 { |
43 { |
73 // 1 (call duration shown) |
73 // 1 (call duration shown) |
74 // ----------------------------------------------------------------------------- |
74 // ----------------------------------------------------------------------------- |
75 // |
75 // |
76 void CPECallDurationDisplaySettingMonitor::UpdateL() |
76 void CPECallDurationDisplaySettingMonitor::UpdateL() |
77 { |
77 { |
|
78 // Resubmit notification request |
78 // Retrieve current value for call duration display |
79 // Retrieve current value for call duration display |
79 iError = Get( iDisplayCallDuration ); |
80 User::LeaveIfError( Get( iDisplayCallDuration ) ); |
80 User::LeaveIfError( iError ); |
|
81 TEFLOGSTRING2( KTAINT, "CPECallDurationDisplaySettingMonitor::UpdateL %d", iDisplayCallDuration ); |
81 TEFLOGSTRING2( KTAINT, "CPECallDurationDisplaySettingMonitor::UpdateL %d", iDisplayCallDuration ); |
82 } |
|
83 |
|
84 // ----------------------------------------------------------------------------- |
|
85 // CPECallDurationDisplaySettingMonitor::GetValue |
|
86 // ----------------------------------------------------------------------------- |
|
87 // |
|
88 TInt CPECallDurationDisplaySettingMonitor::GetValue(TInt& aValue) |
|
89 { |
|
90 aValue = (TInt)iDisplayCallDuration; |
|
91 return iError; |
|
92 } |
82 } |
93 |
83 |
94 // End of file |
84 // End of file |