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