equal
deleted
inserted
replaced
70 |
70 |
71 void CPodcastModel::ConstructL() |
71 void CPodcastModel::ConstructL() |
72 { |
72 { |
73 DP("CPodcastModel::ConstructL BEGIN"); |
73 DP("CPodcastModel::ConstructL BEGIN"); |
74 User::LeaveIfError(iFsSession.Connect()); |
74 User::LeaveIfError(iFsSession.Connect()); |
75 |
|
76 iCommDB = CCommsDatabase::NewL (EDatabaseTypeUnspecified); |
75 iCommDB = CCommsDatabase::NewL (EDatabaseTypeUnspecified); |
77 //iCommDB ->ShowHiddenRecords(); // magic |
|
78 iIapNameArray = new (ELeave) CDesCArrayFlat(KDefaultGranu); |
76 iIapNameArray = new (ELeave) CDesCArrayFlat(KDefaultGranu); |
79 iSNAPNameArray = new (ELeave) CDesCArrayFlat(KDefaultGranu); |
77 iSNAPNameArray = new (ELeave) CDesCArrayFlat(KDefaultGranu); |
80 iCmManager.OpenL(); |
78 |
81 iImageHandler = CImageHandler::NewL(FsSession(), *this); |
79 iImageHandler = CImageHandler::NewL(FsSession(), *this); |
82 |
80 |
83 UpdateIAPListL(); |
81 TRAPD(err,iCmManager.OpenL()); |
84 UpdateSNAPListL(); |
82 DP1("iCmManager.OpenL(),err=%d;", err); |
|
83 |
|
84 if (err == KErrNone) |
|
85 { |
|
86 UpdateIAPListL(); |
|
87 UpdateSNAPListL(); |
|
88 } |
85 |
89 |
86 iSettingsEngine = CSettingsEngine::NewL(*this); |
90 iSettingsEngine = CSettingsEngine::NewL(*this); |
87 iConnectionEngine = CConnectionEngine::NewL(*this); |
91 iConnectionEngine = CConnectionEngine::NewL(*this); |
88 |
92 |
89 TRAPD(err, OpenDBL()); |
93 TRAP(err, OpenDBL()); |
90 |
94 |
91 if (err != KErrNone) |
95 if (err != KErrNone) |
92 { |
96 { |
93 ResetDB(); |
97 ResetDB(); |
94 |
98 |