|
1 /* |
|
2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Implementation of class TFavouritesSessionEntry and |
|
16 * CFavouritesSessionEntryList |
|
17 * |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 // INCLUDE FILES |
|
23 |
|
24 #include "FavouritesSrvSessionEntry.h" |
|
25 #include "FavouritesSrvDb.h" |
|
26 #include "FavouritesSrvDbNotifier.h" |
|
27 #include "FavouritesSrvDbIncremental.h" |
|
28 #include "FavouritesSrvStream.h" |
|
29 #include "FavouritesSrvFile.h" |
|
30 |
|
31 // ================= MEMBER FUNCTIONS ======================= |
|
32 |
|
33 // --------------------------------------------------------- |
|
34 // TFavouritesSessionEntry::Release() |
|
35 // --------------------------------------------------------- |
|
36 // |
|
37 void TFavouritesSessionEntry::Release() |
|
38 { |
|
39 switch( iType ) |
|
40 { |
|
41 case ENone: |
|
42 { |
|
43 break; |
|
44 } |
|
45 |
|
46 case EDatabase: |
|
47 { |
|
48 delete STATIC_CAST( CFavouritesSrvDb*, iObject ); |
|
49 break; |
|
50 } |
|
51 |
|
52 case ENotifier: |
|
53 { |
|
54 delete STATIC_CAST( CFavouritesSrvDbNotifier*, iObject ); |
|
55 break; |
|
56 } |
|
57 |
|
58 case EIncremental: |
|
59 { |
|
60 delete STATIC_CAST( CFavouritesSrvDbIncremental*, iObject ); |
|
61 break; |
|
62 } |
|
63 |
|
64 case EStream: |
|
65 { |
|
66 delete STATIC_CAST( HFavouritesSrvStream*, iObject ); |
|
67 break; |
|
68 } |
|
69 |
|
70 case EFile: |
|
71 { |
|
72 delete STATIC_CAST( CFavouritesSrvFile*, iObject ); |
|
73 break; |
|
74 } |
|
75 |
|
76 default: |
|
77 { |
|
78 FavouritesPanic( EFavouritesInternal ); |
|
79 } |
|
80 } |
|
81 SetNull(); |
|
82 } |
|
83 |
|
84 // End of File |