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: Cancel login command class header |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CVIMPSTCMDCANCELLOGIN_H |
|
20 #define CVIMPSTCMDCANCELLOGIN_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 * Login cancelling command object. |
|
33 * @lib vimpstcmdprocess.dll |
|
34 * @since 5.0 |
|
35 */ |
|
36 NONSHARABLE_CLASS(CVIMPSTCmdCancelLogin) : 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 aEngine, reference to engine. |
|
46 * @return A new instance of this class. |
|
47 */ |
|
48 static CVIMPSTCmdCancelLogin* NewL( |
|
49 const TInt aCommandId , |
|
50 MVIMPSTEngine& aEngine); |
|
51 |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 ~CVIMPSTCmdCancelLogin(); |
|
56 |
|
57 public: // From mvimpstcmd |
|
58 /** |
|
59 * See mvimpstcmd |
|
60 */ |
|
61 void ExecuteLD(); |
|
62 /** |
|
63 * See mvimpstcmd |
|
64 */ |
|
65 void AddObserver( |
|
66 MVIMPSTCmdObserver& aObserver ); |
|
67 /** |
|
68 * See mvimpstcmd |
|
69 */ |
|
70 TInt CommandId() const; |
|
71 |
|
72 /** |
|
73 * See mvimpstcmd |
|
74 */ |
|
75 TInt Result() const; |
|
76 |
|
77 |
|
78 |
|
79 private: // Implementation |
|
80 /** |
|
81 * symbian default constructor |
|
82 * @param aCommandId Command id. |
|
83 * @param aEngine, reference to engine. |
|
84 */ |
|
85 CVIMPSTCmdCancelLogin( |
|
86 const TInt aCommandId, |
|
87 MVIMPSTEngine& aEngine); |
|
88 |
|
89 |
|
90 private: // Data |
|
91 //Command id |
|
92 const TInt iCommandId; |
|
93 |
|
94 //Service Id |
|
95 TUint32 iServiceId; |
|
96 |
|
97 //observer - Doesnt own |
|
98 MVIMPSTCmdObserver* iObserver; |
|
99 |
|
100 //Doesnt own - engine interface |
|
101 MVIMPSTEngine& iEngine; |
|
102 |
|
103 }; |
|
104 |
|
105 #endif // CVIMPSTCmdCANCELLOGIN_H |
|
106 |
|
107 // End of File |
|