|
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: execute command for fetching blocked list |
|
15 * |
|
16 */ |
|
17 |
|
18 // INCLUDE FILES |
|
19 |
|
20 //#include "cvimpstcmdlogout.h" |
|
21 |
|
22 #include "vimpstcmd.hrh" |
|
23 #include "cvimpstcmdfetchblockedlist.h" |
|
24 #include "mvimpstcmdobserver.h" |
|
25 |
|
26 |
|
27 #include "uiservicetabtracer.h" |
|
28 |
|
29 #include <e32def.h> |
|
30 |
|
31 #include "mvimpstengine.h" |
|
32 |
|
33 |
|
34 // Constants |
|
35 |
|
36 // -------------------------------------------------------------------------- |
|
37 // CVIMPSTCmdFetchBlockedContactList::CVIMPSTCmdFetchBlockedContactList |
|
38 // -------------------------------------------------------------------------- |
|
39 // |
|
40 CVIMPSTCmdFetchBlockedContactList::CVIMPSTCmdFetchBlockedContactList( |
|
41 const TInt aCommandId , MVIMPSTEngine& aEngine) : |
|
42 iCommandId( aCommandId ), |
|
43 iEngine(aEngine) |
|
44 { |
|
45 } |
|
46 |
|
47 // -------------------------------------------------------------------------- |
|
48 // CVIMPSTCmdFetchBlockedContactList::~CVIMPSTCmdFetchBlockedContactList |
|
49 // -------------------------------------------------------------------------- |
|
50 // |
|
51 CVIMPSTCmdFetchBlockedContactList::~CVIMPSTCmdFetchBlockedContactList() |
|
52 { |
|
53 |
|
54 } |
|
55 |
|
56 // -------------------------------------------------------------------------- |
|
57 // CVIMPSTCmdFetchBlockedContactList::NewL |
|
58 // -------------------------------------------------------------------------- |
|
59 // |
|
60 CVIMPSTCmdFetchBlockedContactList* CVIMPSTCmdFetchBlockedContactList::NewL( |
|
61 const TInt aCommandId,MVIMPSTEngine& aEngine) |
|
62 { |
|
63 CVIMPSTCmdFetchBlockedContactList* self = new (ELeave ) CVIMPSTCmdFetchBlockedContactList( aCommandId , aEngine); |
|
64 self->ConstructL(); //use contsurctL if necessary |
|
65 return self; |
|
66 } |
|
67 // -------------------------------------------------------------------------- |
|
68 // CVIMPSTCmdFetchBlockedContactList::ConstructL |
|
69 // -------------------------------------------------------------------------- |
|
70 // |
|
71 void CVIMPSTCmdFetchBlockedContactList::ConstructL() |
|
72 { |
|
73 |
|
74 } |
|
75 |
|
76 // -------------------------------------------------------------------------- |
|
77 // CVIMPSTCmdFetchBlockedContactList::ExecuteLD |
|
78 // -------------------------------------------------------------------------- |
|
79 // |
|
80 void CVIMPSTCmdFetchBlockedContactList::ExecuteLD() |
|
81 { |
|
82 |
|
83 TRACER_AUTO; |
|
84 //push to the cleanupstack |
|
85 CleanupStack::PushL( this ); |
|
86 |
|
87 //call logout |
|
88 iEngine.FetchBlockedListL(); |
|
89 |
|
90 |
|
91 |
|
92 if(iObserver) |
|
93 { |
|
94 iObserver->CommandFinishedL(*this); |
|
95 } |
|
96 |
|
97 CleanupStack::PopAndDestroy(); |
|
98 |
|
99 } |
|
100 |
|
101 |
|
102 // -------------------------------------------------------------------------- |
|
103 // CVIMPSTCmdFetchBlockedContactList::AddObserver |
|
104 // -------------------------------------------------------------------------- |
|
105 // |
|
106 void CVIMPSTCmdFetchBlockedContactList::AddObserver( MVIMPSTCmdObserver& aObserver ) |
|
107 { |
|
108 // store the observer to notify the command completion |
|
109 iObserver = &aObserver; |
|
110 } |
|
111 |
|
112 |
|
113 // -------------------------------------------------------------------------- |
|
114 // CVIMPSTCmdFetchBlockedContactList::CommandId |
|
115 // -------------------------------------------------------------------------- |
|
116 // |
|
117 TInt CVIMPSTCmdFetchBlockedContactList::CommandId() const |
|
118 { |
|
119 return iCommandId; |
|
120 } |
|
121 |
|
122 // -------------------------------------------------------------------------- |
|
123 // CVIMPSTCmdFetchBlockedContactList::Result |
|
124 // -------------------------------------------------------------------------- |
|
125 // |
|
126 TInt CVIMPSTCmdFetchBlockedContactList::Result() const |
|
127 { |
|
128 //return valid data regd the command operation |
|
129 return 0; |
|
130 } |
|
131 |
|
132 |
|
133 |
|
134 // End of File |