|
1 /* |
|
2 * Copyright (c) 2006-2009 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: Confirm Dialog definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 /** |
|
19 @file mpmconfirmdlg.h |
|
20 UI Note Handler definition. |
|
21 */ |
|
22 |
|
23 #ifndef MPMCONFIRMDLG_H |
|
24 #define MPMCONFIRMDLG_H |
|
25 |
|
26 // INCLUDES |
|
27 #include <e32base.h> |
|
28 #include <ConnectionUiUtilities.h> |
|
29 |
|
30 #include "mpmdialogbase.h" |
|
31 |
|
32 // CLASS DECLARATION |
|
33 /** |
|
34 * MPM Confirmation Dialog abstract base class |
|
35 * |
|
36 * @lib MPMServer.exe |
|
37 * @since 3.2 |
|
38 */ |
|
39 class MMPMConfirmDlg |
|
40 { |
|
41 public: |
|
42 /** |
|
43 * Confirmation Dialog response |
|
44 * @since 3.2 |
|
45 * @param aError generic Symbian error response code |
|
46 * @param aResult Result of user selection |
|
47 * @return void |
|
48 */ |
|
49 virtual void ConfirmDlgResponse( const TInt aError, |
|
50 const TMsgQueryLinkedResults aResult ) = 0; |
|
51 /** |
|
52 * Confirmation Dialog response |
|
53 * @since 5.2 |
|
54 * @param aDlg previously completed aDlg |
|
55 * @return ETrue if response accepted |
|
56 */ |
|
57 virtual TBool ConfirmDlgResponse( MMPMConfirmDlg* aDlg ) = 0; |
|
58 }; |
|
59 |
|
60 // CLASS DECLARATION |
|
61 /** |
|
62 * MPM Confirmation Dialog base class |
|
63 * |
|
64 * @lib MPMServer.exe |
|
65 * @since 3.2 |
|
66 */ |
|
67 NONSHARABLE_CLASS( CMPMConfirmDlg ) : protected CMPMDialogBase |
|
68 { |
|
69 public: |
|
70 |
|
71 enum TDialogType |
|
72 { |
|
73 EConfirmDlgHomeNetwork = 0, |
|
74 EConfirmDlgVisitorNetwork |
|
75 }; |
|
76 |
|
77 /** |
|
78 * Two-phased constructor. |
|
79 */ |
|
80 static CMPMConfirmDlg* NewL( CArrayPtrFlat<CMPMDialogBase>& aQueue, |
|
81 MMPMConfirmDlg& aConfirmDlgUser, |
|
82 const TUint32 aNetId, |
|
83 const TUint32 aIAP, |
|
84 const TDialogType aDialogType ); |
|
85 |
|
86 /** |
|
87 * Destructor. |
|
88 */ |
|
89 ~CMPMConfirmDlg(); |
|
90 protected: |
|
91 /** |
|
92 * For starting the active object. |
|
93 * @since 3.1 |
|
94 * @param aDlg Dialog. |
|
95 */ |
|
96 virtual void Start( CMPMDialogBase* aDlg ); |
|
97 |
|
98 private: |
|
99 |
|
100 /** |
|
101 * C++ default constructor. |
|
102 */ |
|
103 CMPMConfirmDlg( CArrayPtrFlat<CMPMDialogBase>& aQueue, |
|
104 MMPMConfirmDlg& aConfirmDlgUser, |
|
105 const TUint32 aNetId, |
|
106 const TUint32 aIAP, |
|
107 const TDialogType aDialogType ); |
|
108 |
|
109 /** |
|
110 * 2nd phase constructor. |
|
111 */ |
|
112 void ConstructL(); |
|
113 |
|
114 private: // from CActive |
|
115 |
|
116 /** |
|
117 * Active Object RunL. |
|
118 * @since 3.2 |
|
119 */ |
|
120 void RunL(); |
|
121 |
|
122 /** |
|
123 * Active Object DoCancel. |
|
124 * @since 3.2 |
|
125 */ |
|
126 void DoCancel(); |
|
127 |
|
128 private: |
|
129 MMPMConfirmDlg& iConfirmDlgUser; |
|
130 TUint32 iSnapId; |
|
131 TUint32 iIAP; |
|
132 TDialogType iDialogType; |
|
133 CConnectionUiUtilities* iUtils; |
|
134 TMsgQueryLinkedResults iResult; |
|
135 }; |
|
136 |
|
137 #endif // MPMCONFIRMDLG_H |