equal
deleted
inserted
replaced
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
94 CImapFolder::~CImapFolder() |
94 CImapFolder::~CImapFolder() |
95 { |
95 { |
96 iMatchingMessageIds.Reset(); |
96 iMatchingMessageIds.Reset(); |
97 iDeletedMessageIds.Reset(); |
97 iDeletedMessageIds.Reset(); |
98 iMissingMessageIds.Reset(); |
98 iMissingMessageIds.Reset(); |
|
99 |
|
100 if(iCachedEntryData) |
|
101 { |
|
102 iCachedEntryData->Close(); |
|
103 } |
|
104 |
99 delete iSelection; |
105 delete iSelection; |
100 iFolderIndex->Reset(); |
106 iFolderIndex->Reset(); |
101 iMessageFlagInfoArray.Reset(); |
107 iMessageFlagInfoArray.Reset(); |
102 delete iFolderIndex; |
108 delete iFolderIndex; |
103 delete iCachedEntryData; |
109 delete iCachedEntryData; |
1119 aChildren->Reset(); |
1125 aChildren->Reset(); |
1120 // Get *all* the children |
1126 // Get *all* the children |
1121 SetEntryL(aFolder); |
1127 SetEntryL(aFolder); |
1122 GetChildrenL(*aChildren); |
1128 GetChildrenL(*aChildren); |
1123 |
1129 |
|
1130 if(iCachedEntryData) |
|
1131 { |
|
1132 iCachedEntryData->Close(); |
|
1133 } |
1124 delete iCachedEntryData; |
1134 delete iCachedEntryData; |
1125 iCachedEntryData = NULL; |
1135 iCachedEntryData = NULL; |
1126 |
|
1127 iCachedEntryData = new(ELeave) RArray<TMsvCacheData>(5); |
1136 iCachedEntryData = new(ELeave) RArray<TMsvCacheData>(5); |
1128 |
1137 |
1129 // Go through them, checking to see if they're messages and removing ones that aren't |
1138 // Go through them, checking to see if they're messages and removing ones that aren't |
1130 TInt pos = 0; |
1139 TInt pos = 0; |
1131 while(pos < aChildren->Count()) |
1140 while(pos < aChildren->Count()) |