19 // INCLUDE FILES |
19 // INCLUDE FILES |
20 #include <f32file.h> |
20 #include <f32file.h> |
21 #include <CWPCharacteristic.h> |
21 #include <CWPCharacteristic.h> |
22 #include <CWPParameter.h> |
22 #include <CWPParameter.h> |
23 #include <wpmbxnbradapterresource.rsg> |
23 #include <wpmbxnbradapterresource.rsg> |
24 #include <vmnumber.h> |
24 //#include <vmnumber.h> |
25 #include <commonphoneparser.h> |
25 #include <commonphoneparser.h> |
26 #include <voicemailboxdomaincrkeys.h> |
26 #include <voicemailboxdomaincrkeys.h> |
27 #include <centralrepository.h> |
27 #include <centralrepository.h> |
28 |
28 |
29 #include "WPAdapterUtil.h" |
29 #include "WPAdapterUtil.h" |
154 { |
154 { |
155 FLOG( _L( "[Provisioning] CMbxNbrAdapter::SaveL:" ) ); |
155 FLOG( _L( "[Provisioning] CMbxNbrAdapter::SaveL:" ) ); |
156 __ASSERT_DEBUG( iSettings.Count() > aItem, User::Leave( KErrCorrupt ) ); |
156 __ASSERT_DEBUG( iSettings.Count() > aItem, User::Leave( KErrCorrupt ) ); |
157 __ASSERT_DEBUG( aItem >= 0, User::Leave( KErrCorrupt ) ); |
157 __ASSERT_DEBUG( aItem >= 0, User::Leave( KErrCorrupt ) ); |
158 |
158 |
159 RVmbxNumber model; |
159 //RVmbxNumber model; |
160 User::LeaveIfError( model.Open() ); |
160 //User::LeaveIfError( model.Open() ); |
161 CleanupClosePushL( model ); |
161 //CleanupClosePushL( model ); |
162 |
162 |
163 TInt err( KErrNone ); |
163 TInt err( KErrNone ); |
164 switch( iSettings[aItem].iMailboxType ) |
164 switch( iSettings[aItem].iMailboxType ) |
165 { |
165 { |
166 case ECSVoiceMailbox: |
166 case ECSVoiceMailbox: |
167 err = model.SaveVmbxNumber( iSettings[aItem].iMailboxNumber, |
167 //err = model.SaveVmbxNumber( iSettings[aItem].iMailboxNumber, |
168 EAlsActiveLineEntry ); |
168 // EAlsActiveLineEntry ); |
169 break; |
169 break; |
170 case ECSVideoMailbox: |
170 case ECSVideoMailbox: |
171 FLOG( _L( "[Provisioning] CMbxNbrAdapter::SaveL:case ECSVideoMailbox" ) ); |
171 FLOG( _L( "[Provisioning] CMbxNbrAdapter::SaveL:case ECSVideoMailbox" ) ); |
172 err = model.SaveVideoMbxNumber( iSettings[aItem].iMailboxNumber, |
172 //err = model.SaveVideoMbxNumber( iSettings[aItem].iMailboxNumber, |
173 EAlsActiveLineEntry ); |
173 // EAlsActiveLineEntry ); |
174 if ( iSettings[aItem].iIsVideosupport ) |
174 if ( iSettings[aItem].iIsVideosupport ) |
175 { |
175 { |
176 CRepository* cenrep = CRepository::NewL( KCRUidVideoMailbox ); |
176 CRepository* cenrep = CRepository::NewL( KCRUidVideoMailbox ); |
177 FLOG( _L( "[Provisioning] CMbxNbrAdapter::SaveL:case Saving it to Cenrep" ) ); |
177 FLOG( _L( "[Provisioning] CMbxNbrAdapter::SaveL:case Saving it to Cenrep" ) ); |
178 TBuf<100> buf1; |
178 TBuf<100> buf1; |