equal
deleted
inserted
replaced
38 #include "phonerssbase.h" |
38 #include "phonerssbase.h" |
39 #include "phonelogger.h" |
39 #include "phonelogger.h" |
40 #include "cphonetimer.h" |
40 #include "cphonetimer.h" |
41 #include "cphonenote.h" |
41 #include "cphonenote.h" |
42 #include "cphonedtmfsendingnote.h" |
42 #include "cphonedtmfsendingnote.h" |
43 #include "cphoneuidisablednote.h" |
|
44 |
43 |
45 // CONSTANTS |
44 // CONSTANTS |
46 const TInt KPhoneIntervalDivider = 100; |
45 const TInt KPhoneIntervalDivider = 100; |
47 // ================= MEMBER FUNCTIONS ======================= |
46 // ================= MEMBER FUNCTIONS ======================= |
48 // C++ default constructor can NOT contain any code, that |
47 // C++ default constructor can NOT contain any code, that |
142 resourceId = noteParam->ResourceId(); |
141 resourceId = noteParam->ResourceId(); |
143 timeout = noteParam->Timeout(); |
142 timeout = noteParam->Timeout(); |
144 tone = noteParam->Tone(); |
143 tone = noteParam->Tone(); |
145 break; |
144 break; |
146 |
145 |
147 case EPhoneNoteUIDisabled: |
|
148 // Use the specified values |
|
149 resourceId = noteParam->ResourceId(); |
|
150 timeout = CAknNoteDialog::ENoTimeout; |
|
151 tone = CAknNoteDialog::ENoTone; |
|
152 break; |
|
153 |
|
154 default: |
146 default: |
155 Panic( EPhoneViewCaseNotHandled ); |
147 Panic( EPhoneViewCaseNotHandled ); |
156 break; |
148 break; |
157 } |
149 } |
158 |
150 |
159 // Create correct note |
151 // Create correct note |
160 if( noteParam->Type() == EPhoneNoteDtmfSending ) |
152 if( noteParam->Type() == EPhoneNoteDtmfSending ) |
161 { |
153 { |
162 iNote = new ( ELeave ) CPhoneDtmfSendingNote( reinterpret_cast<CEikDialog**>( &iNote ), *iEikEnv.EikAppUi() ); |
154 iNote = new ( ELeave ) CPhoneDtmfSendingNote( reinterpret_cast<CEikDialog**>( &iNote ), *iEikEnv.EikAppUi() ); |
163 } |
155 } |
164 else if( noteParam->Type() == EPhoneNoteUIDisabled ) |
|
165 { |
|
166 iNote = new ( ELeave ) CPhoneUIDisabledNote( reinterpret_cast<CEikDialog**>( &iNote ), *iEikEnv.EikAppUi() ); |
|
167 } |
|
168 else |
156 else |
169 { |
157 { |
170 iNote = new ( ELeave ) CPhoneNote( reinterpret_cast<CEikDialog**>( &iNote ), *iEikEnv.EikAppUi() ); |
158 iNote = new ( ELeave ) CPhoneNote( reinterpret_cast<CEikDialog**>( &iNote ), *iEikEnv.EikAppUi() ); |
171 } |
159 } |
172 |
160 |