equal
deleted
inserted
replaced
27 #include "cphonestateincoming.h" |
27 #include "cphonestateincoming.h" |
28 #include "cphonestatecallsetup.h" |
28 #include "cphonestatecallsetup.h" |
29 #include "cphonestateincall.h" |
29 #include "cphonestateincall.h" |
30 #include "phonestatedefinitions.h" |
30 #include "phonestatedefinitions.h" |
31 #include "phonelogger.h" |
31 #include "phonelogger.h" |
32 #include "cphonestorage.h" |
|
33 #include "mphonestorage.h" |
|
34 |
32 |
35 // ================= MEMBER FUNCTIONS ======================= |
33 // ================= MEMBER FUNCTIONS ======================= |
36 |
34 |
37 // C++ default constructor can NOT contain any code, that |
35 // C++ default constructor can NOT contain any code, that |
38 // might leave. |
36 // might leave. |
77 if( iPhoneEngine ) |
75 if( iPhoneEngine ) |
78 { |
76 { |
79 delete iPhoneEngine; |
77 delete iPhoneEngine; |
80 iPhoneEngine = NULL; |
78 iPhoneEngine = NULL; |
81 } |
79 } |
82 if( iPhoneStorage ) |
|
83 { |
|
84 delete iPhoneStorage; |
|
85 iPhoneStorage = NULL; |
|
86 } |
|
87 } |
80 } |
88 |
81 |
89 // --------------------------------------------------------- |
82 // --------------------------------------------------------- |
90 // CPhoneStateMachine::SetPhoneEngine |
83 // CPhoneStateMachine::SetPhoneEngine |
91 // --------------------------------------------------------- |
84 // --------------------------------------------------------- |
181 "CALL ID: CPhoneStateMachine::SetCallId (%d)", |
174 "CALL ID: CPhoneStateMachine::SetCallId (%d)", |
182 aCallId); |
175 aCallId); |
183 PhoneEngineInfo()->SetCallId( aCallId ); |
176 PhoneEngineInfo()->SetCallId( aCallId ); |
184 } |
177 } |
185 |
178 |
186 // ----------------------------------------------------------- |
|
187 // CPhoneStateMachine::PhoneStorage |
|
188 // ----------------------------------------------------------- |
|
189 // |
|
190 EXPORT_C MPhoneStorage* CPhoneStateMachine::PhoneStorage() |
|
191 { |
|
192 if ( iPhoneStorage == NULL ) |
|
193 { |
|
194 TInt err( KErrNone ); |
|
195 TRAP( err, iPhoneStorage = CPhoneStorage::NewL()); |
|
196 __ASSERT_ALWAYS( KErrNone == err, User::Invariant() ); |
|
197 } |
|
198 return iPhoneStorage; |
|
199 } |
|
200 |
|
201 // End of File |
179 // End of File |