summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/configbase.ui322
-rw-r--r--noncore/net/wellenreiter/gui/mainwindow.cpp13
-rw-r--r--noncore/net/wellenreiter/gui/wellenreiter.cpp1
-rw-r--r--noncore/net/wellenreiter/gui/wellenreiter.h2
4 files changed, 179 insertions, 159 deletions
diff --git a/noncore/net/wellenreiter/gui/configbase.ui b/noncore/net/wellenreiter/gui/configbase.ui
index 4fc8ea1..2c335df 100644
--- a/noncore/net/wellenreiter/gui/configbase.ui
+++ b/noncore/net/wellenreiter/gui/configbase.ui
@@ -1,86 +1,86 @@
1<!DOCTYPE UI><UI> 1<!DOCTYPE UI><UI>
2<class>WellenreiterConfigBase</class> 2<class>WellenreiterConfigBase</class>
3<widget> 3<widget>
4 <class>QDialog</class> 4 <class>QDialog</class>
5 <property stdset="1"> 5 <property stdset="1">
6 <name>name</name> 6 <name>name</name>
7 <cstring>WellenreiterConfigBase</cstring> 7 <cstring>WellenreiterConfigBase</cstring>
8 </property> 8 </property>
9 <property stdset="1"> 9 <property stdset="1">
10 <name>geometry</name> 10 <name>geometry</name>
11 <rect> 11 <rect>
12 <x>0</x> 12 <x>0</x>
13 <y>0</y> 13 <y>0</y>
14 <width>286</width> 14 <width>303</width>
15 <height>345</height> 15 <height>343</height>
16 </rect> 16 </rect>
17 </property> 17 </property>
18 <property stdset="1"> 18 <property stdset="1">
19 <name>caption</name> 19 <name>caption</name>
20 <string>Wellenreiter II COnfiguration Dialog</string> 20 <string>Wellenreiter II COnfiguration Dialog</string>
21 </property> 21 </property>
22 <property> 22 <property>
23 <name>layoutMargin</name> 23 <name>layoutMargin</name>
24 </property> 24 </property>
25 <property> 25 <property>
26 <name>layoutSpacing</name> 26 <name>layoutSpacing</name>
27 </property> 27 </property>
28 <grid> 28 <grid>
29 <property stdset="1"> 29 <property stdset="1">
30 <name>margin</name> 30 <name>margin</name>
31 <number>2</number> 31 <number>2</number>
32 </property> 32 </property>
33 <property stdset="1"> 33 <property stdset="1">
34 <name>spacing</name> 34 <name>spacing</name>
35 <number>3</number> 35 <number>3</number>
36 </property> 36 </property>
37 <widget row="0" column="0" > 37 <widget row="0" column="0" >
38 <class>QTabWidget</class> 38 <class>QTabWidget</class>
39 <property stdset="1"> 39 <property stdset="1">
40 <name>name</name> 40 <name>name</name>
41 <cstring>tab</cstring> 41 <cstring>tab</cstring>
42 </property> 42 </property>
43 <property> 43 <property>
44 <name>layoutMargin</name> 44 <name>layoutMargin</name>
45 </property> 45 </property>
46 <property> 46 <property>
47 <name>layoutSpacing</name> 47 <name>layoutSpacing</name>
48 </property> 48 </property>
49 <widget> 49 <widget>
50 <class>QWidget</class> 50 <class>QWidget</class>
51 <property stdset="1"> 51 <property stdset="1">
52 <name>name</name> 52 <name>name</name>
53 <cstring>tab</cstring> 53 <cstring>tab</cstring>
54 </property> 54 </property>
55 <attribute> 55 <attribute>
56 <name>title</name> 56 <name>title</name>
57 <string>Interface</string> 57 <string>Interface</string>
58 </attribute> 58 </attribute>
59 <vbox> 59 <vbox>
60 <property stdset="1"> 60 <property stdset="1">
61 <name>margin</name> 61 <name>margin</name>
62 <number>11</number> 62 <number>6</number>
63 </property> 63 </property>
64 <property stdset="1"> 64 <property stdset="1">
65 <name>spacing</name> 65 <name>spacing</name>
66 <number>6</number> 66 <number>6</number>
67 </property> 67 </property>
68 <widget> 68 <widget>
69 <class>QLayoutWidget</class> 69 <class>QLayoutWidget</class>
70 <property stdset="1"> 70 <property stdset="1">
71 <name>name</name> 71 <name>name</name>
72 <cstring>Layout7</cstring> 72 <cstring>Layout7</cstring>
73 </property> 73 </property>
74 <grid> 74 <grid>
75 <property stdset="1"> 75 <property stdset="1">
76 <name>margin</name> 76 <name>margin</name>
77 <number>0</number> 77 <number>0</number>
78 </property> 78 </property>
79 <property stdset="1"> 79 <property stdset="1">
80 <name>spacing</name> 80 <name>spacing</name>
81 <number>6</number> 81 <number>6</number>
82 </property> 82 </property>
83 <widget row="1" column="1" > 83 <widget row="1" column="1" >
84 <class>QComboBox</class> 84 <class>QComboBox</class>
85 <item> 85 <item>
86 <property> 86 <property>
@@ -685,49 +685,49 @@
685 </property> 685 </property>
686 <property stdset="1"> 686 <property stdset="1">
687 <name>sizePolicy</name> 687 <name>sizePolicy</name>
688 <sizepolicy> 688 <sizepolicy>
689 <hsizetype>7</hsizetype> 689 <hsizetype>7</hsizetype>
690 <vsizetype>7</vsizetype> 690 <vsizetype>7</vsizetype>
691 </sizepolicy> 691 </sizepolicy>
692 </property> 692 </property>
693 </widget> 693 </widget>
694 </grid> 694 </grid>
695 </widget> 695 </widget>
696 <widget> 696 <widget>
697 <class>QWidget</class> 697 <class>QWidget</class>
698 <property stdset="1"> 698 <property stdset="1">
699 <name>name</name> 699 <name>name</name>
700 <cstring>tab</cstring> 700 <cstring>tab</cstring>
701 </property> 701 </property>
702 <attribute> 702 <attribute>
703 <name>title</name> 703 <name>title</name>
704 <string>UI</string> 704 <string>UI</string>
705 </attribute> 705 </attribute>
706 <vbox> 706 <vbox>
707 <property stdset="1"> 707 <property stdset="1">
708 <name>margin</name> 708 <name>margin</name>
709 <number>11</number> 709 <number>6</number>
710 </property> 710 </property>
711 <property stdset="1"> 711 <property stdset="1">
712 <name>spacing</name> 712 <name>spacing</name>
713 <number>6</number> 713 <number>6</number>
714 </property> 714 </property>
715 <widget> 715 <widget>
716 <class>QCheckBox</class> 716 <class>QCheckBox</class>
717 <property stdset="1"> 717 <property stdset="1">
718 <name>name</name> 718 <name>name</name>
719 <cstring>lookupVendor</cstring> 719 <cstring>lookupVendor</cstring>
720 </property> 720 </property>
721 <property stdset="1"> 721 <property stdset="1">
722 <name>text</name> 722 <name>text</name>
723 <string>Lookup MAC vendor names</string> 723 <string>Lookup MAC vendor names</string>
724 </property> 724 </property>
725 </widget> 725 </widget>
726 <widget> 726 <widget>
727 <class>QCheckBox</class> 727 <class>QCheckBox</class>
728 <property stdset="1"> 728 <property stdset="1">
729 <name>name</name> 729 <name>name</name>
730 <cstring>openTree</cstring> 730 <cstring>openTree</cstring>
731 </property> 731 </property>
732 <property stdset="1"> 732 <property stdset="1">
733 <name>text</name> 733 <name>text</name>
@@ -752,48 +752,52 @@
752 </property> 752 </property>
753 <property stdset="1"> 753 <property stdset="1">
754 <name>orientation</name> 754 <name>orientation</name>
755 <enum>Vertical</enum> 755 <enum>Vertical</enum>
756 </property> 756 </property>
757 <property stdset="1"> 757 <property stdset="1">
758 <name>sizeType</name> 758 <name>sizeType</name>
759 <enum>Expanding</enum> 759 <enum>Expanding</enum>
760 </property> 760 </property>
761 <property> 761 <property>
762 <name>sizeHint</name> 762 <name>sizeHint</name>
763 <size> 763 <size>
764 <width>20</width> 764 <width>20</width>
765 <height>20</height> 765 <height>20</height>
766 </size> 766 </size>
767 </property> 767 </property>
768 </spacer> 768 </spacer>
769 <widget> 769 <widget>
770 <class>QGroupBox</class> 770 <class>QGroupBox</class>
771 <property stdset="1"> 771 <property stdset="1">
772 <name>name</name> 772 <name>name</name>
773 <cstring>GroupBox4_2</cstring> 773 <cstring>GroupBox4_2</cstring>
774 </property> 774 </property>
775 <property stdset="1"> 775 <property stdset="1">
776 <name>enabled</name>
777 <bool>false</bool>
778 </property>
779 <property stdset="1">
776 <name>title</name> 780 <name>title</name>
777 <string>Action On Detecting</string> 781 <string>Action On Detecting</string>
778 </property> 782 </property>
779 <grid> 783 <grid>
780 <property stdset="1"> 784 <property stdset="1">
781 <name>margin</name> 785 <name>margin</name>
782 <number>11</number> 786 <number>11</number>
783 </property> 787 </property>
784 <property stdset="1"> 788 <property stdset="1">
785 <name>spacing</name> 789 <name>spacing</name>
786 <number>6</number> 790 <number>6</number>
787 </property> 791 </property>
788 <widget row="1" column="0" > 792 <widget row="1" column="0" >
789 <class>QLabel</class> 793 <class>QLabel</class>
790 <property stdset="1"> 794 <property stdset="1">
791 <name>name</name> 795 <name>name</name>
792 <cstring>TextLabel2</cstring> 796 <cstring>TextLabel2</cstring>
793 </property> 797 </property>
794 <property stdset="1"> 798 <property stdset="1">
795 <name>text</name> 799 <name>text</name>
796 <string>New Wireless Station</string> 800 <string>New Wireless Station</string>
797 </property> 801 </property>
798 </widget> 802 </widget>
799 <widget row="0" column="0" > 803 <widget row="0" column="0" >
@@ -835,49 +839,49 @@
835 <cstring>TextLabel3</cstring> 839 <cstring>TextLabel3</cstring>
836 </property> 840 </property>
837 <property stdset="1"> 841 <property stdset="1">
838 <name>text</name> 842 <name>text</name>
839 <string>New Station</string> 843 <string>New Station</string>
840 </property> 844 </property>
841 </widget> 845 </widget>
842 </grid> 846 </grid>
843 </widget> 847 </widget>
844 </vbox> 848 </vbox>
845 </widget> 849 </widget>
846 <widget> 850 <widget>
847 <class>QWidget</class> 851 <class>QWidget</class>
848 <property stdset="1"> 852 <property stdset="1">
849 <name>name</name> 853 <name>name</name>
850 <cstring>tab</cstring> 854 <cstring>tab</cstring>
851 </property> 855 </property>
852 <attribute> 856 <attribute>
853 <name>title</name> 857 <name>title</name>
854 <string>Intrusion</string> 858 <string>Intrusion</string>
855 </attribute> 859 </attribute>
856 <grid> 860 <grid>
857 <property stdset="1"> 861 <property stdset="1">
858 <name>margin</name> 862 <name>margin</name>
859 <number>11</number> 863 <number>6</number>
860 </property> 864 </property>
861 <property stdset="1"> 865 <property stdset="1">
862 <name>spacing</name> 866 <name>spacing</name>
863 <number>6</number> 867 <number>6</number>
864 </property> 868 </property>
865 <widget row="1" column="0" > 869 <widget row="1" column="0" >
866 <class>QGroupBox</class> 870 <class>QGroupBox</class>
867 <property stdset="1"> 871 <property stdset="1">
868 <name>name</name> 872 <name>name</name>
869 <cstring>GroupBox3</cstring> 873 <cstring>GroupBox3</cstring>
870 </property> 874 </property>
871 <property stdset="1"> 875 <property stdset="1">
872 <name>enabled</name> 876 <name>enabled</name>
873 <bool>false</bool> 877 <bool>false</bool>
874 </property> 878 </property>
875 <property stdset="1"> 879 <property stdset="1">
876 <name>title</name> 880 <name>title</name>
877 <string>Link Level</string> 881 <string>Link Level</string>
878 </property> 882 </property>
879 <grid> 883 <grid>
880 <property stdset="1"> 884 <property stdset="1">
881 <name>margin</name> 885 <name>margin</name>
882 <number>11</number> 886 <number>11</number>
883 </property> 887 </property>
@@ -1045,208 +1049,220 @@
1045 </property> 1049 </property>
1046 <property stdset="1"> 1050 <property stdset="1">
1047 <name>editable</name> 1051 <name>editable</name>
1048 <bool>true</bool> 1052 <bool>true</bool>
1049 </property> 1053 </property>
1050 <property stdset="1"> 1054 <property stdset="1">
1051 <name>currentItem</name> 1055 <name>currentItem</name>
1052 <number>0</number> 1056 <number>0</number>
1053 </property> 1057 </property>
1054 </widget> 1058 </widget>
1055 </grid> 1059 </grid>
1056 </widget> 1060 </widget>
1057 </grid> 1061 </grid>
1058 </widget> 1062 </widget>
1059 <widget> 1063 <widget>
1060 <class>QWidget</class> 1064 <class>QWidget</class>
1061 <property stdset="1"> 1065 <property stdset="1">
1062 <name>name</name> 1066 <name>name</name>
1063 <cstring>tab</cstring> 1067 <cstring>tab</cstring>
1064 </property> 1068 </property>
1065 <attribute> 1069 <attribute>
1066 <name>title</name> 1070 <name>title</name>
1067 <string>GPS</string> 1071 <string>GPS</string>
1068 </attribute> 1072 </attribute>
1069 <widget> 1073 <grid>
1070 <class>QLayoutWidget</class>
1071 <property stdset="1"> 1074 <property stdset="1">
1072 <name>name</name> 1075 <name>margin</name>
1073 <cstring>Layout1</cstring> 1076 <number>5</number>
1074 </property> 1077 </property>
1075 <property stdset="1"> 1078 <property stdset="1">
1076 <name>geometry</name> 1079 <name>spacing</name>
1077 <rect> 1080 <number>4</number>
1078 <x>10</x>
1079 <y>40</y>
1080 <width>216</width>
1081 <height>27</height>
1082 </rect>
1083 </property> 1081 </property>
1084 <hbox> 1082 <widget row="0" column="0" >
1085 <property stdset="1"> 1083 <class>QLayoutWidget</class>
1086 <name>margin</name>
1087 <number>0</number>
1088 </property>
1089 <property stdset="1"> 1084 <property stdset="1">
1090 <name>spacing</name> 1085 <name>name</name>
1091 <number>6</number> 1086 <cstring>Layout6</cstring>
1092 </property> 1087 </property>
1093 <widget> 1088 <vbox>
1094 <class>QLabel</class>
1095 <property stdset="1"> 1089 <property stdset="1">
1096 <name>name</name> 1090 <name>margin</name>
1097 <cstring>TextLabel1_4</cstring> 1091 <number>0</number>
1098 </property> 1092 </property>
1099 <property stdset="1"> 1093 <property stdset="1">
1100 <name>text</name> 1094 <name>spacing</name>
1101 <string>Host</string> 1095 <number>6</number>
1102 </property> 1096 </property>
1103 </widget> 1097 <widget>
1104 <widget> 1098 <class>QCheckBox</class>
1105 <class>QComboBox</class> 1099 <property stdset="1">
1106 <item> 1100 <name>name</name>
1107 <property> 1101 <cstring>enableGPS</cstring>
1102 </property>
1103 <property stdset="1">
1108 <name>text</name> 1104 <name>text</name>
1109 <string>localhost</string> 1105 <string>Enable GPS logging w/ gpsd</string>
1110 </property> 1106 </property>
1111 </item> 1107 </widget>
1112 <property stdset="1"> 1108 <widget>
1113 <name>name</name> 1109 <class>QLayoutWidget</class>
1114 <cstring>gpsdHost</cstring> 1110 <property stdset="1">
1115 </property> 1111 <name>name</name>
1116 <property stdset="1"> 1112 <cstring>Layout1</cstring>
1117 <name>enabled</name> 1113 </property>
1118 <bool>false</bool> 1114 <hbox>
1119 </property> 1115 <property stdset="1">
1120 <property stdset="1"> 1116 <name>margin</name>
1121 <name>editable</name> 1117 <number>0</number>
1122 <bool>true</bool> 1118 </property>
1123 </property> 1119 <property stdset="1">
1124 <property stdset="1"> 1120 <name>spacing</name>
1125 <name>currentItem</name> 1121 <number>6</number>
1126 <number>0</number> 1122 </property>
1127 </property> 1123 <widget>
1128 </widget> 1124 <class>QLabel</class>
1129 <widget> 1125 <property stdset="1">
1130 <class>QLabel</class> 1126 <name>name</name>
1131 <property stdset="1"> 1127 <cstring>TextLabel1_4</cstring>
1132 <name>name</name> 1128 </property>
1133 <cstring>TextLabel2_2</cstring> 1129 <property stdset="1">
1134 </property> 1130 <name>text</name>
1135 <property stdset="1"> 1131 <string>Host</string>
1136 <name>text</name> 1132 </property>
1137 <string>:</string> 1133 </widget>
1138 </property> 1134 <widget>
1139 </widget> 1135 <class>QComboBox</class>
1140 <widget> 1136 <item>
1141 <class>QSpinBox</class> 1137 <property>
1142 <property stdset="1"> 1138 <name>text</name>
1143 <name>name</name> 1139 <string>localhost</string>
1144 <cstring>gpsdPort</cstring> 1140 </property>
1145 </property> 1141 </item>
1146 <property stdset="1"> 1142 <property stdset="1">
1147 <name>enabled</name> 1143 <name>name</name>
1148 <bool>false</bool> 1144 <cstring>gpsdHost</cstring>
1149 </property> 1145 </property>
1150 <property stdset="1"> 1146 <property stdset="1">
1151 <name>maxValue</name> 1147 <name>enabled</name>
1152 <number>65535</number> 1148 <bool>false</bool>
1153 </property> 1149 </property>
1154 <property stdset="1"> 1150 <property stdset="1">
1155 <name>minValue</name> 1151 <name>editable</name>
1156 <number>1024</number> 1152 <bool>true</bool>
1157 </property> 1153 </property>
1158 <property stdset="1"> 1154 <property stdset="1">
1159 <name>value</name> 1155 <name>currentItem</name>
1160 <number>2947</number> 1156 <number>0</number>
1161 </property> 1157 </property>
1162 </widget> 1158 </widget>
1163 </hbox> 1159 <widget>
1164 </widget> 1160 <class>QLabel</class>
1165 <widget> 1161 <property stdset="1">
1166 <class>QLineEdit</class> 1162 <name>name</name>
1167 <property stdset="1"> 1163 <cstring>TextLabel2_2</cstring>
1168 <name>name</name> 1164 </property>
1169 <cstring>commandGPS</cstring> 1165 <property stdset="1">
1170 </property> 1166 <name>text</name>
1171 <property stdset="1"> 1167 <string>:</string>
1172 <name>enabled</name> 1168 </property>
1173 <bool>false</bool> 1169 </widget>
1174 </property> 1170 <widget>
1175 <property stdset="1"> 1171 <class>QSpinBox</class>
1176 <name>geometry</name> 1172 <property stdset="1">
1177 <rect> 1173 <name>name</name>
1178 <x>10</x> 1174 <cstring>gpsdPort</cstring>
1179 <y>110</y> 1175 </property>
1180 <width>210</width> 1176 <property stdset="1">
1181 <height>22</height> 1177 <name>enabled</name>
1182 </rect> 1178 <bool>false</bool>
1183 </property> 1179 </property>
1184 <property stdset="1"> 1180 <property stdset="1">
1185 <name>text</name> 1181 <name>maxValue</name>
1186 <string>gpsd -p /dev/ttyS3 -s 57600</string> 1182 <number>65535</number>
1187 </property> 1183 </property>
1188 </widget> 1184 <property stdset="1">
1189 <widget> 1185 <name>minValue</name>
1190 <class>QCheckBox</class> 1186 <number>1024</number>
1191 <property stdset="1"> 1187 </property>
1192 <name>name</name> 1188 <property stdset="1">
1193 <cstring>enableGPS</cstring> 1189 <name>value</name>
1194 </property> 1190 <number>2947</number>
1195 <property stdset="1"> 1191 </property>
1196 <name>geometry</name> 1192 </widget>
1197 <rect> 1193 </hbox>
1198 <x>10</x> 1194 </widget>
1199 <y>10</y> 1195 <widget>
1200 <width>199</width> 1196 <class>QCheckBox</class>
1201 <height>21</height> 1197 <property stdset="1">
1202 </rect> 1198 <name>name</name>
1203 </property> 1199 <cstring>startGPS</cstring>
1204 <property stdset="1"> 1200 </property>
1205 <name>text</name> 1201 <property stdset="1">
1206 <string>Enable GPS logging w/ gpsd</string> 1202 <name>text</name>
1207 </property> 1203 <string>Start gpsd on localhost</string>
1208 </widget> 1204 </property>
1209 <widget> 1205 </widget>
1210 <class>QCheckBox</class> 1206 <widget>
1211 <property stdset="1"> 1207 <class>QLineEdit</class>
1212 <name>name</name> 1208 <property stdset="1">
1213 <cstring>startGPS</cstring> 1209 <name>name</name>
1214 </property> 1210 <cstring>commandGPS</cstring>
1215 <property stdset="1"> 1211 </property>
1216 <name>geometry</name> 1212 <property stdset="1">
1217 <rect> 1213 <name>enabled</name>
1218 <x>10</x> 1214 <bool>false</bool>
1219 <y>80</y> 1215 </property>
1220 <width>171</width> 1216 <property stdset="1">
1221 <height>21</height> 1217 <name>text</name>
1222 </rect> 1218 <string>gpsd -p /dev/ttyS3 -s 57600</string>
1223 </property> 1219 </property>
1224 <property stdset="1"> 1220 </widget>
1225 <name>text</name> 1221 <spacer>
1226 <string>Start gpsd on localhost</string> 1222 <property>
1227 </property> 1223 <name>name</name>
1228 </widget> 1224 <cstring>Spacer4_2</cstring>
1225 </property>
1226 <property stdset="1">
1227 <name>orientation</name>
1228 <enum>Vertical</enum>
1229 </property>
1230 <property stdset="1">
1231 <name>sizeType</name>
1232 <enum>Expanding</enum>
1233 </property>
1234 <property>
1235 <name>sizeHint</name>
1236 <size>
1237 <width>20</width>
1238 <height>20</height>
1239 </size>
1240 </property>
1241 </spacer>
1242 </vbox>
1243 </widget>
1244 </grid>
1229 </widget> 1245 </widget>
1230 </widget> 1246 </widget>
1231 </grid> 1247 </grid>
1232</widget> 1248</widget>
1233<customwidgets> 1249<customwidgets>
1234 <customwidget> 1250 <customwidget>
1235 <class>ProtocolListView</class> 1251 <class>ProtocolListView</class>
1236 <header location="local">protolistview.h</header> 1252 <header location="local">protolistview.h</header>
1237 <sizehint> 1253 <sizehint>
1238 <width>100</width> 1254 <width>100</width>
1239 <height>100</height> 1255 <height>100</height>
1240 </sizehint> 1256 </sizehint>
1241 <container>0</container> 1257 <container>0</container>
1242 <sizepolicy> 1258 <sizepolicy>
1243 <hordata>3</hordata> 1259 <hordata>3</hordata>
1244 <verdata>3</verdata> 1260 <verdata>3</verdata>
1245 </sizepolicy> 1261 </sizepolicy>
1246 <pixmap>image0</pixmap> 1262 <pixmap>image0</pixmap>
1247 </customwidget> 1263 </customwidget>
1248</customwidgets> 1264</customwidgets>
1249<images> 1265<images>
1250 <image> 1266 <image>
1251 <name>image0</name> 1267 <name>image0</name>
1252 <data format="XPM.GZ" length="646">789c6dd2c10ac2300c00d07bbf2234b7229d1be245fc04c5a3201e4615f430059d0711ff5ddb2e6bb236ec90eed134cb5a19d8ef36602af5ecdbfeeac05dda0798d3abebde87e3faa374d3807fa0d633a52d38d8de6f679fe33fc776e196f53cd010188256a3600a292882096246517815ca99884606e18044a3a40d91824820924265a7923a2e8bcd05f33db1173e002913175f2a6be6d3294871a2d95fa00e8a94ee017b69d339d90df1e77c57ea072ede6758</data> 1268 <data format="XPM.GZ" length="646">789c6dd2c10ac2300c00d07bbf2234b7229d1be245fc04c5a3201e4615f430059d0711ff5ddb2e6bb236ec90eed134cb5a19d8ef36602af5ecdbfeeac05dda0798d3abebde87e3faa374d3807fa0d633a52d38d8de6f679fe33fc776e196f53cd010188256a3600a292882096246517815ca99884606e18044a3a40d91824820924265a7923a2e8bcd05f33db1173e002913175f2a6be6d3294871a2d95fa00e8a94ee017b69d339d90df1e77c57ea072ede6758</data>
diff --git a/noncore/net/wellenreiter/gui/mainwindow.cpp b/noncore/net/wellenreiter/gui/mainwindow.cpp
index bb46dd7..ca9851c 100644
--- a/noncore/net/wellenreiter/gui/mainwindow.cpp
+++ b/noncore/net/wellenreiter/gui/mainwindow.cpp
@@ -401,58 +401,60 @@ void WellenreiterMainWindow::uploadSession()
401 accept->setAutoDefault( true ); 401 accept->setAutoDefault( true );
402 from->setText( "WL II User" ); 402 from->setText( "WL II User" );
403 location->setText( "WL II Location" ); 403 location->setText( "WL II Location" );
404 comments->setText( "No Comments." ); 404 comments->setText( "No Comments." );
405 connect( accept, SIGNAL( clicked() ), d, SLOT( accept() ) ); 405 connect( accept, SIGNAL( clicked() ), d, SLOT( accept() ) );
406 connect( reject, SIGNAL( clicked() ), d, SLOT( reject() ) ); 406 connect( reject, SIGNAL( clicked() ), d, SLOT( reject() ) );
407 int result = d->exec(); 407 int result = d->exec();
408 408
409 if ( !result ) 409 if ( !result )
410 { 410 {
411 qDebug( "Session upload cancelled :(" ); 411 qDebug( "Session upload cancelled :(" );
412 return; 412 return;
413 } 413 }
414 414
415 qDebug( "Starting upload..." ); 415 qDebug( "Starting upload..." );
416 416
417 struct sockaddr_in raddr; 417 struct sockaddr_in raddr;
418 struct hostent *rhost_info; 418 struct hostent *rhost_info;
419 int sock = -1; 419 int sock = -1;
420 bool ok = false; 420 bool ok = false;
421 421
422 rhost_info = (struct hostent *) ::gethostbyname( CAP_hostname ); 422 rhost_info = (struct hostent *) ::gethostbyname( CAP_hostname );
423 if ( rhost_info ) 423 if ( rhost_info )
424 { 424 {
425 if ( !QFile::exists( "/var/log/dump.wellenreiter" ) ) 425
426
427 if ( !QFile::exists( mw->captureFileName() ) )
426 { 428 {
427 QMessageBox::warning( 0, tr( "Error" ), tr( "<p>Logfile doesn't exist</p>") ); 429 QMessageBox::warning( 0, tr( "Error" ), tr( "<p>Logfile '%1' doesn't exist</p>").arg( mw->captureFileName() ) );
428 return; 430 return;
429 } 431 }
430 432
431 QFile f( "/var/log/dump.wellenreiter" ); 433 QFile f( mw->captureFileName() );
432 if ( !f.open( IO_ReadOnly ) ) 434 if ( !f.open( IO_ReadOnly ) )
433 { 435 {
434 QMessageBox::warning( 0, tr( "Error" ), tr( "<p>Can't open Logfile</p>") ); 436 QMessageBox::warning( 0, tr( "Error" ), tr( "<p>Can't open Logfile '%1'</p>").arg( mw->captureFileName() ) );
435 return; 437 return;
436 } 438 }
437 439
438 int content_length = f.size(); 440 int content_length = f.size();
439 441
440 ::memset( &raddr, 0, sizeof (struct sockaddr_in) ); 442 ::memset( &raddr, 0, sizeof (struct sockaddr_in) );
441 ::memcpy( &raddr. sin_addr, rhost_info-> h_addr, rhost_info-> h_length ); 443 ::memcpy( &raddr. sin_addr, rhost_info-> h_addr, rhost_info-> h_length );
442 raddr.sin_family = rhost_info-> h_addrtype; 444 raddr.sin_family = rhost_info-> h_addrtype;
443 raddr.sin_port = htons ( 80 ); 445 raddr.sin_port = htons ( 80 );
444 446
445 sock = ::socket( AF_INET, SOCK_STREAM, 0 ); 447 sock = ::socket( AF_INET, SOCK_STREAM, 0 );
446 448
447 if ( sock >= 0 ) 449 if ( sock >= 0 )
448 { 450 {
449 if ( ::connect ( sock, (struct sockaddr *) & raddr, sizeof (struct sockaddr)) >= 0 ) 451 if ( ::connect ( sock, (struct sockaddr *) & raddr, sizeof (struct sockaddr)) >= 0 )
450 { 452 {
451 QString header; 453 QString header;
452 QString content; 454 QString content;
453 QString preambel; 455 QString preambel;
454 456
455 header = "" 457 header = ""
456 "POST /projects/capturedump.spy HTTP/1.1\r\n" 458 "POST /projects/capturedump.spy HTTP/1.1\r\n"
457 "Host: www.vanille.de\r\n" 459 "Host: www.vanille.de\r\n"
458 "User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031010 Galeon/1.3.10\r\n" 460 "User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031010 Galeon/1.3.10\r\n"
@@ -460,58 +462,59 @@ void WellenreiterMainWindow::uploadSession()
460 "Accept-Language: en\r\n" 462 "Accept-Language: en\r\n"
461 "Accept-Encoding: gzip, deflate, compress;q=0.9\r\n" 463 "Accept-Encoding: gzip, deflate, compress;q=0.9\r\n"
462 "Accept-Charset: us-ascii,utf-8;q=0.7,*;q=0.7\r\n" 464 "Accept-Charset: us-ascii,utf-8;q=0.7,*;q=0.7\r\n"
463 "Keep-Alive: 300\r\n" 465 "Keep-Alive: 300\r\n"
464 "Connection: keep-alive\r\n" 466 "Connection: keep-alive\r\n"
465 "Referer: http://www.vanille.de/projects/capturedump.spy\r\n" 467 "Referer: http://www.vanille.de/projects/capturedump.spy\r\n"
466 "Content-Type: multipart/form-data; boundary=---------------------------97267758015830030481215568065\r\n" 468 "Content-Type: multipart/form-data; boundary=---------------------------97267758015830030481215568065\r\n"
467 "Content-Length: %1\r\n" 469 "Content-Length: %1\r\n"
468 "\r\n"; 470 "\r\n";
469 471
470 content = "" 472 content = ""
471 "-----------------------------97267758015830030481215568065\r\n" 473 "-----------------------------97267758015830030481215568065\r\n"
472 "Content-Disposition: form-data; name=\"Name\"\r\n" 474 "Content-Disposition: form-data; name=\"Name\"\r\n"
473 "\r\n" 475 "\r\n"
474 "%1\r\n" 476 "%1\r\n"
475 "-----------------------------97267758015830030481215568065\r\n" 477 "-----------------------------97267758015830030481215568065\r\n"
476 "Content-Disposition: form-data; name=\"Location\"\r\n" 478 "Content-Disposition: form-data; name=\"Location\"\r\n"
477 "\r\n" 479 "\r\n"
478 "%2\r\n" 480 "%2\r\n"
479 "-----------------------------97267758015830030481215568065\r\n" 481 "-----------------------------97267758015830030481215568065\r\n"
480 "Content-Disposition: form-data; name=\"Comments\"\r\n" 482 "Content-Disposition: form-data; name=\"Comments\"\r\n"
481 "\r\n" 483 "\r\n"
482 "%3\r\n" 484 "%3\r\n"
483 "-----------------------------97267758015830030481215568065\r\n" 485 "-----------------------------97267758015830030481215568065\r\n"
484 "Content-Disposition: form-data; name=\"upfile\"; filename=\"/var/log/dump.wellenreiter\"\r\n" 486 "Content-Disposition: form-data; name=\"upfile\"; filename=\"%4\"\r\n"
485 "Content-Type: application/octet-stream\r\n" 487 "Content-Type: application/octet-stream\r\n"
486 "\r\n"; 488 "\r\n";
487 489
488 preambel = "" 490 preambel = ""
489 "\r\n-----------------------------97267758015830030481215568065--\r\n"; 491 "\r\n-----------------------------97267758015830030481215568065--\r\n";
490 492
491 content = content.arg( from->text().isEmpty() ? QString( "Anonymous Wellenreiter II User" ) : from->text() ); 493 content = content.arg( from->text().isEmpty() ? QString( "Anonymous Wellenreiter II User" ) : from->text() );
492 content = content.arg( location->text().isEmpty() ? QString( "Anonymous Wellenreiter II Location" ) : location->text() ); 494 content = content.arg( location->text().isEmpty() ? QString( "Anonymous Wellenreiter II Location" ) : location->text() );
493 content = content.arg( comments->text().isEmpty() ? QString( "Anonymous Wellenreiter II Comments" ) : comments->text() ); 495 content = content.arg( comments->text().isEmpty() ? QString( "Anonymous Wellenreiter II Comments" ) : comments->text() );
496 content = content.arg( mw->captureFileName() );
494 497
495 header = header.arg( QString::number( content.length() + f.size() + preambel.length() ) ); 498 header = header.arg( QString::number( content.length() + f.size() + preambel.length() ) );
496 499
497 // write header 500 // write header
498 501
499 const char* ascii = header.latin1(); 502 const char* ascii = header.latin1();
500 uint ascii_len = ::strlen( ascii ); 503 uint ascii_len = ::strlen( ascii );
501 ::write ( sock, ascii, ascii_len ); 504 ::write ( sock, ascii, ascii_len );
502 505
503 // write fixed content 506 // write fixed content
504 507
505 ascii = content.latin1(); 508 ascii = content.latin1();
506 ascii_len = ::strlen( ascii ); 509 ascii_len = ::strlen( ascii );
507 ::write ( sock, ascii, ascii_len ); 510 ::write ( sock, ascii, ascii_len );
508 511
509 // write variable content 512 // write variable content
510 513
511 char ch; 514 char ch;
512 while ( !f.atEnd() ) 515 while ( !f.atEnd() )
513 { 516 {
514 f.readBlock( &ch, 1 ); 517 f.readBlock( &ch, 1 );
515 ::write ( sock, &ch, 1 ); 518 ::write ( sock, &ch, 1 );
516 } 519 }
517 520
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp
index ec89f1e..9255a6d 100644
--- a/noncore/net/wellenreiter/gui/wellenreiter.cpp
+++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp
@@ -486,49 +486,48 @@ void Wellenreiter::startClicked()
486 486
487 // switch device into monitor mode 487 // switch device into monitor mode
488 if ( cardtype < DEVTYPE_FILE ) 488 if ( cardtype < DEVTYPE_FILE )
489 { 489 {
490 if ( cardtype != DEVTYPE_MANUAL ) 490 if ( cardtype != DEVTYPE_MANUAL )
491 iface->setMode( "monitor" ); 491 iface->setMode( "monitor" );
492 if ( iface->mode() != "monitor" ) 492 if ( iface->mode() != "monitor" )
493 { 493 {
494 if ( QMessageBox::warning( this, "Wellenreiter II", 494 if ( QMessageBox::warning( this, "Wellenreiter II",
495 tr( "Can't set interface '%1'\ninto monitor mode:\n" ).arg( iface->name() ) + strerror( errno ) + 495 tr( "Can't set interface '%1'\ninto monitor mode:\n" ).arg( iface->name() ) + strerror( errno ) +
496 tr( "\nContinue with limited functionality?" ), QMessageBox::Yes, QMessageBox::No ) == QMessageBox::No ) 496 tr( "\nContinue with limited functionality?" ), QMessageBox::Yes, QMessageBox::No ) == QMessageBox::No )
497 return; 497 return;
498 } 498 }
499 } 499 }
500 500
501 // open GPS device 501 // open GPS device
502 if ( configwindow->enableGPS->isChecked() ) 502 if ( configwindow->enableGPS->isChecked() )
503 { 503 {
504 qDebug( "Wellenreiter:GPS enabled @ %s:%d", (const char*) configwindow->gpsdHost->currentText(), configwindow->gpsdPort->value() ); 504 qDebug( "Wellenreiter:GPS enabled @ %s:%d", (const char*) configwindow->gpsdHost->currentText(), configwindow->gpsdPort->value() );
505 gps->open( configwindow->gpsdHost->currentText(), configwindow->gpsdPort->value() ); 505 gps->open( configwindow->gpsdHost->currentText(), configwindow->gpsdPort->value() );
506 } 506 }
507 507
508 // open pcap and start sniffing 508 // open pcap and start sniffing
509 509
510 QString dumpname;
511 if ( configwindow->writeCaptureFile->isChecked() ) // write to a user specified capture file? 510 if ( configwindow->writeCaptureFile->isChecked() ) // write to a user specified capture file?
512 { 511 {
513 dumpname = configwindow->captureFileName->text(); 512 dumpname = configwindow->captureFileName->text();
514 if ( dumpname.isEmpty() ) dumpname = "captureFile"; 513 if ( dumpname.isEmpty() ) dumpname = "captureFile";
515 dumpname.append( '-' ); 514 dumpname.append( '-' );
516 dumpname.append( QTime::currentTime().toString().replace( QRegExp( ":" ), "-" ) ); 515 dumpname.append( QTime::currentTime().toString().replace( QRegExp( ":" ), "-" ) );
517 dumpname.append( ".wellenreiter" ); 516 dumpname.append( ".wellenreiter" );
518 } 517 }
519 else // write it anyway ;) 518 else // write it anyway ;)
520 { 519 {
521 dumpname = "/var/log/dump.wellenreiter"; 520 dumpname = "/var/log/dump.wellenreiter";
522 } 521 }
523 522
524 if ( cardtype != DEVTYPE_FILE ) 523 if ( cardtype != DEVTYPE_FILE )
525 pcap->open( interface ); 524 pcap->open( interface );
526 else 525 else
527 pcap->open( QFile( interface ) ); 526 pcap->open( QFile( interface ) );
528 527
529 qDebug( "Wellenreiter:: dumping to %s", (const char*) dumpname ); 528 qDebug( "Wellenreiter:: dumping to %s", (const char*) dumpname );
530 pcap->openDumpFile( dumpname ); 529 pcap->openDumpFile( dumpname );
531 530
532 if ( !pcap->isOpen() ) 531 if ( !pcap->isOpen() )
533 { 532 {
534 QMessageBox::warning( this, "Wellenreiter II", tr( "Can't open packet capturer for\n'%1':\n" ).arg( 533 QMessageBox::warning( this, "Wellenreiter II", tr( "Can't open packet capturer for\n'%1':\n" ).arg(
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.h b/noncore/net/wellenreiter/gui/wellenreiter.h
index d882500..58dd1fd 100644
--- a/noncore/net/wellenreiter/gui/wellenreiter.h
+++ b/noncore/net/wellenreiter/gui/wellenreiter.h
@@ -30,73 +30,75 @@ class OWaveLanManagementPacket;
30class OWaveLanDataPacket; 30class OWaveLanDataPacket;
31class OEthernetPacket; 31class OEthernetPacket;
32class OARPPacket; 32class OARPPacket;
33class OMacAddress; 33class OMacAddress;
34class OIPPacket; 34class OIPPacket;
35class OPacketCapturer; 35class OPacketCapturer;
36class OWirelessNetworkInterface; 36class OWirelessNetworkInterface;
37class WellenreiterConfigWindow; 37class WellenreiterConfigWindow;
38class MLogWindow; 38class MLogWindow;
39class MHexWindow; 39class MHexWindow;
40class GPS; 40class GPS;
41 41
42class Wellenreiter : public WellenreiterBase { 42class Wellenreiter : public WellenreiterBase {
43 Q_OBJECT 43 Q_OBJECT
44 44
45 public: 45 public:
46 Wellenreiter( QWidget* parent = 0 ); 46 Wellenreiter( QWidget* parent = 0 );
47 ~Wellenreiter(); 47 ~Wellenreiter();
48 48
49 void setConfigWindow( WellenreiterConfigWindow* cw ); 49 void setConfigWindow( WellenreiterConfigWindow* cw );
50 MScanListView* netView() const { return netview; }; 50 MScanListView* netView() const { return netview; };
51 MLogWindow* logWindow() const { return logwindow; }; 51 MLogWindow* logWindow() const { return logwindow; };
52 MHexWindow* hexWindow() const { return hexwindow; }; 52 MHexWindow* hexWindow() const { return hexwindow; };
53 bool isDaemonRunning() const { return sniffing; }; 53 bool isDaemonRunning() const { return sniffing; };
54 QString captureFileName() const { return dumpname; };
54 55
55 public: 56 public:
56 bool sniffing; 57 bool sniffing;
57 58
58 protected: 59 protected:
59 virtual void timerEvent( QTimerEvent* ); 60 virtual void timerEvent( QTimerEvent* );
60 61
61 public slots: 62 public slots:
62 void initialTimer(); 63 void initialTimer();
63 64
64 void channelHopped(int); 65 void channelHopped(int);
65 void receivePacket(OPacket*); 66 void receivePacket(OPacket*);
66 void startClicked(); 67 void startClicked();
67 void stopClicked(); 68 void stopClicked();
68 69
69 void joinNetwork(const QString&,const QString&,int,const QString&); 70 void joinNetwork(const QString&,const QString&,int,const QString&);
70 71
71 signals: 72 signals:
72 void startedSniffing(); 73 void startedSniffing();
73 void stoppedSniffing(); 74 void stoppedSniffing();
74 75
75 private: 76 private:
76 void handleBeacon( OPacket* p, OWaveLanManagementPacket* beacon ); 77 void handleBeacon( OPacket* p, OWaveLanManagementPacket* beacon );
77 void handleWlanData( OPacket* p, OWaveLanDataPacket* data, OMacAddress& from, OMacAddress& to ); 78 void handleWlanData( OPacket* p, OWaveLanDataPacket* data, OMacAddress& from, OMacAddress& to );
78 void handleEthernetData( OPacket* p, OEthernetPacket* data, OMacAddress& from, OMacAddress& to ); 79 void handleEthernetData( OPacket* p, OEthernetPacket* data, OMacAddress& from, OMacAddress& to );
79 void handleARPData( OPacket* p, OARPPacket* arp, OMacAddress& from, OMacAddress& to ); 80 void handleARPData( OPacket* p, OARPPacket* arp, OMacAddress& from, OMacAddress& to );
80 void handleIPData( OPacket* p, OIPPacket* ip, OMacAddress& from, OMacAddress& to ); 81 void handleIPData( OPacket* p, OIPPacket* ip, OMacAddress& from, OMacAddress& to );
81 void handleNotification( OPacket* p ); 82 void handleNotification( OPacket* p );
82 void doAction( const QString& action, const QString& protocol, OPacket* p ); 83 void doAction( const QString& action, const QString& protocol, OPacket* p );
83 QObject* childIfToParse( OPacket* p, const QString& protocol ); 84 QObject* childIfToParse( OPacket* p, const QString& protocol );
84 bool checkDumpPacket( OPacket* p ); 85 bool checkDumpPacket( OPacket* p );
85 86
86 private: 87 private:
87 #ifdef QWS 88 #ifdef QWS
88 OSystem _system; // Opie Operating System identifier 89 OSystem _system; // Opie Operating System identifier
89 #endif 90 #endif
90 91
92 QString dumpname;
91 OWirelessNetworkInterface* iface; 93 OWirelessNetworkInterface* iface;
92 OPacketCapturer* pcap; 94 OPacketCapturer* pcap;
93 WellenreiterConfigWindow* configwindow; 95 WellenreiterConfigWindow* configwindow;
94 GPS* gps; 96 GPS* gps;
95 97
96 //void readConfig(); 98 //void readConfig();
97 //void writeConfig(); 99 //void writeConfig();
98}; 100};
99 101
100 102
101 103
102#endif 104#endif