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