|
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: CVIMPSTCmdProcessSelectedContact command object |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef CVIMPSTCMDPROCESSSELECTEDCONTACT_H_ |
|
22 #define CVIMPSTCMDPROCESSSELECTEDCONTACT_H_ |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 #include <badesca.h> |
|
27 #include "mvimpstcmd.h" |
|
28 |
|
29 // FORWARD DECLARATION |
|
30 |
|
31 class MVIMPSTEngine; |
|
32 class MVPbkContactLinkArray; |
|
33 struct TVPbkSelectedData; |
|
34 /** |
|
35 * CVIMPSTCmdProcessSelectedContact command object. |
|
36 */ |
|
37 class CVIMPSTCmdProcessSelectedContact : public CBase, |
|
38 public MVIMPSTCmd |
|
39 { |
|
40 public: // Construction and destruction |
|
41 |
|
42 /** |
|
43 * Creates a new instance of this class. |
|
44 * @param aCommandId Command id. |
|
45 * @param aSelectedEntries structure to hold packed links of selected phone book contact(s). |
|
46 * @param aEngine instance of engine. |
|
47 * @return A new instance of this class. |
|
48 */ |
|
49 static CVIMPSTCmdProcessSelectedContact* NewL( const TInt aCommandId , |
|
50 TVPbkSelectedData& aSelectedEntries, |
|
51 MVIMPSTEngine& aEngine ); |
|
52 |
|
53 /** |
|
54 * Destructor. |
|
55 */ |
|
56 ~CVIMPSTCmdProcessSelectedContact(); |
|
57 |
|
58 public: // From mvimpstcmd |
|
59 /** |
|
60 * see mvimpstcmd |
|
61 */ |
|
62 void ExecuteLD(); |
|
63 /** |
|
64 * see mvimpstcmd |
|
65 */ |
|
66 void AddObserver( MVIMPSTCmdObserver& aObserver ); |
|
67 /** |
|
68 * see mvimpstcmd |
|
69 */ |
|
70 TInt CommandId() const; |
|
71 /** |
|
72 * see mvimpstcmd |
|
73 */ |
|
74 TInt Result() const; |
|
75 |
|
76 |
|
77 |
|
78 private: // Implementation |
|
79 |
|
80 /** |
|
81 * symbian default constructor |
|
82 * @param aCommandId Command id. |
|
83 * @param aSelectedEntries structure to hold packed links of selected phone book contact(s). |
|
84 * @param aEngine instance of engine. |
|
85 */ |
|
86 CVIMPSTCmdProcessSelectedContact( const TInt aCommandId, |
|
87 TVPbkSelectedData& aSelectedEntries, |
|
88 MVIMPSTEngine& aEngine ); |
|
89 |
|
90 /** |
|
91 * symbian second phase constructor |
|
92 */ |
|
93 void ConstructL(); |
|
94 |
|
95 /** |
|
96 * return ETrue if exist in block list |
|
97 */ |
|
98 TBool IsContactBlocked(const TDesC& aUserId); |
|
99 |
|
100 private: // Data |
|
101 |
|
102 //Command id |
|
103 const TInt iCommandId; |
|
104 |
|
105 // TVPbkSelectedData to holde packed links of selected contacts. |
|
106 TVPbkSelectedData& iSelectedEntries; |
|
107 |
|
108 //observer - doesnt own |
|
109 MVIMPSTCmdObserver* iObserver; |
|
110 |
|
111 //doesnt own - engine for this service |
|
112 MVIMPSTEngine& iEngine; |
|
113 |
|
114 //error code. |
|
115 TInt iError; |
|
116 }; |
|
117 |
|
118 #endif /*CVIMPSTCMDPROCESSSELECTEDCONTACT_H_*/ |
|
119 |
|
120 // End of File |
|
121 |