|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __CREATESESSIONESTABLISHVALUESDIALOG_H__ |
|
22 #define __CREATESESSIONESTABLISHVALUESDIALOG_H__ (0x1) |
|
23 |
|
24 // INCLUDES |
|
25 #include <E32Base.h> |
|
26 #include <eikbutb.h> |
|
27 #include <eikenv.h> |
|
28 #include <eikdialg.h> |
|
29 #include <eikedwin.h> |
|
30 #include <in_sock.h> // for TInetAddr |
|
31 #include <es_sock.h> // for SetPort() |
|
32 #include <utf.h> |
|
33 #include <coeinput.h> |
|
34 #include <eikmfne.h> |
|
35 |
|
36 //#include <akndialog.h> |
|
37 #include <aknform.h> |
|
38 |
|
39 #include "MCETestUI.hrh" |
|
40 #include "CMCETestUIEngine.h" |
|
41 |
|
42 class TSessionEstablishValues ; |
|
43 class TSessionResponseValues ; |
|
44 /** |
|
45 * @class CCreateSessionDialog |
|
46 * |
|
47 * A dialog that uses a CAknForm control |
|
48 * and allows a the user to edit session type parameters |
|
49 */ |
|
50 |
|
51 class CSessionEstablishValuesDialog: public CAknForm |
|
52 { |
|
53 public: |
|
54 /** |
|
55 Perform the first phase of two phase construction |
|
56 @param aParams Receive parameters |
|
57 */ |
|
58 // CCreatePoCSessionDialog( CMCETestUIEngine ::TPoCSessionParams* aParams ); |
|
59 CSessionEstablishValuesDialog(TSessionEstablishValues* aParams); |
|
60 |
|
61 /** |
|
62 Destroy the object |
|
63 */ |
|
64 ~CSessionEstablishValuesDialog(); |
|
65 |
|
66 private: // from CEikDialog |
|
67 /** |
|
68 Exit and return values |
|
69 @param aKeyCode Key that terminated dialog |
|
70 @result Always returns ETrue, Ok to exit |
|
71 */ |
|
72 TBool OkToExitL(TInt aKeyCode); |
|
73 |
|
74 /** |
|
75 Perform dynamic initialisation prior to displaying dialog |
|
76 */ |
|
77 void PreLayoutDynInitL(); |
|
78 |
|
79 private: |
|
80 /** @var iParams Return item after dialog has run, owned by caller */ |
|
81 TSessionEstablishValues* iParams; |
|
82 }; |
|
83 |
|
84 |
|
85 /** |
|
86 * @class CCreateSessionDialog |
|
87 * |
|
88 * A dialog that uses a CAknForm control |
|
89 * and allows a the user to edit session type parameters |
|
90 */ |
|
91 |
|
92 class CSessionResponseValuesDialog: public CAknForm |
|
93 { |
|
94 public: |
|
95 /** |
|
96 Perform the first phase of two phase construction |
|
97 @param aParams Receive parameters |
|
98 */ |
|
99 // CCreatePoCSessionDialog( CMCETestUIEngine ::TPoCSessionParams* aParams ); |
|
100 CSessionResponseValuesDialog(TSessionResponseValues* aParams); |
|
101 |
|
102 /** |
|
103 Destroy the object |
|
104 */ |
|
105 ~CSessionResponseValuesDialog(); |
|
106 |
|
107 private: // from CEikDialog |
|
108 /** |
|
109 Exit and return values |
|
110 @param aKeyCode Key that terminated dialog |
|
111 @result Always returns ETrue, Ok to exit |
|
112 */ |
|
113 TBool OkToExitL(TInt aKeyCode); |
|
114 |
|
115 /** |
|
116 Perform dynamic initialisation prior to displaying dialog |
|
117 */ |
|
118 void PreLayoutDynInitL(); |
|
119 |
|
120 private: |
|
121 /** @var iParams Return item after dialog has run, owned by caller */ |
|
122 TSessionResponseValues* iParams; |
|
123 }; |
|
124 /** |
|
125 Append two message and pass it to a single message dialog. |
|
126 @param aMessage1 |
|
127 @param aMessage2 |
|
128 */ |
|
129 extern void MessageBox( const TDesC& aMessage1, const TDesC& aMessage2 ); |
|
130 |
|
131 /** |
|
132 Display message box dialog. |
|
133 @param aMessage |
|
134 */ |
|
135 extern void MessageBox( const TDesC& aMessage ); |
|
136 |
|
137 #endif // __CREATESESSIONDIALOG_H__ |
|
138 |
|
139 // End of File |