40 // ---------------------------------------------------------------------------- |
40 // ---------------------------------------------------------------------------- |
41 // CIpsPlgDeleteLocal::ConstructL |
41 // CIpsPlgDeleteLocal::ConstructL |
42 // ---------------------------------------------------------------------------- |
42 // ---------------------------------------------------------------------------- |
43 // |
43 // |
44 void CIpsPlgDeleteLocal::ConstructL( |
44 void CIpsPlgDeleteLocal::ConstructL( |
45 CMsvEntrySelection& aMessageSelection ) |
45 CMsvEntrySelection* aMessageSelection ) |
46 { |
46 { |
47 FUNC_LOG; |
47 FUNC_LOG; |
|
48 //<qmail> |
|
49 // Start cache manager to prune messages |
|
50 //</qmail> |
48 CImCacheManager::ConstructL(); |
51 CImCacheManager::ConstructL(); |
49 iMessageSelection = aMessageSelection.CopyL(); |
52 //<qmail> |
|
53 iMessageSelection = new (ELeave) CMsvEntrySelection(); |
|
54 for ( TInt i=0; i<aMessageSelection->Count(); i++ ) |
|
55 { |
|
56 iMessageSelection->AppendL( aMessageSelection->At(i) ); |
|
57 } |
|
58 //</qmail> |
50 StartL( *iMessageSelection, iObserverRequestStatus ); |
59 StartL( *iMessageSelection, iObserverRequestStatus ); |
51 } |
60 } |
52 |
61 |
53 // ---------------------------------------------------------------------------- |
62 // ---------------------------------------------------------------------------- |
54 // CIpsPlgDeleteLocal::NewL |
63 // CIpsPlgDeleteLocal::NewL |
55 // ---------------------------------------------------------------------------- |
64 // ---------------------------------------------------------------------------- |
56 // |
65 // |
57 CIpsPlgDeleteLocal* CIpsPlgDeleteLocal::NewL( |
66 CIpsPlgDeleteLocal* CIpsPlgDeleteLocal::NewL( |
58 CMsvEntrySelection& aMessageSelection, |
67 CMsvEntrySelection* aMessageSelection, |
59 CMsvSession& aMsvSession, |
68 CMsvSession& aMsvSession, |
60 TRequestStatus& aObserverRequestStatus) |
69 TRequestStatus& aObserverRequestStatus) |
61 { |
70 { |
62 FUNC_LOG; |
71 FUNC_LOG; |
63 CIpsPlgDeleteLocal* self = |
72 CIpsPlgDeleteLocal* self = |