|
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 blocking contact |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CVIMPSTCMDBLOCKCONTACT_H |
|
20 #define CVIMPSTCMDBLOCKCONTACT_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include "mvimpstcmd.h" |
|
25 |
|
26 // FORWARD DECLARATION |
|
27 |
|
28 class MVIMPSTEngine; |
|
29 class MVPbkContactLink; |
|
30 class MVIMPSTProcessArray; |
|
31 // CLASS DECLARATION |
|
32 /** |
|
33 * IM Deletecontact command object. |
|
34 * @lib vimpstcmdprocess.dll |
|
35 * @since 5.0 |
|
36 */ |
|
37 NONSHARABLE_CLASS(CVIMPSTCmdBlockContact) : 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 aContactId id of the contact to be blocked.. |
|
46 * @param aEngine instance of engine. |
|
47 * @return A new instance of this class. |
|
48 */ |
|
49 static CVIMPSTCmdBlockContact* NewL( |
|
50 const TInt aCommandId ,const TDesC& aContactId, |
|
51 MVIMPSTProcessArray& mArrayProcess, |
|
52 MVIMPSTEngine& aEngine); |
|
53 |
|
54 /** |
|
55 * Destructor. |
|
56 */ |
|
57 ~CVIMPSTCmdBlockContact(); |
|
58 |
|
59 public: // From mvimpstcmd |
|
60 /** |
|
61 * see mvimpstcmd |
|
62 */ |
|
63 void ExecuteLD(); |
|
64 /** |
|
65 * see mvimpstcmd |
|
66 */ |
|
67 void AddObserver( |
|
68 MVIMPSTCmdObserver& aObserver ); |
|
69 /** |
|
70 * see mvimpstcmd |
|
71 */ |
|
72 TInt CommandId() const; |
|
73 /** |
|
74 * see mvimpstcmd |
|
75 */ |
|
76 TInt Result() const; |
|
77 |
|
78 |
|
79 |
|
80 private: // Implementation |
|
81 |
|
82 /** |
|
83 * symbian default constructor |
|
84 * @param aCommandId Command id. |
|
85 * @param aContactId id of the contact to be deleted.. |
|
86 * @param aEngine instance of engine. |
|
87 */ |
|
88 CVIMPSTCmdBlockContact( |
|
89 const TInt aCommandId, |
|
90 const TDesC& aContactId, |
|
91 MVIMPSTProcessArray& mArrayProcess, |
|
92 MVIMPSTEngine& aEngine); |
|
93 /** |
|
94 * symbian second phase constructor |
|
95 */ |
|
96 void ConstructL(); |
|
97 |
|
98 |
|
99 private: // Data |
|
100 |
|
101 //Command id |
|
102 const TInt iCommandId; |
|
103 |
|
104 //contact id |
|
105 const TDesC& iContactId; |
|
106 |
|
107 //observer - doesnt own |
|
108 MVIMPSTCmdObserver* iObserver; |
|
109 |
|
110 // not owns |
|
111 MVIMPSTProcessArray& iProcessArray; |
|
112 |
|
113 //doesnt own - engine for this service |
|
114 MVIMPSTEngine& iEngine; |
|
115 |
|
116 //error code |
|
117 TInt iError; |
|
118 |
|
119 }; |
|
120 |
|
121 #endif // CVIMPSTCmdBlockContact_H |
|
122 |
|
123 // End of File |