|
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: Application exit logout UI control. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __CCNUIAPPEXITLOGOUTUICNTRLSTEP_H |
|
19 #define __CCNUIAPPEXITLOGOUTUICNTRLSTEP_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <E32Base.h> |
|
23 #include <impspresenceconnectionuiconstsng.h> |
|
24 #include "CCnUiLogoutUiCntrlStep.h" |
|
25 |
|
26 |
|
27 // CLASS DECLARATION |
|
28 /** |
|
29 * Application exit logout UI control. |
|
30 * |
|
31 * Extends base logout control behaviour to handle |
|
32 * correctly application exit requests. |
|
33 * |
|
34 * @since 2.1 |
|
35 */ |
|
36 NONSHARABLE_CLASS( CCnUiAppExitLogoutUiCntrlStep ) : public CCnUiLogoutUiCntrlStep |
|
37 { |
|
38 public: // Two-phased constructors and destructor |
|
39 |
|
40 /** |
|
41 * Two-phased constructor. |
|
42 */ |
|
43 static CCnUiAppExitLogoutUiCntrlStep* NewLC( |
|
44 MCnUiUiControlContext& aCCntxt, |
|
45 CIMPSSAPSettings& aLogoutSap, |
|
46 TIMPSExitType aExitType, |
|
47 const CPEngNWSessionSlotID2& aNWSessionSlotID ); |
|
48 |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 virtual ~CCnUiAppExitLogoutUiCntrlStep(); |
|
54 |
|
55 |
|
56 protected: //protected to allow derivation |
|
57 |
|
58 /** |
|
59 * C++ constructor. |
|
60 */ |
|
61 CCnUiAppExitLogoutUiCntrlStep( MCnUiUiControlContext& aCCntxt, |
|
62 CIMPSSAPSettings& aLogoutSap, |
|
63 TIMPSExitType aExitType ); |
|
64 |
|
65 /** |
|
66 * Symbian OS constructor. |
|
67 */ |
|
68 void ConstructL( const CPEngNWSessionSlotID2& aNWSessionSlotID ); |
|
69 |
|
70 |
|
71 |
|
72 protected: // Functions overridden from CCnUiLogoutUiCntrlStep |
|
73 |
|
74 |
|
75 /** |
|
76 * Handles logout complete. |
|
77 * |
|
78 * If this is normal mode exit, issues |
|
79 * the base class to handle restore for |
|
80 * previously dropped network connections |
|
81 * if needed. |
|
82 * |
|
83 * @since 2.1 |
|
84 * @return Always ECnUiStepContinueTeardown. |
|
85 */ |
|
86 TCnUiHandleCompleteStatus HandleCompleteL(); |
|
87 |
|
88 |
|
89 /** |
|
90 * Handles undo. |
|
91 * |
|
92 * @since 2.1 |
|
93 */ |
|
94 void UndoStepL(); |
|
95 |
|
96 |
|
97 /** |
|
98 * Overridden framework method. |
|
99 * |
|
100 * @since 2.1 |
|
101 * |
|
102 * @param aClient Init has to initialize the aClient |
|
103 * with the client id to log in. |
|
104 * |
|
105 * @return Error status from init. If init returns something |
|
106 * else than ECnUiLogoutInitContinue login operation RunStepL() |
|
107 * is breaked with return value. |
|
108 */ |
|
109 TInt DoInitLogoutStepL( TIMPSConnectionClient& aClient ); |
|
110 |
|
111 |
|
112 private: // private data |
|
113 |
|
114 ///< Application exit type, owned |
|
115 TIMPSExitType iExitType; |
|
116 }; |
|
117 |
|
118 #endif // __CCNUIAPPEXITLOGOUTUICNTRLSTEP_H |
|
119 |
|
120 // End of File |
|
121 |