1 |
|
2 // nslookup.rss |
|
3 |
|
4 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
5 // All rights reserved. |
|
6 // This component and the accompanying materials are made available |
|
7 // under the terms of "Eclipse Public License v1.0" |
|
8 // which accompanies this distribution, and is available |
|
9 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
10 // |
|
11 // Initial Contributors: |
|
12 // Nokia Corporation - initial contribution. |
|
13 // |
|
14 // Contributors: |
|
15 // |
|
16 // Description: |
|
17 // SOME PING SPECIFIC STUFF HAS BEEN LEFT IN AS A TEMPLATE FOR |
|
18 // IMPLEMENTING SOME ADVANCED NSLOOKUP OPTIONS THAT MAY REQUIRE |
|
19 // COMPLEX PANELS! -- msa |
|
20 // |
|
21 |
|
22 |
|
23 NAME NAPP |
|
24 |
|
25 #include <techview/eikon.rh> |
|
26 #include <techview/eikon.rsg> |
|
27 |
|
28 #include "nslookup.hrh" |
|
29 |
|
30 RESOURCE RSS_SIGNATURE { } |
|
31 |
|
32 RESOURCE TBUF { buf=""; } |
|
33 |
|
34 RESOURCE EIK_APP_INFO |
|
35 { |
|
36 menubar=r_nslookup_menubar; |
|
37 hotkeys=r_nslookup_hotkeys; |
|
38 toolbar=r_nslookup_toolbar; |
|
39 //cba = r_nslookup_cba; |
|
40 } |
|
41 |
|
42 |
|
43 RESOURCE DIALOG r_nslookup_about //About Dialog |
|
44 { |
|
45 title="About Nslookup"; |
|
46 buttons=R_EIK_BUTTONS_CONTINUE; |
|
47 flags=EEikDialogFlagButtonsBelow; |
|
48 items= |
|
49 { |
|
50 DLG_LINE |
|
51 { |
|
52 type=EEikCtLabel; |
|
53 prompt=""; |
|
54 id=ENslookupAboutText; |
|
55 control=LABEL |
|
56 { |
|
57 txt="EPOC32 Nslookup"; |
|
58 }; |
|
59 }, |
|
60 DLG_LINE |
|
61 { |
|
62 type=EEikCtLabel; |
|
63 prompt=""; |
|
64 id=ENslookupAboutText; |
|
65 control=LABEL |
|
66 { |
|
67 txt="By Markku Savela"; |
|
68 }; |
|
69 }, |
|
70 DLG_LINE |
|
71 { |
|
72 type=EEikCtLabel; |
|
73 prompt=""; |
|
74 id=ENslookupAboutText; |
|
75 control=LABEL |
|
76 { |
|
77 txt="July 2001"; |
|
78 }; |
|
79 } |
|
80 }; |
|
81 } |
|
82 |
|
83 |
|
84 |
|
85 RESOURCE DIALOG r_nslookup_hostname |
|
86 { |
|
87 title="EPOC32 Nslookup"; |
|
88 buttons=R_EIK_BUTTONS_CANCEL_OK; |
|
89 flags=EEikDialogFlagWait|EEikDialogFlagButtonsBelow|EEikDialogFlagNotifyEsc; |
|
90 items= |
|
91 { |
|
92 DLG_LINE |
|
93 { |
|
94 type=EEikCtEdwin; |
|
95 prompt="Hostname"; |
|
96 id=ENslookupHostName; |
|
97 control=EDWIN |
|
98 { |
|
99 width=15; |
|
100 lines=1; |
|
101 maxlength=80; |
|
102 flags=0; |
|
103 }; |
|
104 }, |
|
105 DLG_LINE |
|
106 { |
|
107 type=EEikCtChoiceList; |
|
108 prompt="Query Type"; |
|
109 id=ENslookupQueryType; |
|
110 control=CHOICELIST |
|
111 { |
|
112 array_id=r_querytype_list; |
|
113 }; |
|
114 }, |
|
115 DLG_LINE |
|
116 { |
|
117 type=EEikCtCheckBox; |
|
118 prompt="Show source address"; |
|
119 id=ENslookupShowSource; |
|
120 } |
|
121 }; |
|
122 } |
|
123 |
|
124 |
|
125 RESOURCE ARRAY r_querytype_list |
|
126 { |
|
127 items= |
|
128 { |
|
129 LBUF { txt="Default (GetName)"; }, |
|
130 LBUF { txt="Query A"; }, |
|
131 LBUF { txt="Query NS"; }, |
|
132 LBUF { txt="Query CNAME"; }, |
|
133 LBUF { txt="Query WKS"; }, |
|
134 LBUF { txt="Query PTR"; }, |
|
135 LBUF { txt="Query HINFO"; }, |
|
136 LBUF { txt="Query MX"; }, |
|
137 LBUF { txt="Query TXT"; }, |
|
138 LBUF { txt="Query AAAA"; }, |
|
139 LBUF { txt="Query SRV"; }, |
|
140 LBUF { txt="Query NAPTR"; }, |
|
141 LBUF { txt="Query Any"; }, |
|
142 LBUF { txt="Clear Cache"; } |
|
143 }; |
|
144 } |
|
145 |
|
146 |
|
147 /* |
|
148 RESOURCE CBA r_nslookup_cba |
|
149 { |
|
150 //LONG flags=EEikButtonGroupAddToStack; |
|
151 //WORD breadth=80; // !!! make this accessible from LAF |
|
152 //LLINK related_buttons=0; |
|
153 buttons = |
|
154 { |
|
155 CBA_BUTTON |
|
156 { |
|
157 id=ENslookupStart; |
|
158 txt="Start"; |
|
159 }, |
|
160 CBA_BUTTON |
|
161 { |
|
162 id=ENslookupStop; |
|
163 txt="Stop"; |
|
164 }, |
|
165 CBA_BUTTON |
|
166 { |
|
167 id=EEikCmdExit; |
|
168 txt="Exit"; |
|
169 } |
|
170 }; |
|
171 } |
|
172 */ |
|
173 |
|
174 RESOURCE TOOLBAR r_nslookup_toolbar |
|
175 { |
|
176 flags=EEikToolBarDistributeControlsEvenlyBetweenLines; |
|
177 breadth=KEikStdToolBarWidth+8; |
|
178 controls= |
|
179 { |
|
180 TBAR_CTRL |
|
181 { |
|
182 id=ENslookupCmdFileName; |
|
183 type=EEikCtFileNameLabel; |
|
184 flags=EEikToolBarCtrlHasSetMinLength; |
|
185 length=KEikStdFileNameLabelHeight; |
|
186 }, |
|
187 TBAR_BUTTON |
|
188 { |
|
189 flags=EEikToolBarCtrlIsStretchable; |
|
190 id=ENslookupStart; |
|
191 txt="Start"; |
|
192 }, |
|
193 TBAR_BUTTON |
|
194 { |
|
195 flags=EEikToolBarCtrlIsStretchable; |
|
196 id=ENslookupStop; |
|
197 txt="Stop"; |
|
198 }, |
|
199 TBAR_BUTTON |
|
200 { |
|
201 flags=EEikToolBarCtrlIsStretchable; |
|
202 id=EEikCmdExit; |
|
203 txt="Exit"; |
|
204 } |
|
205 }; |
|
206 } |
|
207 |
|
208 RESOURCE HOTKEYS r_nslookup_hotkeys |
|
209 { |
|
210 control= |
|
211 { |
|
212 HOTKEY { command=EEikCmdExit; key='e'; }, |
|
213 HOTKEY { command=ENslookupStart; key='s'; }, |
|
214 HOTKEY { command=ENslookupStop; key='c'; }, |
|
215 HOTKEY { command=ENslookupReset; key='r'; }, |
|
216 HOTKEY { command=ENslookupAbout; key='a'; } |
|
217 }; |
|
218 } |
|
219 |
|
220 RESOURCE MENU_BAR r_nslookup_menubar |
|
221 { |
|
222 titles= |
|
223 { |
|
224 MENU_TITLE { menu_pane=r_nslookup_file_menu; txt="File"; }, |
|
225 MENU_TITLE { menu_pane=r_nslookup_tools_menu; txt="Tools"; } |
|
226 }; |
|
227 } |
|
228 |
|
229 RESOURCE MENU_PANE r_nslookup_file_menu |
|
230 { |
|
231 items= |
|
232 { |
|
233 MENU_ITEM { command=EEikCmdExit; txt="Exit"; } |
|
234 }; |
|
235 } |
|
236 |
|
237 RESOURCE MENU_PANE r_nslookup_tools_menu |
|
238 { |
|
239 items= |
|
240 { |
|
241 MENU_ITEM { command=ENslookupStart; txt="Start"; }, |
|
242 MENU_ITEM { command=ENslookupStop; txt="Stop"; }, |
|
243 MENU_ITEM { command=ENslookupReset; txt="Reset Screen"; }, |
|
244 MENU_ITEM { command=ENslookupAbout; txt="About..."; } |
|
245 }; |
|
246 } |
|
247 |
|
248 RESOURCE TBUF r_resolving_name { buf="Resolving name..."; } |
|
249 |
|