|
1 /* |
|
2 * Copyright (c) 2004 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: AA logout control. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __CCNUIAALOGOUTCNTRLSTEP_H |
|
19 #define __CCNUIAALOGOUTCNTRLSTEP_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <E32Base.h> |
|
23 #include "MCnUiCntrlStep.h" |
|
24 |
|
25 |
|
26 |
|
27 //FORWARD DECLARATION |
|
28 class MCnUiBaseControlContext; |
|
29 class CIMPSSAPSettings; |
|
30 class CCnUiConnCloser; |
|
31 class CPEngNWSessionSlotID2; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 /** |
|
35 * AA logout control. |
|
36 * Performs a AA logout to default SAP |
|
37 * |
|
38 * @since 2.1 |
|
39 */ |
|
40 NONSHARABLE_CLASS( CCnUiAALogoutCntrlStep ) : public CBase, |
|
41 public MCnUiCntrlStep |
|
42 { |
|
43 public: // Two-phased constructors and destructor |
|
44 |
|
45 /** |
|
46 * Two-phased constructor. |
|
47 */ |
|
48 static CCnUiAALogoutCntrlStep* NewLC( MCnUiBaseControlContext& aCCntxt, |
|
49 CIMPSSAPSettings& aLogoutSap, |
|
50 TBool aIsScheduled, |
|
51 CPEngNWSessionSlotID2& aNWSessionSlotID ); |
|
52 |
|
53 |
|
54 /** |
|
55 * Destructor. |
|
56 */ |
|
57 virtual ~CCnUiAALogoutCntrlStep(); |
|
58 |
|
59 |
|
60 private: |
|
61 |
|
62 /** |
|
63 * C++ constructor. |
|
64 */ |
|
65 CCnUiAALogoutCntrlStep( MCnUiBaseControlContext& aCCntxt, |
|
66 CIMPSSAPSettings& aLogoutSap, |
|
67 TBool aIsScheduled ); |
|
68 |
|
69 |
|
70 /** |
|
71 * Symbian OS constructor. |
|
72 */ |
|
73 void ConstructL( CPEngNWSessionSlotID2& aNWSessionSlotID ); |
|
74 |
|
75 |
|
76 |
|
77 public: // New functions from MCnUiCntrlStep |
|
78 |
|
79 |
|
80 /** |
|
81 * Runs connection open / logout step. |
|
82 * |
|
83 * @since 2.1 |
|
84 * @return Errorcode from logout. |
|
85 */ |
|
86 TInt RunStepL(); |
|
87 |
|
88 |
|
89 /** |
|
90 * Handles complete. |
|
91 * |
|
92 * @since 2.1 |
|
93 * @return Always ECnUiStepContinueTeardown. |
|
94 */ |
|
95 TCnUiHandleCompleteStatus HandleCompleteL(); |
|
96 |
|
97 |
|
98 /** |
|
99 * Handles undo. |
|
100 * |
|
101 * @since 2.1 |
|
102 */ |
|
103 void UndoStepL(); |
|
104 |
|
105 |
|
106 |
|
107 private: // data |
|
108 |
|
109 ///<Base control context, not owned |
|
110 MCnUiBaseControlContext& iCCntxt; |
|
111 |
|
112 ///<Logout SAP, not owned |
|
113 CIMPSSAPSettings& iLogoutSap; |
|
114 |
|
115 ///<Connection opener, owned |
|
116 CCnUiConnCloser* iConnCloser; |
|
117 |
|
118 // Tells if this is a scheduled logout event |
|
119 // if so, then a query must be asked from the user |
|
120 TBool iIsScheduled; |
|
121 |
|
122 // owns: session slot id |
|
123 CPEngNWSessionSlotID2* iNWSessionSlotID; |
|
124 }; |
|
125 |
|
126 #endif // __CCNUIAALOGOUTCNTRLSTEP_H |
|
127 |
|
128 // End of File |
|
129 |