summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/profile
Unidiff
Diffstat (limited to 'noncore/settings/networksettings2/profile') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings2/profile/config.in4
-rw-r--r--noncore/settings/networksettings2/profile/profile.pro18
-rw-r--r--noncore/settings/networksettings2/profile/profileGUI.ui1715
-rw-r--r--noncore/settings/networksettings2/profile/profile_NN.cpp61
-rw-r--r--noncore/settings/networksettings2/profile/profile_NN.h44
-rw-r--r--noncore/settings/networksettings2/profile/profile_NNI.cpp48
-rw-r--r--noncore/settings/networksettings2/profile/profile_NNI.h45
-rw-r--r--noncore/settings/networksettings2/profile/profiledata.h15
-rw-r--r--noncore/settings/networksettings2/profile/profileedit.cpp93
-rw-r--r--noncore/settings/networksettings2/profile/profileedit.h29
-rw-r--r--noncore/settings/networksettings2/profile/profilerun.cpp67
-rw-r--r--noncore/settings/networksettings2/profile/profilerun.h28
12 files changed, 2167 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/profile/config.in b/noncore/settings/networksettings2/profile/config.in
new file mode 100644
index 0000000..0efa6a2
--- a/dev/null
+++ b/noncore/settings/networksettings2/profile/config.in
@@ -0,0 +1,4 @@
1 config NS2PROFILE
2 boolean "opie-networksettings2plugin-profiles (User profiles)"
3 default "n" if NS2
4 depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE && NS2 && NS2CORE
diff --git a/noncore/settings/networksettings2/profile/profile.pro b/noncore/settings/networksettings2/profile/profile.pro
new file mode 100644
index 0000000..36a9012
--- a/dev/null
+++ b/noncore/settings/networksettings2/profile/profile.pro
@@ -0,0 +1,18 @@
1TEMPLATE = lib
2CONFIG += qt warn_on release
3DESTDIR = $(OPIEDIR)/plugins/networksettings2
4 HEADERS = profile_NN.h \
5 profile_NNI.h \
6 profileedit.h
7 SOURCES = profile_NN.cpp \
8 profile_NNI.cpp \
9 profileedit.cpp \
10 profilerun.cpp
11 INCLUDEPATH+= $(OPIEDIR)/include ../ ../networksettings2
12 DEPENDPATH+= $(OPIEDIR)/include ../ ../networksettings2
13LIBS += -lqpe
14 INTERFACES= profileGUI.ui
15 TARGET = profile
16 VERSION = 1.0.0
17
18include ( $(OPIEDIR)/include.pro )
diff --git a/noncore/settings/networksettings2/profile/profileGUI.ui b/noncore/settings/networksettings2/profile/profileGUI.ui
new file mode 100644
index 0000000..365704b
--- a/dev/null
+++ b/noncore/settings/networksettings2/profile/profileGUI.ui
@@ -0,0 +1,1715 @@
1<!DOCTYPE UI><UI>
2<class>ProfileGUI</class>
3<widget>
4 <class>QWidget</class>
5 <property stdset="1">
6 <name>name</name>
7 <cstring>Profile_FRM</cstring>
8 </property>
9 <property stdset="1">
10 <name>geometry</name>
11 <rect>
12 <x>0</x>
13 <y>0</y>
14 <width>225</width>
15 <height>301</height>
16 </rect>
17 </property>
18 <property stdset="1">
19 <name>caption</name>
20 <string>Profile</string>
21 </property>
22 <property>
23 <name>layoutMargin</name>
24 </property>
25 <property>
26 <name>layoutSpacing</name>
27 </property>
28 <vbox>
29 <property stdset="1">
30 <name>margin</name>
31 <number>0</number>
32 </property>
33 <property stdset="1">
34 <name>spacing</name>
35 <number>0</number>
36 </property>
37 <widget>
38 <class>QTabWidget</class>
39 <property stdset="1">
40 <name>name</name>
41 <cstring>TabWidget6</cstring>
42 </property>
43 <property>
44 <name>layoutMargin</name>
45 </property>
46 <property>
47 <name>layoutSpacing</name>
48 </property>
49 <widget>
50 <class>QWidget</class>
51 <property stdset="1">
52 <name>name</name>
53 <cstring>tab</cstring>
54 </property>
55 <attribute>
56 <name>title</name>
57 <string>Setup</string>
58 </attribute>
59 <vbox>
60 <property stdset="1">
61 <name>margin</name>
62 <number>2</number>
63 </property>
64 <property stdset="1">
65 <name>spacing</name>
66 <number>0</number>
67 </property>
68 <widget>
69 <class>QCheckBox</class>
70 <property stdset="1">
71 <name>name</name>
72 <cstring>Automatic_CB</cstring>
73 </property>
74 <property stdset="1">
75 <name>text</name>
76 <string>Start automatically</string>
77 </property>
78 </widget>
79 <widget>
80 <class>QCheckBox</class>
81 <property stdset="1">
82 <name>name</name>
83 <cstring>Confirm_CB</cstring>
84 </property>
85 <property stdset="1">
86 <name>enabled</name>
87 <bool>true</bool>
88 </property>
89 <property stdset="1">
90 <name>text</name>
91 <string>Confirm before start</string>
92 </property>
93 <property>
94 <name>layoutMargin</name>
95 </property>
96 </widget>
97 <widget>
98 <class>QCheckBox</class>
99 <property stdset="1">
100 <name>name</name>
101 <cstring>Disabled_CB</cstring>
102 </property>
103 <property stdset="1">
104 <name>enabled</name>
105 <bool>true</bool>
106 </property>
107 <property stdset="1">
108 <name>text</name>
109 <string>Disabled</string>
110 </property>
111 <property>
112 <name>layoutMargin</name>
113 </property>
114 </widget>
115 <widget>
116 <class>QLabel</class>
117 <property stdset="1">
118 <name>name</name>
119 <cstring>TextLabel3</cstring>
120 </property>
121 <property stdset="1">
122 <name>text</name>
123 <string>Description</string>
124 </property>
125 </widget>
126 <widget>
127 <class>QMultiLineEdit</class>
128 <property stdset="1">
129 <name>name</name>
130 <cstring>Description_LE</cstring>
131 </property>
132 </widget>
133 </vbox>
134 </widget>
135 <widget>
136 <class>QWidget</class>
137 <property stdset="1">
138 <name>name</name>
139 <cstring>tab</cstring>
140 </property>
141 <attribute>
142 <name>title</name>
143 <string>State</string>
144 </attribute>
145 <vbox>
146 <property stdset="1">
147 <name>margin</name>
148 <number>0</number>
149 </property>
150 <property stdset="1">
151 <name>spacing</name>
152 <number>2</number>
153 </property>
154 <widget>
155 <class>QFrame</class>
156 <property stdset="1">
157 <name>name</name>
158 <cstring>Frame73</cstring>
159 </property>
160 <property stdset="1">
161 <name>sizePolicy</name>
162 <sizepolicy>
163 <hsizetype>7</hsizetype>
164 <vsizetype>5</vsizetype>
165 </sizepolicy>
166 </property>
167 <property stdset="1">
168 <name>frameShape</name>
169 <enum>NoFrame</enum>
170 </property>
171 <property stdset="1">
172 <name>frameShadow</name>
173 <enum>Plain</enum>
174 </property>
175 <property>
176 <name>layoutMargin</name>
177 </property>
178 <property>
179 <name>layoutSpacing</name>
180 </property>
181 <hbox>
182 <property stdset="1">
183 <name>margin</name>
184 <number>2</number>
185 </property>
186 <property stdset="1">
187 <name>spacing</name>
188 <number>0</number>
189 </property>
190 <widget>
191 <class>QLabel</class>
192 <property stdset="1">
193 <name>name</name>
194 <cstring>InterfaceName_LBL</cstring>
195 </property>
196 <property stdset="1">
197 <name>font</name>
198 <font>
199 <underline>1</underline>
200 </font>
201 </property>
202 <property stdset="1">
203 <name>text</name>
204 <string>eth0</string>
205 </property>
206 </widget>
207 <widget>
208 <class>QLabel</class>
209 <property stdset="1">
210 <name>name</name>
211 <cstring>InterfaceOptions_LBL</cstring>
212 </property>
213 <property stdset="1">
214 <name>sizePolicy</name>
215 <sizepolicy>
216 <hsizetype>7</hsizetype>
217 <vsizetype>1</vsizetype>
218 </sizepolicy>
219 </property>
220 <property stdset="1">
221 <name>font</name>
222 <font>
223 <underline>1</underline>
224 </font>
225 </property>
226 <property stdset="1">
227 <name>text</name>
228 <string>(Multicast, Up)</string>
229 </property>
230 <property stdset="1">
231 <name>indent</name>
232 <number>0</number>
233 </property>
234 </widget>
235 </hbox>
236 </widget>
237 <widget>
238 <class>QFrame</class>
239 <property stdset="1">
240 <name>name</name>
241 <cstring>Interface_GB</cstring>
242 </property>
243 <property stdset="1">
244 <name>enabled</name>
245 <bool>true</bool>
246 </property>
247 <property stdset="1">
248 <name>sizePolicy</name>
249 <sizepolicy>
250 <hsizetype>7</hsizetype>
251 <vsizetype>5</vsizetype>
252 </sizepolicy>
253 </property>
254 <property stdset="1">
255 <name>frameShape</name>
256 <enum>NoFrame</enum>
257 </property>
258 <property stdset="1">
259 <name>frameShadow</name>
260 <enum>Raised</enum>
261 </property>
262 <property>
263 <name>layoutMargin</name>
264 </property>
265 <property>
266 <name>layoutSpacing</name>
267 </property>
268 <grid>
269 <property stdset="1">
270 <name>margin</name>
271 <number>2</number>
272 </property>
273 <property stdset="1">
274 <name>spacing</name>
275 <number>1</number>
276 </property>
277 <widget row="0" column="2" >
278 <class>QLabel</class>
279 <property stdset="1">
280 <name>name</name>
281 <cstring>TextLabel4_2_3</cstring>
282 </property>
283 <property stdset="1">
284 <name>enabled</name>
285 <bool>true</bool>
286 </property>
287 <property stdset="1">
288 <name>sizePolicy</name>
289 <sizepolicy>
290 <hsizetype>0</hsizetype>
291 <vsizetype>1</vsizetype>
292 </sizepolicy>
293 </property>
294 <property stdset="1">
295 <name>frameShape</name>
296 <enum>NoFrame</enum>
297 </property>
298 <property stdset="1">
299 <name>frameShadow</name>
300 <enum>Raised</enum>
301 </property>
302 <property stdset="1">
303 <name>text</name>
304 <string>Subnet Mask</string>
305 </property>
306 </widget>
307 <widget row="0" column="3" >
308 <class>QLabel</class>
309 <property stdset="1">
310 <name>name</name>
311 <cstring>TextLabel1_3_3</cstring>
312 </property>
313 <property stdset="1">
314 <name>enabled</name>
315 <bool>true</bool>
316 </property>
317 <property stdset="1">
318 <name>sizePolicy</name>
319 <sizepolicy>
320 <hsizetype>0</hsizetype>
321 <vsizetype>1</vsizetype>
322 </sizepolicy>
323 </property>
324 <property stdset="1">
325 <name>frameShape</name>
326 <enum>NoFrame</enum>
327 </property>
328 <property stdset="1">
329 <name>frameShadow</name>
330 <enum>Raised</enum>
331 </property>
332 <property stdset="1">
333 <name>text</name>
334 <string>Broadcast</string>
335 </property>
336 </widget>
337 <widget row="3" column="0" >
338 <class>QLabel</class>
339 <property stdset="1">
340 <name>name</name>
341 <cstring>TextLabel1_5</cstring>
342 </property>
343 <property stdset="1">
344 <name>enabled</name>
345 <bool>true</bool>
346 </property>
347 <property stdset="1">
348 <name>sizePolicy</name>
349 <sizepolicy>
350 <hsizetype>1</hsizetype>
351 <vsizetype>1</vsizetype>
352 </sizepolicy>
353 </property>
354 <property stdset="1">
355 <name>text</name>
356 <string>MAC</string>
357 </property>
358 <property stdset="1">
359 <name>indent</name>
360 <number>0</number>
361 </property>
362 </widget>
363 <widget row="2" column="0" >
364 <class>QLabel</class>
365 <property stdset="1">
366 <name>name</name>
367 <cstring>TextLabel1_5_2</cstring>
368 </property>
369 <property stdset="1">
370 <name>enabled</name>
371 <bool>true</bool>
372 </property>
373 <property stdset="1">
374 <name>sizePolicy</name>
375 <sizepolicy>
376 <hsizetype>1</hsizetype>
377 <vsizetype>1</vsizetype>
378 </sizepolicy>
379 </property>
380 <property stdset="1">
381 <name>text</name>
382 <string>P-t-P</string>
383 </property>
384 <property stdset="1">
385 <name>indent</name>
386 <number>0</number>
387 </property>
388 </widget>
389 <widget row="0" column="0" rowspan="1" colspan="2" >
390 <class>QLabel</class>
391 <property stdset="1">
392 <name>name</name>
393 <cstring>TextLabel3_2_3</cstring>
394 </property>
395 <property stdset="1">
396 <name>enabled</name>
397 <bool>true</bool>
398 </property>
399 <property stdset="1">
400 <name>sizePolicy</name>
401 <sizepolicy>
402 <hsizetype>0</hsizetype>
403 <vsizetype>1</vsizetype>
404 </sizepolicy>
405 </property>
406 <property stdset="1">
407 <name>text</name>
408 <string>IP Address</string>
409 </property>
410 </widget>
411 <widget row="1" column="0" rowspan="1" colspan="2" >
412 <class>QLabel</class>
413 <property stdset="1">
414 <name>name</name>
415 <cstring>IPAddress_LBL</cstring>
416 </property>
417 <property stdset="1">
418 <name>enabled</name>
419 <bool>true</bool>
420 </property>
421 <property stdset="1">
422 <name>sizePolicy</name>
423 <sizepolicy>
424 <hsizetype>7</hsizetype>
425 <vsizetype>1</vsizetype>
426 </sizepolicy>
427 </property>
428 <property stdset="1">
429 <name>frameShape</name>
430 <enum>Panel</enum>
431 </property>
432 <property stdset="1">
433 <name>frameShadow</name>
434 <enum>Sunken</enum>
435 </property>
436 <property stdset="1">
437 <name>text</name>
438 <string>0.0.0.0</string>
439 </property>
440 <property stdset="1">
441 <name>alignment</name>
442 <set>AlignCenter</set>
443 </property>
444 <property stdset="1">
445 <name>indent</name>
446 <number>0</number>
447 </property>
448 <property>
449 <name>hAlign</name>
450 </property>
451 </widget>
452 <widget row="1" column="2" >
453 <class>QLabel</class>
454 <property stdset="1">
455 <name>name</name>
456 <cstring>SubnetMask_LBL</cstring>
457 </property>
458 <property stdset="1">
459 <name>enabled</name>
460 <bool>true</bool>
461 </property>
462 <property stdset="1">
463 <name>sizePolicy</name>
464 <sizepolicy>
465 <hsizetype>7</hsizetype>
466 <vsizetype>1</vsizetype>
467 </sizepolicy>
468 </property>
469 <property stdset="1">
470 <name>frameShape</name>
471 <enum>Panel</enum>
472 </property>
473 <property stdset="1">
474 <name>frameShadow</name>
475 <enum>Sunken</enum>
476 </property>
477 <property stdset="1">
478 <name>text</name>
479 <string>0.0.0.0</string>
480 </property>
481 <property stdset="1">
482 <name>alignment</name>
483 <set>AlignCenter</set>
484 </property>
485 <property stdset="1">
486 <name>indent</name>
487 <number>0</number>
488 </property>
489 <property>
490 <name>hAlign</name>
491 </property>
492 </widget>
493 <widget row="1" column="3" >
494 <class>QLabel</class>
495 <property stdset="1">
496 <name>name</name>
497 <cstring>Broadcast_LBL</cstring>
498 </property>
499 <property stdset="1">
500 <name>enabled</name>
501 <bool>true</bool>
502 </property>
503 <property stdset="1">
504 <name>sizePolicy</name>
505 <sizepolicy>
506 <hsizetype>7</hsizetype>
507 <vsizetype>1</vsizetype>
508 </sizepolicy>
509 </property>
510 <property stdset="1">
511 <name>frameShape</name>
512 <enum>StyledPanel</enum>
513 </property>
514 <property stdset="1">
515 <name>frameShadow</name>
516 <enum>Sunken</enum>
517 </property>
518 <property stdset="1">
519 <name>alignment</name>
520 <set>AlignCenter</set>
521 </property>
522 <property stdset="1">
523 <name>indent</name>
524 <number>0</number>
525 </property>
526 <property>
527 <name>hAlign</name>
528 </property>
529 </widget>
530 <widget row="2" column="1" rowspan="1" colspan="3" >
531 <class>QLabel</class>
532 <property stdset="1">
533 <name>name</name>
534 <cstring>PointToPoint_LBL</cstring>
535 </property>
536 <property stdset="1">
537 <name>enabled</name>
538 <bool>true</bool>
539 </property>
540 <property stdset="1">
541 <name>sizePolicy</name>
542 <sizepolicy>
543 <hsizetype>5</hsizetype>
544 <vsizetype>0</vsizetype>
545 </sizepolicy>
546 </property>
547 <property stdset="1">
548 <name>frameShape</name>
549 <enum>Panel</enum>
550 </property>
551 <property stdset="1">
552 <name>frameShadow</name>
553 <enum>Sunken</enum>
554 </property>
555 <property stdset="1">
556 <name>indent</name>
557 <number>0</number>
558 </property>
559 </widget>
560 <widget row="3" column="1" rowspan="1" colspan="3" >
561 <class>QLabel</class>
562 <property stdset="1">
563 <name>name</name>
564 <cstring>MACAddress_LBL</cstring>
565 </property>
566 <property stdset="1">
567 <name>enabled</name>
568 <bool>true</bool>
569 </property>
570 <property stdset="1">
571 <name>sizePolicy</name>
572 <sizepolicy>
573 <hsizetype>5</hsizetype>
574 <vsizetype>0</vsizetype>
575 </sizepolicy>
576 </property>
577 <property stdset="1">
578 <name>frameShape</name>
579 <enum>Panel</enum>
580 </property>
581 <property stdset="1">
582 <name>frameShadow</name>
583 <enum>Sunken</enum>
584 </property>
585 <property stdset="1">
586 <name>text</name>
587 <string>00:00:00:00:00:00</string>
588 </property>
589 <property stdset="1">
590 <name>indent</name>
591 <number>0</number>
592 </property>
593 </widget>
594 </grid>
595 </widget>
596 <widget>
597 <class>QLabel</class>
598 <property stdset="1">
599 <name>name</name>
600 <cstring>TextLabel2_2</cstring>
601 </property>
602 <property stdset="1">
603 <name>font</name>
604 <font>
605 <underline>1</underline>
606 </font>
607 </property>
608 <property stdset="1">
609 <name>frameShape</name>
610 <enum>NoFrame</enum>
611 </property>
612 <property stdset="1">
613 <name>margin</name>
614 <number>1</number>
615 </property>
616 <property stdset="1">
617 <name>text</name>
618 <string>DHCP</string>
619 </property>
620 <property stdset="1">
621 <name>indent</name>
622 <number>0</number>
623 </property>
624 </widget>
625 <widget>
626 <class>QFrame</class>
627 <property stdset="1">
628 <name>name</name>
629 <cstring>DHCP_GB</cstring>
630 </property>
631 <property stdset="1">
632 <name>sizePolicy</name>
633 <sizepolicy>
634 <hsizetype>7</hsizetype>
635 <vsizetype>5</vsizetype>
636 </sizepolicy>
637 </property>
638 <property stdset="1">
639 <name>frameShape</name>
640 <enum>NoFrame</enum>
641 </property>
642 <property stdset="1">
643 <name>frameShadow</name>
644 <enum>Raised</enum>
645 </property>
646 <property>
647 <name>layoutMargin</name>
648 </property>
649 <property>
650 <name>layoutSpacing</name>
651 </property>
652 <grid>
653 <property stdset="1">
654 <name>margin</name>
655 <number>2</number>
656 </property>
657 <property stdset="1">
658 <name>spacing</name>
659 <number>1</number>
660 </property>
661 <widget row="2" column="0" >
662 <class>QLabel</class>
663 <property stdset="1">
664 <name>name</name>
665 <cstring>TextLabel9_3</cstring>
666 </property>
667 <property stdset="1">
668 <name>enabled</name>
669 <bool>true</bool>
670 </property>
671 <property stdset="1">
672 <name>sizePolicy</name>
673 <sizepolicy>
674 <hsizetype>1</hsizetype>
675 <vsizetype>1</vsizetype>
676 </sizepolicy>
677 </property>
678 <property stdset="1">
679 <name>text</name>
680 <string>Lease Expires</string>
681 </property>
682 </widget>
683 <widget row="1" column="0" >
684 <class>QLabel</class>
685 <property stdset="1">
686 <name>name</name>
687 <cstring>TextLabel8_3</cstring>
688 </property>
689 <property stdset="1">
690 <name>enabled</name>
691 <bool>true</bool>
692 </property>
693 <property stdset="1">
694 <name>sizePolicy</name>
695 <sizepolicy>
696 <hsizetype>0</hsizetype>
697 <vsizetype>1</vsizetype>
698 </sizepolicy>
699 </property>
700 <property stdset="1">
701 <name>text</name>
702 <string>Lease Obtained</string>
703 </property>
704 </widget>
705 <widget row="0" column="1" >
706 <class>QLabel</class>
707 <property stdset="1">
708 <name>name</name>
709 <cstring>DHCPServer_LBL</cstring>
710 </property>
711 <property stdset="1">
712 <name>enabled</name>
713 <bool>true</bool>
714 </property>
715 <property stdset="1">
716 <name>sizePolicy</name>
717 <sizepolicy>
718 <hsizetype>5</hsizetype>
719 <vsizetype>1</vsizetype>
720 </sizepolicy>
721 </property>
722 <property stdset="1">
723 <name>frameShape</name>
724 <enum>Panel</enum>
725 </property>
726 <property stdset="1">
727 <name>frameShadow</name>
728 <enum>Sunken</enum>
729 </property>
730 <property stdset="1">
731 <name>text</name>
732 <string></string>
733 </property>
734 <property stdset="1">
735 <name>indent</name>
736 <number>0</number>
737 </property>
738 </widget>
739 <widget row="1" column="1" >
740 <class>QLabel</class>
741 <property stdset="1">
742 <name>name</name>
743 <cstring>LeaseObtained_LBL</cstring>
744 </property>
745 <property stdset="1">
746 <name>enabled</name>
747 <bool>true</bool>
748 </property>
749 <property stdset="1">
750 <name>sizePolicy</name>
751 <sizepolicy>
752 <hsizetype>5</hsizetype>
753 <vsizetype>1</vsizetype>
754 </sizepolicy>
755 </property>
756 <property stdset="1">
757 <name>minimumSize</name>
758 <size>
759 <width>94</width>
760 <height>0</height>
761 </size>
762 </property>
763 <property stdset="1">
764 <name>frameShape</name>
765 <enum>Panel</enum>
766 </property>
767 <property stdset="1">
768 <name>frameShadow</name>
769 <enum>Sunken</enum>
770 </property>
771 <property stdset="1">
772 <name>text</name>
773 <string></string>
774 </property>
775 <property stdset="1">
776 <name>indent</name>
777 <number>0</number>
778 </property>
779 </widget>
780 <widget row="2" column="1" >
781 <class>QLabel</class>
782 <property stdset="1">
783 <name>name</name>
784 <cstring>LeaseExpires_LBL</cstring>
785 </property>
786 <property stdset="1">
787 <name>enabled</name>
788 <bool>true</bool>
789 </property>
790 <property stdset="1">
791 <name>sizePolicy</name>
792 <sizepolicy>
793 <hsizetype>5</hsizetype>
794 <vsizetype>1</vsizetype>
795 </sizepolicy>
796 </property>
797 <property stdset="1">
798 <name>frameShape</name>
799 <enum>Panel</enum>
800 </property>
801 <property stdset="1">
802 <name>frameShadow</name>
803 <enum>Sunken</enum>
804 </property>
805 <property stdset="1">
806 <name>text</name>
807 <string></string>
808 </property>
809 <property stdset="1">
810 <name>indent</name>
811 <number>0</number>
812 </property>
813 </widget>
814 <widget row="0" column="0" >
815 <class>QLabel</class>
816 <property stdset="1">
817 <name>name</name>
818 <cstring>TextLabel6_3</cstring>
819 </property>
820 <property stdset="1">
821 <name>enabled</name>
822 <bool>true</bool>
823 </property>
824 <property stdset="1">
825 <name>sizePolicy</name>
826 <sizepolicy>
827 <hsizetype>1</hsizetype>
828 <vsizetype>1</vsizetype>
829 </sizepolicy>
830 </property>
831 <property stdset="1">
832 <name>text</name>
833 <string>DHCP Server</string>
834 </property>
835 </widget>
836 </grid>
837 </widget>
838 <spacer>
839 <property>
840 <name>name</name>
841 <cstring>Spacer16</cstring>
842 </property>
843 <property stdset="1">
844 <name>orientation</name>
845 <enum>Vertical</enum>
846 </property>
847 <property stdset="1">
848 <name>sizeType</name>
849 <enum>Expanding</enum>
850 </property>
851 <property>
852 <name>sizeHint</name>
853 <size>
854 <width>20</width>
855 <height>20</height>
856 </size>
857 </property>
858 </spacer>
859 </vbox>
860 </widget>
861 <widget>
862 <class>QWidget</class>
863 <property stdset="1">
864 <name>name</name>
865 <cstring>tab</cstring>
866 </property>
867 <attribute>
868 <name>title</name>
869 <string>Traffic</string>
870 </attribute>
871 <vbox>
872 <property stdset="1">
873 <name>margin</name>
874 <number>0</number>
875 </property>
876 <property stdset="1">
877 <name>spacing</name>
878 <number>0</number>
879 </property>
880 <widget>
881 <class>QLayoutWidget</class>
882 <property stdset="1">
883 <name>name</name>
884 <cstring>Layout5</cstring>
885 </property>
886 <hbox>
887 <property stdset="1">
888 <name>margin</name>
889 <number>0</number>
890 </property>
891 <property stdset="1">
892 <name>spacing</name>
893 <number>6</number>
894 </property>
895 <widget>
896 <class>QLabel</class>
897 <property stdset="1">
898 <name>name</name>
899 <cstring>TextLabel1_2</cstring>
900 </property>
901 <property stdset="1">
902 <name>sizePolicy</name>
903 <sizepolicy>
904 <hsizetype>0</hsizetype>
905 <vsizetype>1</vsizetype>
906 </sizepolicy>
907 </property>
908 <property stdset="1">
909 <name>text</name>
910 <string>Receiving</string>
911 </property>
912 </widget>
913 <spacer>
914 <property>
915 <name>name</name>
916 <cstring>Spacer17_2</cstring>
917 </property>
918 <property stdset="1">
919 <name>orientation</name>
920 <enum>Horizontal</enum>
921 </property>
922 <property stdset="1">
923 <name>sizeType</name>
924 <enum>Expanding</enum>
925 </property>
926 <property>
927 <name>sizeHint</name>
928 <size>
929 <width>20</width>
930 <height>20</height>
931 </size>
932 </property>
933 </spacer>
934 </hbox>
935 </widget>
936 <widget>
937 <class>QLayoutWidget</class>
938 <property stdset="1">
939 <name>name</name>
940 <cstring>Layout43</cstring>
941 </property>
942 <property>
943 <name>layoutMargin</name>
944 </property>
945 <property>
946 <name>layoutSpacing</name>
947 </property>
948 <hbox>
949 <property stdset="1">
950 <name>margin</name>
951 <number>2</number>
952 </property>
953 <property stdset="1">
954 <name>spacing</name>
955 <number>0</number>
956 </property>
957 <widget>
958 <class>QFrame</class>
959 <property stdset="1">
960 <name>name</name>
961 <cstring>Frame114</cstring>
962 </property>
963 <property stdset="1">
964 <name>sizePolicy</name>
965 <sizepolicy>
966 <hsizetype>0</hsizetype>
967 <vsizetype>5</vsizetype>
968 </sizepolicy>
969 </property>
970 <property stdset="1">
971 <name>minimumSize</name>
972 <size>
973 <width>5</width>
974 <height>0</height>
975 </size>
976 </property>
977 <property stdset="1">
978 <name>maximumSize</name>
979 <size>
980 <width>5</width>
981 <height>32767</height>
982 </size>
983 </property>
984 <property stdset="1">
985 <name>frameShape</name>
986 <enum>NoFrame</enum>
987 </property>
988 <property stdset="1">
989 <name>frameShadow</name>
990 <enum>Raised</enum>
991 </property>
992 </widget>
993 <widget>
994 <class>QFrame</class>
995 <property stdset="1">
996 <name>name</name>
997 <cstring>Rcv_GB</cstring>
998 </property>
999 <property stdset="1">
1000 <name>enabled</name>
1001 <bool>false</bool>
1002 </property>
1003 <property stdset="1">
1004 <name>sizePolicy</name>
1005 <sizepolicy>
1006 <hsizetype>7</hsizetype>
1007 <vsizetype>5</vsizetype>
1008 </sizepolicy>
1009 </property>
1010 <property stdset="1">
1011 <name>frameShape</name>
1012 <enum>NoFrame</enum>
1013 </property>
1014 <property stdset="1">
1015 <name>frameShadow</name>
1016 <enum>Raised</enum>
1017 </property>
1018 <property>
1019 <name>layoutMargin</name>
1020 </property>
1021 <property>
1022 <name>layoutSpacing</name>
1023 </property>
1024 <grid>
1025 <property stdset="1">
1026 <name>margin</name>
1027 <number>0</number>
1028 </property>
1029 <property stdset="1">
1030 <name>spacing</name>
1031 <number>1</number>
1032 </property>
1033 <widget row="1" column="0" >
1034 <class>QLabel</class>
1035 <property stdset="1">
1036 <name>name</name>
1037 <cstring>TextLabel1_5_9</cstring>
1038 </property>
1039 <property stdset="1">
1040 <name>text</name>
1041 <string>Errors</string>
1042 </property>
1043 </widget>
1044 <widget row="0" column="1" rowspan="1" colspan="3" >
1045 <class>QLabel</class>
1046 <property stdset="1">
1047 <name>name</name>
1048 <cstring>RcvBytes_LBL</cstring>
1049 </property>
1050 <property stdset="1">
1051 <name>sizePolicy</name>
1052 <sizepolicy>
1053 <hsizetype>7</hsizetype>
1054 <vsizetype>1</vsizetype>
1055 </sizepolicy>
1056 </property>
1057 <property stdset="1">
1058 <name>frameShape</name>
1059 <enum>Panel</enum>
1060 </property>
1061 <property stdset="1">
1062 <name>frameShadow</name>
1063 <enum>Sunken</enum>
1064 </property>
1065 <property stdset="1">
1066 <name>indent</name>
1067 <number>0</number>
1068 </property>
1069 </widget>
1070 <widget row="1" column="3" >
1071 <class>QLabel</class>
1072 <property stdset="1">
1073 <name>name</name>
1074 <cstring>RcvDropped_LBL</cstring>
1075 </property>
1076 <property stdset="1">
1077 <name>sizePolicy</name>
1078 <sizepolicy>
1079 <hsizetype>7</hsizetype>
1080 <vsizetype>1</vsizetype>
1081 </sizepolicy>
1082 </property>
1083 <property stdset="1">
1084 <name>frameShape</name>
1085 <enum>Panel</enum>
1086 </property>
1087 <property stdset="1">
1088 <name>frameShadow</name>
1089 <enum>Sunken</enum>
1090 </property>
1091 <property stdset="1">
1092 <name>indent</name>
1093 <number>0</number>
1094 </property>
1095 </widget>
1096 <widget row="1" column="1" >
1097 <class>QLabel</class>
1098 <property stdset="1">
1099 <name>name</name>
1100 <cstring>RcvErrors_LBL</cstring>
1101 </property>
1102 <property stdset="1">
1103 <name>sizePolicy</name>
1104 <sizepolicy>
1105 <hsizetype>7</hsizetype>
1106 <vsizetype>1</vsizetype>
1107 </sizepolicy>
1108 </property>
1109 <property stdset="1">
1110 <name>frameShape</name>
1111 <enum>Panel</enum>
1112 </property>
1113 <property stdset="1">
1114 <name>frameShadow</name>
1115 <enum>Sunken</enum>
1116 </property>
1117 <property stdset="1">
1118 <name>indent</name>
1119 <number>0</number>
1120 </property>
1121 </widget>
1122 <widget row="1" column="2" >
1123 <class>QLabel</class>
1124 <property stdset="1">
1125 <name>name</name>
1126 <cstring>TextLabel1_5_4</cstring>
1127 </property>
1128 <property stdset="1">
1129 <name>text</name>
1130 <string>Dropped</string>
1131 </property>
1132 </widget>
1133 <widget row="0" column="0" >
1134 <class>QLabel</class>
1135 <property stdset="1">
1136 <name>name</name>
1137 <cstring>TextLabel1_5_3</cstring>
1138 </property>
1139 <property stdset="1">
1140 <name>text</name>
1141 <string>Bytes</string>
1142 </property>
1143 </widget>
1144 </grid>
1145 </widget>
1146 </hbox>
1147 </widget>
1148 <widget>
1149 <class>QLayoutWidget</class>
1150 <property stdset="1">
1151 <name>name</name>
1152 <cstring>Layout6</cstring>
1153 </property>
1154 <hbox>
1155 <property stdset="1">
1156 <name>margin</name>
1157 <number>0</number>
1158 </property>
1159 <property stdset="1">
1160 <name>spacing</name>
1161 <number>6</number>
1162 </property>
1163 <widget>
1164 <class>QLabel</class>
1165 <property stdset="1">
1166 <name>name</name>
1167 <cstring>TextLabel1</cstring>
1168 </property>
1169 <property stdset="1">
1170 <name>sizePolicy</name>
1171 <sizepolicy>
1172 <hsizetype>0</hsizetype>
1173 <vsizetype>1</vsizetype>
1174 </sizepolicy>
1175 </property>
1176 <property stdset="1">
1177 <name>text</name>
1178 <string>Transmitting</string>
1179 </property>
1180 </widget>
1181 <spacer>
1182 <property>
1183 <name>name</name>
1184 <cstring>Spacer18_2</cstring>
1185 </property>
1186 <property stdset="1">
1187 <name>orientation</name>
1188 <enum>Horizontal</enum>
1189 </property>
1190 <property stdset="1">
1191 <name>sizeType</name>
1192 <enum>Expanding</enum>
1193 </property>
1194 <property>
1195 <name>sizeHint</name>
1196 <size>
1197 <width>20</width>
1198 <height>20</height>
1199 </size>
1200 </property>
1201 </spacer>
1202 </hbox>
1203 </widget>
1204 <widget>
1205 <class>QLayoutWidget</class>
1206 <property stdset="1">
1207 <name>name</name>
1208 <cstring>Layout44</cstring>
1209 </property>
1210 <property>
1211 <name>layoutMargin</name>
1212 </property>
1213 <property>
1214 <name>layoutSpacing</name>
1215 </property>
1216 <hbox>
1217 <property stdset="1">
1218 <name>margin</name>
1219 <number>2</number>
1220 </property>
1221 <property stdset="1">
1222 <name>spacing</name>
1223 <number>0</number>
1224 </property>
1225 <widget>
1226 <class>QFrame</class>
1227 <property stdset="1">
1228 <name>name</name>
1229 <cstring>Frame115</cstring>
1230 </property>
1231 <property stdset="1">
1232 <name>sizePolicy</name>
1233 <sizepolicy>
1234 <hsizetype>0</hsizetype>
1235 <vsizetype>5</vsizetype>
1236 </sizepolicy>
1237 </property>
1238 <property stdset="1">
1239 <name>minimumSize</name>
1240 <size>
1241 <width>5</width>
1242 <height>0</height>
1243 </size>
1244 </property>
1245 <property stdset="1">
1246 <name>maximumSize</name>
1247 <size>
1248 <width>5</width>
1249 <height>32767</height>
1250 </size>
1251 </property>
1252 <property stdset="1">
1253 <name>frameShape</name>
1254 <enum>NoFrame</enum>
1255 </property>
1256 <property stdset="1">
1257 <name>frameShadow</name>
1258 <enum>Plain</enum>
1259 </property>
1260 </widget>
1261 <widget>
1262 <class>QFrame</class>
1263 <property stdset="1">
1264 <name>name</name>
1265 <cstring>Snd_GB</cstring>
1266 </property>
1267 <property stdset="1">
1268 <name>enabled</name>
1269 <bool>false</bool>
1270 </property>
1271 <property stdset="1">
1272 <name>sizePolicy</name>
1273 <sizepolicy>
1274 <hsizetype>7</hsizetype>
1275 <vsizetype>5</vsizetype>
1276 </sizepolicy>
1277 </property>
1278 <property stdset="1">
1279 <name>frameShape</name>
1280 <enum>NoFrame</enum>
1281 </property>
1282 <property stdset="1">
1283 <name>frameShadow</name>
1284 <enum>Raised</enum>
1285 </property>
1286 <property>
1287 <name>layoutMargin</name>
1288 </property>
1289 <property>
1290 <name>layoutSpacing</name>
1291 </property>
1292 <grid>
1293 <property stdset="1">
1294 <name>margin</name>
1295 <number>0</number>
1296 </property>
1297 <property stdset="1">
1298 <name>spacing</name>
1299 <number>1</number>
1300 </property>
1301 <widget row="1" column="0" >
1302 <class>QLabel</class>
1303 <property stdset="1">
1304 <name>name</name>
1305 <cstring>TextLabel1_5_9_2</cstring>
1306 </property>
1307 <property stdset="1">
1308 <name>text</name>
1309 <string>Errors</string>
1310 </property>
1311 </widget>
1312 <widget row="1" column="2" >
1313 <class>QLabel</class>
1314 <property stdset="1">
1315 <name>name</name>
1316 <cstring>TextLabel1_5_4_2</cstring>
1317 </property>
1318 <property stdset="1">
1319 <name>text</name>
1320 <string>Dropped</string>
1321 </property>
1322 </widget>
1323 <widget row="0" column="0" >
1324 <class>QLabel</class>
1325 <property stdset="1">
1326 <name>name</name>
1327 <cstring>TextLabel1_5_3_2</cstring>
1328 </property>
1329 <property stdset="1">
1330 <name>text</name>
1331 <string>Bytes</string>
1332 </property>
1333 </widget>
1334 <widget row="1" column="3" >
1335 <class>QLabel</class>
1336 <property stdset="1">
1337 <name>name</name>
1338 <cstring>SndDropped_LBL</cstring>
1339 </property>
1340 <property stdset="1">
1341 <name>sizePolicy</name>
1342 <sizepolicy>
1343 <hsizetype>7</hsizetype>
1344 <vsizetype>1</vsizetype>
1345 </sizepolicy>
1346 </property>
1347 <property stdset="1">
1348 <name>frameShape</name>
1349 <enum>Panel</enum>
1350 </property>
1351 <property stdset="1">
1352 <name>frameShadow</name>
1353 <enum>Sunken</enum>
1354 </property>
1355 <property stdset="1">
1356 <name>indent</name>
1357 <number>0</number>
1358 </property>
1359 </widget>
1360 <widget row="1" column="1" >
1361 <class>QLabel</class>
1362 <property stdset="1">
1363 <name>name</name>
1364 <cstring>SndErrors_LBL</cstring>
1365 </property>
1366 <property stdset="1">
1367 <name>sizePolicy</name>
1368 <sizepolicy>
1369 <hsizetype>7</hsizetype>
1370 <vsizetype>1</vsizetype>
1371 </sizepolicy>
1372 </property>
1373 <property stdset="1">
1374 <name>frameShape</name>
1375 <enum>Panel</enum>
1376 </property>
1377 <property stdset="1">
1378 <name>frameShadow</name>
1379 <enum>Sunken</enum>
1380 </property>
1381 <property stdset="1">
1382 <name>indent</name>
1383 <number>0</number>
1384 </property>
1385 </widget>
1386 <widget row="0" column="1" rowspan="1" colspan="3" >
1387 <class>QLabel</class>
1388 <property stdset="1">
1389 <name>name</name>
1390 <cstring>SndBytes_LBL</cstring>
1391 </property>
1392 <property stdset="1">
1393 <name>sizePolicy</name>
1394 <sizepolicy>
1395 <hsizetype>7</hsizetype>
1396 <vsizetype>1</vsizetype>
1397 </sizepolicy>
1398 </property>
1399 <property stdset="1">
1400 <name>frameShape</name>
1401 <enum>Panel</enum>
1402 </property>
1403 <property stdset="1">
1404 <name>frameShadow</name>
1405 <enum>Sunken</enum>
1406 </property>
1407 <property stdset="1">
1408 <name>indent</name>
1409 <number>0</number>
1410 </property>
1411 </widget>
1412 </grid>
1413 </widget>
1414 </hbox>
1415 </widget>
1416 <widget>
1417 <class>QLayoutWidget</class>
1418 <property stdset="1">
1419 <name>name</name>
1420 <cstring>Layout7</cstring>
1421 </property>
1422 <hbox>
1423 <property stdset="1">
1424 <name>margin</name>
1425 <number>0</number>
1426 </property>
1427 <property stdset="1">
1428 <name>spacing</name>
1429 <number>6</number>
1430 </property>
1431 <widget>
1432 <class>QLabel</class>
1433 <property stdset="1">
1434 <name>name</name>
1435 <cstring>TextLabel1_3</cstring>
1436 </property>
1437 <property stdset="1">
1438 <name>sizePolicy</name>
1439 <sizepolicy>
1440 <hsizetype>0</hsizetype>
1441 <vsizetype>1</vsizetype>
1442 </sizepolicy>
1443 </property>
1444 <property stdset="1">
1445 <name>text</name>
1446 <string>Others</string>
1447 </property>
1448 </widget>
1449 <spacer>
1450 <property>
1451 <name>name</name>
1452 <cstring>Spacer19</cstring>
1453 </property>
1454 <property stdset="1">
1455 <name>orientation</name>
1456 <enum>Horizontal</enum>
1457 </property>
1458 <property stdset="1">
1459 <name>sizeType</name>
1460 <enum>Expanding</enum>
1461 </property>
1462 <property>
1463 <name>sizeHint</name>
1464 <size>
1465 <width>20</width>
1466 <height>20</height>
1467 </size>
1468 </property>
1469 </spacer>
1470 </hbox>
1471 </widget>
1472 <widget>
1473 <class>QLayoutWidget</class>
1474 <property stdset="1">
1475 <name>name</name>
1476 <cstring>Layout45</cstring>
1477 </property>
1478 <property>
1479 <name>layoutMargin</name>
1480 </property>
1481 <property>
1482 <name>layoutSpacing</name>
1483 </property>
1484 <hbox>
1485 <property stdset="1">
1486 <name>margin</name>
1487 <number>2</number>
1488 </property>
1489 <property stdset="1">
1490 <name>spacing</name>
1491 <number>0</number>
1492 </property>
1493 <widget>
1494 <class>QFrame</class>
1495 <property stdset="1">
1496 <name>name</name>
1497 <cstring>Frame116</cstring>
1498 </property>
1499 <property stdset="1">
1500 <name>sizePolicy</name>
1501 <sizepolicy>
1502 <hsizetype>0</hsizetype>
1503 <vsizetype>5</vsizetype>
1504 </sizepolicy>
1505 </property>
1506 <property stdset="1">
1507 <name>minimumSize</name>
1508 <size>
1509 <width>5</width>
1510 <height>0</height>
1511 </size>
1512 </property>
1513 <property stdset="1">
1514 <name>maximumSize</name>
1515 <size>
1516 <width>5</width>
1517 <height>32767</height>
1518 </size>
1519 </property>
1520 <property stdset="1">
1521 <name>frameShape</name>
1522 <enum>NoFrame</enum>
1523 </property>
1524 <property stdset="1">
1525 <name>frameShadow</name>
1526 <enum>Raised</enum>
1527 </property>
1528 </widget>
1529 <widget>
1530 <class>QFrame</class>
1531 <property stdset="1">
1532 <name>name</name>
1533 <cstring>Collisions_FRM</cstring>
1534 </property>
1535 <property stdset="1">
1536 <name>enabled</name>
1537 <bool>false</bool>
1538 </property>
1539 <property stdset="1">
1540 <name>sizePolicy</name>
1541 <sizepolicy>
1542 <hsizetype>7</hsizetype>
1543 <vsizetype>5</vsizetype>
1544 </sizepolicy>
1545 </property>
1546 <property stdset="1">
1547 <name>frameShape</name>
1548 <enum>NoFrame</enum>
1549 </property>
1550 <property stdset="1">
1551 <name>frameShadow</name>
1552 <enum>Raised</enum>
1553 </property>
1554 <property>
1555 <name>layoutMargin</name>
1556 </property>
1557 <property>
1558 <name>layoutSpacing</name>
1559 </property>
1560 <hbox>
1561 <property stdset="1">
1562 <name>margin</name>
1563 <number>0</number>
1564 </property>
1565 <property stdset="1">
1566 <name>spacing</name>
1567 <number>2</number>
1568 </property>
1569 <widget>
1570 <class>QLabel</class>
1571 <property stdset="1">
1572 <name>name</name>
1573 <cstring>TextLabel1_5_3_3</cstring>
1574 </property>
1575 <property stdset="1">
1576 <name>text</name>
1577 <string>Collisions</string>
1578 </property>
1579 </widget>
1580 <widget>
1581 <class>QLabel</class>
1582 <property stdset="1">
1583 <name>name</name>
1584 <cstring>Collisions_LBL</cstring>
1585 </property>
1586 <property stdset="1">
1587 <name>sizePolicy</name>
1588 <sizepolicy>
1589 <hsizetype>7</hsizetype>
1590 <vsizetype>1</vsizetype>
1591 </sizepolicy>
1592 </property>
1593 <property stdset="1">
1594 <name>frameShape</name>
1595 <enum>Panel</enum>
1596 </property>
1597 <property stdset="1">
1598 <name>frameShadow</name>
1599 <enum>Sunken</enum>
1600 </property>
1601 <property stdset="1">
1602 <name>indent</name>
1603 <number>0</number>
1604 </property>
1605 </widget>
1606 <spacer>
1607 <property>
1608 <name>name</name>
1609 <cstring>Spacer18</cstring>
1610 </property>
1611 <property stdset="1">
1612 <name>orientation</name>
1613 <enum>Horizontal</enum>
1614 </property>
1615 <property stdset="1">
1616 <name>sizeType</name>
1617 <enum>Expanding</enum>
1618 </property>
1619 <property>
1620 <name>sizeHint</name>
1621 <size>
1622 <width>20</width>
1623 <height>20</height>
1624 </size>
1625 </property>
1626 </spacer>
1627 </hbox>
1628 </widget>
1629 </hbox>
1630 </widget>
1631 <spacer>
1632 <property>
1633 <name>name</name>
1634 <cstring>Spacer17</cstring>
1635 </property>
1636 <property stdset="1">
1637 <name>orientation</name>
1638 <enum>Vertical</enum>
1639 </property>
1640 <property stdset="1">
1641 <name>sizeType</name>
1642 <enum>Expanding</enum>
1643 </property>
1644 <property>
1645 <name>sizeHint</name>
1646 <size>
1647 <width>20</width>
1648 <height>20</height>
1649 </size>
1650 </property>
1651 </spacer>
1652 <widget>
1653 <class>QLayoutWidget</class>
1654 <property stdset="1">
1655 <name>name</name>
1656 <cstring>Layout17</cstring>
1657 </property>
1658 <hbox>
1659 <property stdset="1">
1660 <name>margin</name>
1661 <number>0</number>
1662 </property>
1663 <property stdset="1">
1664 <name>spacing</name>
1665 <number>6</number>
1666 </property>
1667 <widget>
1668 <class>QCheckBox</class>
1669 <property stdset="1">
1670 <name>name</name>
1671 <cstring>Refresh_CB</cstring>
1672 </property>
1673 <property stdset="1">
1674 <name>text</name>
1675 <string>Live feed </string>
1676 </property>
1677 </widget>
1678 <spacer>
1679 <property>
1680 <name>name</name>
1681 <cstring>Spacer57</cstring>
1682 </property>
1683 <property stdset="1">
1684 <name>orientation</name>
1685 <enum>Horizontal</enum>
1686 </property>
1687 <property stdset="1">
1688 <name>sizeType</name>
1689 <enum>Expanding</enum>
1690 </property>
1691 <property>
1692 <name>sizeHint</name>
1693 <size>
1694 <width>20</width>
1695 <height>20</height>
1696 </size>
1697 </property>
1698 </spacer>
1699 </hbox>
1700 </widget>
1701 </vbox>
1702 </widget>
1703 </widget>
1704 </vbox>
1705</widget>
1706<connections>
1707 <connection>
1708 <sender>Refresh_CB</sender>
1709 <signal>toggled(bool)</signal>
1710 <receiver>Profile_FRM</receiver>
1711 <slot>SLOT_AutoRefresh(bool)</slot>
1712 </connection>
1713 <slot access="public">SLOT_AutoRefresh(bool)</slot>
1714</connections>
1715</UI>
diff --git a/noncore/settings/networksettings2/profile/profile_NN.cpp b/noncore/settings/networksettings2/profile/profile_NN.cpp
new file mode 100644
index 0000000..c39b86f
--- a/dev/null
+++ b/noncore/settings/networksettings2/profile/profile_NN.cpp
@@ -0,0 +1,61 @@
1#include "profile_NN.h"
2#include "profile_NNI.h"
3
4static const char * ProfileNeeds[] =
5 { "connection",
6 0
7 };
8
9/**
10 * Constructor, find all of the possible interfaces
11 */
12ProfileNetNode::ProfileNetNode() : ANetNode() {
13}
14
15/**
16 * Delete any interfaces that we own.
17 */
18ProfileNetNode::~ProfileNetNode(){
19}
20
21const QString ProfileNetNode::nodeDescription(){
22 return tr("\
23<p>Define use of an IP connection.</p>\
24<p>Configure if and when this connection needs to be established</p>\
25"
26);
27}
28
29ANetNodeInstance * ProfileNetNode::createInstance( void ) {
30 return new AProfile( this );
31}
32
33const char ** ProfileNetNode::needs( void ) {
34 return ProfileNeeds;
35}
36
37const char * ProfileNetNode::provides( void ) {
38 return "fullsetup";
39}
40
41bool ProfileNetNode::generateProperFilesFor(
42 ANetNodeInstance * ) {
43 return 1;
44}
45
46bool ProfileNetNode::hasDataFor( const QString & ) {
47 return 0;
48}
49
50bool ProfileNetNode::generateDataForCommonFile(
51 SystemFile & ,
52 long,
53 ANetNodeInstance * ) {
54 return 1;
55}
56
57extern "C" {
58void create_plugin( QList<ANetNode> & PNN ) {
59 PNN.append( new ProfileNetNode() );
60}
61}
diff --git a/noncore/settings/networksettings2/profile/profile_NN.h b/noncore/settings/networksettings2/profile/profile_NN.h
new file mode 100644
index 0000000..2b469c7
--- a/dev/null
+++ b/noncore/settings/networksettings2/profile/profile_NN.h
@@ -0,0 +1,44 @@
1#ifndef PROFILE_NETNODE_H
2#define PROFILE_NETNODE_H
3
4#include "netnode.h"
5
6class AProfile;
7
8class ProfileNetNode : public ANetNode{
9
10 Q_OBJECT
11
12public:
13
14 ProfileNetNode();
15 virtual ~ProfileNetNode();
16
17 virtual const QString pixmapName()
18 { return "commprofile"; }
19
20 virtual const QString nodeName()
21 { return tr("Regular profile"); }
22
23 virtual const QString nodeDescription() ;
24
25 virtual ANetNodeInstance * createInstance( void );
26
27 virtual const char ** needs( void );
28 virtual const char * provides( void );
29
30 virtual bool generateProperFilesFor( ANetNodeInstance * NNI );
31 virtual bool hasDataFor( const QString & S );
32 virtual bool generateDataForCommonFile(
33 SystemFile & SF, long DevNr, ANetNodeInstance * NNI );
34
35private:
36
37};
38
39extern "C"
40{
41 void create_plugin( QList<ANetNode> & PNN );
42};
43
44#endif
diff --git a/noncore/settings/networksettings2/profile/profile_NNI.cpp b/noncore/settings/networksettings2/profile/profile_NNI.cpp
new file mode 100644
index 0000000..bc0118e
--- a/dev/null
+++ b/noncore/settings/networksettings2/profile/profile_NNI.cpp
@@ -0,0 +1,48 @@
1#include "profileedit.h"
2#include "profile_NNI.h"
3#include "profile_NN.h"
4
5AProfile::AProfile( ProfileNetNode * PNN ) : ANetNodeInstance( PNN ) {
6 Data.Automatic = 1;
7 Data.Confirm = 0;
8 Data.Description = "";
9 Data.Disabled = 0;
10 GUI = 0;
11 RT = 0;
12}
13
14void AProfile::setSpecificAttribute( QString & Attr, QString & Value ) {
15
16 if ( Attr == "automatic" ) {
17 Data.Automatic = (Value=="yes");
18 } else if ( Attr == "preconfirm" ) {
19 Data.Confirm = (Value=="yes");
20 } else if ( Attr == "disabled" ) {
21 Data.Disabled = (Value=="yes");
22 } else if ( Attr == "description" ) {
23 Data.Description = Value;
24 }
25}
26
27void AProfile::saveSpecificAttribute( QTextStream & TS ) {
28 TS << "automatic=" << ((Data.Automatic) ? "yes" : "no") << endl;
29 TS << "preconfirm=" << ((Data.Confirm) ? "yes" : "no") << endl;
30 TS << "disabled=" << ((Data.Disabled) ? "yes" : "no") << endl;
31 TS << "description=" << Data.Description << endl;
32}
33
34QWidget * AProfile::edit( QWidget * parent ) {
35 GUI = new ProfileEdit( parent, this );
36 GUI->showData( Data );
37 return GUI;
38}
39
40QString AProfile::acceptable( void ) {
41 return ( GUI ) ? GUI->acceptable( ) : QString();
42}
43
44void AProfile::commit( void ) {
45 if( GUI && GUI->commit( Data ) )
46 setModified( 1 );
47}
48
diff --git a/noncore/settings/networksettings2/profile/profile_NNI.h b/noncore/settings/networksettings2/profile/profile_NNI.h
new file mode 100644
index 0000000..dfeb178
--- a/dev/null
+++ b/noncore/settings/networksettings2/profile/profile_NNI.h
@@ -0,0 +1,45 @@
1#ifndef PROFILE_H
2#define PROFILE_H
3
4#include <netnode.h>
5#include "profiledata.h"
6#include "profilerun.h"
7
8class ProfileNetNode;
9class ProfileEdit;
10
11class AProfile : public ANetNodeInstance {
12
13public :
14
15 AProfile( ProfileNetNode * PNN );
16
17 QWidget * edit( QWidget * parent );
18 QString acceptable( void );
19 void commit( void );
20
21 const QString & description( void )
22 { return Data.Description; }
23 RuntimeInfo * runtime( void )
24 { if( RT == 0 )
25 RT = new ProfileRun( this, Data );
26 return RT;
27 }
28
29 virtual void * data( void )
30 { return (void *)&Data; }
31
32protected :
33
34 virtual void setSpecificAttribute( QString & Attr, QString & Value );
35 virtual void saveSpecificAttribute( QTextStream & TS );
36
37private :
38
39 ProfileEdit * GUI;
40 ProfileData Data;
41 ProfileRun * RT;
42
43};
44
45#endif
diff --git a/noncore/settings/networksettings2/profile/profiledata.h b/noncore/settings/networksettings2/profile/profiledata.h
new file mode 100644
index 0000000..b4168e2
--- a/dev/null
+++ b/noncore/settings/networksettings2/profile/profiledata.h
@@ -0,0 +1,15 @@
1#ifndef PROFILE_DATA_H
2#define PROFILE_DATA_H
3
4#include <qstring.h>
5typedef struct ProfileData {
6 QString Description;
7 // start up automatically
8 bool Automatic;
9 // if started up automatically, ask user for confirmation
10 bool Confirm;
11 // Do not bring this connection up
12 bool Disabled;
13} ProfileData_t;
14
15#endif
diff --git a/noncore/settings/networksettings2/profile/profileedit.cpp b/noncore/settings/networksettings2/profile/profileedit.cpp
new file mode 100644
index 0000000..3f72c52
--- a/dev/null
+++ b/noncore/settings/networksettings2/profile/profileedit.cpp
@@ -0,0 +1,93 @@
1#include <qlabel.h>
2#include <qframe.h>
3#include <qcheckbox.h>
4#include <qmultilineedit.h>
5#include <qcheckbox.h>
6
7#include <GUIUtils.h>
8#include <asdevice.h>
9#include <resources.h>
10
11#include "profileedit.h"
12
13ProfileEdit::ProfileEdit( QWidget * Parent, ANetNodeInstance * TNNI ) :
14 ProfileGUI( Parent ), TrafficRefresh(this) {
15 InterfaceInfo * II;
16
17 NNI = TNNI;
18 Dev = NNI->runtime()->device();
19 if( ( II = Dev->assignedInterface() ) ) {
20 Refresh_CB->setEnabled( TRUE );
21 Snd_GB->setEnabled( TRUE );
22 Rcv_GB->setEnabled( TRUE );
23 Collisions_FRM->setEnabled( TRUE );
24 // show current content
25 SLOT_Refresh();
26
27 // fill in static data
28 InterfaceName_LBL->setText( II->Name );
29 IPAddress_LBL->setText( II->Address );
30 SubnetMask_LBL->setText( II->Netmask );
31 Broadcast_LBL->setText( II->BCastAddress );
32 MACAddress_LBL->setText( II->MACAddress );
33 if( II->IsPointToPoint ) {
34 PointToPoint_LBL->setText( II->DstAddress );
35 }
36 QString S;
37 InterfaceName_LBL->setText( II->Name );
38 if( II->HasMulticast ) {
39 S += "Multicast";
40 }
41 if( ! S.isEmpty() ) {
42 S.prepend( " : " );
43 }
44 InterfaceOptions_LBL->setText( S );
45 }
46
47 connect( &TrafficRefresh, SIGNAL( timeout() ),
48 this, SLOT( SLOT_Refresh() ) );
49}
50
51QString ProfileEdit::acceptable( void ) {
52 return QString();
53}
54
55void ProfileEdit::showData( ProfileData_t & Data ) {
56 Description_LE->setText( Data.Description );
57 Automatic_CB->setChecked( Data.Automatic );
58 Confirm_CB->setChecked( Data.Confirm );
59 Disabled_CB->setChecked( Data.Disabled );
60}
61
62
63bool ProfileEdit::commit( ProfileData_t & Data ) {
64 bool SM = 0;
65 TXTM( Data.Description, Description_LE, SM );
66
67 CBM( Data.Automatic, Automatic_CB, SM );
68 CBM( Data.Disabled, Disabled_CB, SM );
69 CBM( Data.Confirm, Confirm_CB, SM );
70
71 return SM;
72}
73
74void ProfileEdit::SLOT_Refresh( void ) {
75 InterfaceInfo * II = Dev->assignedInterface();
76 NSResources->system().refreshStatistics( *II );
77 RcvBytes_LBL->setText( II->RcvBytes );
78 SndBytes_LBL->setText( II->SndBytes );
79 RcvErrors_LBL->setText( II->RcvErrors );
80 SndErrors_LBL->setText( II->SndErrors );
81 RcvDropped_LBL->setText( II->RcvDropped );
82 SndDropped_LBL->setText( II->SndDropped );
83 Collisions_LBL->setText( II->Collisions );
84}
85
86void ProfileEdit::SLOT_AutoRefresh( bool ar ) {
87 if( ar ) {
88 TrafficRefresh.start( 1000 );
89 SLOT_Refresh();
90 } else {
91 TrafficRefresh.stop();
92 }
93}
diff --git a/noncore/settings/networksettings2/profile/profileedit.h b/noncore/settings/networksettings2/profile/profileedit.h
new file mode 100644
index 0000000..8ca34be
--- a/dev/null
+++ b/noncore/settings/networksettings2/profile/profileedit.h
@@ -0,0 +1,29 @@
1#include "profiledata.h"
2#include "profileGUI.h"
3
4#include <qtimer.h>
5class ANetNodeInstance;
6class AsDevice;
7
8class ProfileEdit : public ProfileGUI {
9
10 Q_OBJECT
11
12public :
13
14 ProfileEdit( QWidget * parent, ANetNodeInstance * NNI );
15 QString acceptable( void );
16 bool commit( ProfileData_t & Data );
17 void showData( ProfileData_t & Data );
18
19public slots :
20
21 void SLOT_AutoRefresh( bool );
22 void SLOT_Refresh( void );
23
24private :
25
26 QTimer TrafficRefresh;
27 ANetNodeInstance * NNI;
28 AsDevice * Dev;
29};
diff --git a/noncore/settings/networksettings2/profile/profilerun.cpp b/noncore/settings/networksettings2/profile/profilerun.cpp
new file mode 100644
index 0000000..90c37ed
--- a/dev/null
+++ b/noncore/settings/networksettings2/profile/profilerun.cpp
@@ -0,0 +1,67 @@
1#include <resources.h>
2
3#include "profilerun.h"
4
5void ProfileRun::detectState( NodeCollection * NC ) {
6 if( Data->Disabled ) {
7 NC->setCurrentState( Disabled );
8 } else {
9 // find next item in connection
10 // convert to runtime and ask to detect the state
11 netNode()->nextNode()->runtime()->detectState( NC );
12 }
13}
14
15bool ProfileRun::setState( NodeCollection * NC, Action_t A ) {
16 ANetNodeInstance * NNNI;
17
18 NNNI = netNode()->nextNode();
19 switch ( A ) {
20 case Enable :
21 if( NC->currentState() == Disabled ) {
22 NC->setCurrentState( Off ); // at least
23 // ... but request deeper
24 NNNI->runtime()->detectState(NC);
25 return 1;
26 }
27 return 1;
28 case Disable :
29 if( NC->currentState() == IsUp ) {
30 // bring down -> make available
31 NNNI->runtime()->setState(NC, Down);
32 }
33 if( NC->currentState() == Available ) {
34 // make unavailable
35 NNNI->runtime()->setState(NC, Deactivate);
36 }
37 if( NC->currentState() > Available ) {
38 // could not disable
39 return 0;
40 }
41 NC->setCurrentState( Disabled );
42 return 1;
43 default :
44 break;
45 }
46 return NNNI->runtime()->setState(NC, A);
47}
48
49bool ProfileRun::canSetState( State_t Curr, Action_t A ) {
50 RuntimeInfo * RI;
51 switch ( A ) {
52 case Enable :
53 case Disable :
54 // always possible
55 return 1;
56 default :
57 break;
58 }
59 RI = netNode()->nextNode()->runtime();
60 return ( Curr != Disabled ) ?
61 RI->canSetState(Curr, A) : 0;
62}
63
64bool ProfileRun::handlesInterface( const QString & S ) {
65 // donno -> pass deeper
66 return netNode()->nextNode()->runtime()->handlesInterface(S);
67}
diff --git a/noncore/settings/networksettings2/profile/profilerun.h b/noncore/settings/networksettings2/profile/profilerun.h
new file mode 100644
index 0000000..d3797b5
--- a/dev/null
+++ b/noncore/settings/networksettings2/profile/profilerun.h
@@ -0,0 +1,28 @@
1#ifndef PROFILERUN_H
2#define PROFILERUN_H
3
4#include <asfullsetup.h>
5#include "profiledata.h"
6
7class ProfileRun : public AsFullSetup {
8
9public :
10
11 ProfileRun( ANetNodeInstance * NNI, ProfileData & D ) :
12 AsFullSetup( NNI )
13 { Data = &D; }
14
15 void detectState( NodeCollection * NC );
16 bool setState( NodeCollection * NC, Action_t A );
17 bool canSetState( State_t Curr, Action_t A );
18
19 bool handlesInterface( const QString & I );
20
21 virtual const QString & description( void )
22 { return Data->Description; }
23private :
24
25 ProfileData * Data;
26
27};
28#endif