|
1 /* |
|
2 * Copyright (c) 2008 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 "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: CCFRemoveSubscriptionCleanupCmd implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // SYSTEM INCLUDES |
|
20 |
|
21 // USER INCLUDES |
|
22 #include "cfremovesubscriptioncleanupcmd.h" |
|
23 #include "CFContextManager.h" |
|
24 #include "cftrace.h" |
|
25 |
|
26 // ======== MEMBER FUNCTIONS ======== |
|
27 |
|
28 // --------------------------------------------------------------------------- |
|
29 // C++ constructor. |
|
30 // --------------------------------------------------------------------------- |
|
31 // |
|
32 CCFRemoveSubscriptionCleanupCmd::CCFRemoveSubscriptionCleanupCmd( |
|
33 CCFContextManager& aContextManager ) |
|
34 : iContextManager( aContextManager ) |
|
35 { |
|
36 FUNC_LOG; |
|
37 } |
|
38 |
|
39 // --------------------------------------------------------------------------- |
|
40 // Symbian two phased constructor. |
|
41 // --------------------------------------------------------------------------- |
|
42 // |
|
43 CCFRemoveSubscriptionCleanupCmd* CCFRemoveSubscriptionCleanupCmd::NewL( |
|
44 CCFContextManager& aContextManager ) |
|
45 { |
|
46 FUNC_LOG; |
|
47 |
|
48 CCFRemoveSubscriptionCleanupCmd* self |
|
49 = CCFRemoveSubscriptionCleanupCmd::NewLC( aContextManager ); |
|
50 CleanupStack::Pop( self ); |
|
51 return self; |
|
52 } |
|
53 |
|
54 // --------------------------------------------------------------------------- |
|
55 // Symbian two phased constructor. |
|
56 // Leaves pointer in the cleanup stack. |
|
57 // --------------------------------------------------------------------------- |
|
58 // |
|
59 CCFRemoveSubscriptionCleanupCmd* CCFRemoveSubscriptionCleanupCmd::NewLC( |
|
60 CCFContextManager& aContextManager ) |
|
61 { |
|
62 FUNC_LOG; |
|
63 |
|
64 CCFRemoveSubscriptionCleanupCmd* self |
|
65 = new( ELeave ) CCFRemoveSubscriptionCleanupCmd( aContextManager ); |
|
66 CleanupStack::PushL( self ); |
|
67 return self; |
|
68 } |
|
69 |
|
70 // --------------------------------------------------------------------------- |
|
71 // C++ destructor. |
|
72 // --------------------------------------------------------------------------- |
|
73 // |
|
74 CCFRemoveSubscriptionCleanupCmd::~CCFRemoveSubscriptionCleanupCmd( ) |
|
75 { |
|
76 FUNC_LOG; |
|
77 } |
|
78 |
|
79 |
|
80 // --------------------------------------------------------------------------- |
|
81 // CCFRemoveSubscriptionCleanupCmd::ExecuteL |
|
82 // --------------------------------------------------------------------------- |
|
83 // |
|
84 void CCFRemoveSubscriptionCleanupCmd::ExecuteL() |
|
85 { |
|
86 FUNC_LOG; |
|
87 |
|
88 INFO( "CCFRemoveSubscriptionCleanupCmd::ExecuteL - Cleaning removed subscriptions." ); |
|
89 |
|
90 iContextManager.CleanupCacheElementSubscriptions(); |
|
91 } |
|
92 |
|
93 // End of file |