author | harlekin <harlekin> | 2002-02-15 16:25:32 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-02-15 16:25:32 (UTC) |
commit | 9847b3a997f504e82ff391efe6304d3bb110b617 (patch) (unidiff) | |
tree | 7b28cb45598cba9f1fb595b75127a0b9b4787d2e /core/pim/today/debug | |
parent | 453278dfcc3f9c96862cb69aed21df2597718d2d (diff) | |
download | opie-9847b3a997f504e82ff391efe6304d3bb110b617.zip opie-9847b3a997f504e82ff391efe6304d3bb110b617.tar.gz opie-9847b3a997f504e82ff391efe6304d3bb110b617.tar.bz2 |
initial import
-rw-r--r-- | core/pim/today/debug | 19360 |
1 files changed, 19360 insertions, 0 deletions
diff --git a/core/pim/today/debug b/core/pim/today/debug new file mode 100644 index 0000000..1b19e18 --- a/dev/null +++ b/core/pim/today/debug | |||
@@ -0,0 +1,19360 @@ | |||
1 | # 1 "today.cpp" | ||
2 | |||
3 | # 1 "today.h" 1 | ||
4 | |||
5 | |||
6 | |||
7 | # 1 "todaybase.h" 1 | ||
8 | |||
9 | |||
10 | |||
11 | |||
12 | |||
13 | |||
14 | |||
15 | |||
16 | |||
17 | |||
18 | |||
19 | # 1 "/opt/Qtopia/include/qvariant.h" 1 | ||
20 | |||
21 | |||
22 | |||
23 | |||
24 | |||
25 | |||
26 | |||
27 | |||
28 | |||
29 | |||
30 | |||
31 | |||
32 | |||
33 | |||
34 | |||
35 | |||
36 | |||
37 | |||
38 | |||
39 | |||
40 | |||
41 | |||
42 | |||
43 | |||
44 | |||
45 | |||
46 | |||
47 | |||
48 | |||
49 | |||
50 | |||
51 | |||
52 | |||
53 | |||
54 | |||
55 | |||
56 | |||
57 | |||
58 | |||
59 | |||
60 | |||
61 | # 1 "/opt/Qtopia/include/qstring.h" 1 | ||
62 | |||
63 | |||
64 | |||
65 | |||
66 | |||
67 | |||
68 | |||
69 | |||
70 | |||
71 | |||
72 | |||
73 | |||
74 | |||
75 | |||
76 | |||
77 | |||
78 | |||
79 | |||
80 | |||
81 | |||
82 | |||
83 | |||
84 | |||
85 | |||
86 | |||
87 | |||
88 | |||
89 | |||
90 | |||
91 | |||
92 | |||
93 | |||
94 | |||
95 | |||
96 | |||
97 | |||
98 | |||
99 | |||
100 | |||
101 | |||
102 | |||
103 | |||
104 | # 1 "/opt/Qtopia/include/qcstring.h" 1 | ||
105 | |||
106 | |||
107 | |||
108 | |||
109 | |||
110 | |||
111 | |||
112 | |||
113 | |||
114 | |||
115 | |||
116 | |||
117 | |||
118 | |||
119 | |||
120 | |||
121 | |||
122 | |||
123 | |||
124 | |||
125 | |||
126 | |||
127 | |||
128 | |||
129 | |||
130 | |||
131 | |||
132 | |||
133 | |||
134 | |||
135 | |||
136 | |||
137 | |||
138 | |||
139 | |||
140 | |||
141 | |||
142 | |||
143 | |||
144 | |||
145 | |||
146 | |||
147 | # 1 "/opt/Qtopia/include/qarray.h" 1 | ||
148 | |||
149 | |||
150 | |||
151 | |||
152 | |||
153 | |||
154 | |||
155 | |||
156 | |||
157 | |||
158 | |||
159 | |||
160 | |||
161 | |||
162 | |||
163 | |||
164 | |||
165 | |||
166 | |||
167 | |||
168 | |||
169 | |||
170 | |||
171 | |||
172 | |||
173 | |||
174 | |||
175 | |||
176 | |||
177 | |||
178 | |||
179 | |||
180 | |||
181 | |||
182 | |||
183 | |||
184 | |||
185 | |||
186 | |||
187 | |||
188 | |||
189 | # 1 "/opt/Qtopia/include/qgarray.h" 1 | ||
190 | |||
191 | |||
192 | |||
193 | |||
194 | |||
195 | |||
196 | |||
197 | |||
198 | |||
199 | |||
200 | |||
201 | |||
202 | |||
203 | |||
204 | |||
205 | |||
206 | |||
207 | |||
208 | |||
209 | |||
210 | |||
211 | |||
212 | |||
213 | |||
214 | |||
215 | |||
216 | |||
217 | |||
218 | |||
219 | |||
220 | |||
221 | |||
222 | |||
223 | |||
224 | |||
225 | |||
226 | |||
227 | |||
228 | |||
229 | |||
230 | |||
231 | # 1 "/opt/Qtopia/include/qshared.h" 1 | ||
232 | |||
233 | |||
234 | |||
235 | |||
236 | |||
237 | |||
238 | |||
239 | |||
240 | |||
241 | |||
242 | |||
243 | |||
244 | |||
245 | |||
246 | |||
247 | |||
248 | |||
249 | |||
250 | |||
251 | |||
252 | |||
253 | |||
254 | |||
255 | |||
256 | |||
257 | |||
258 | |||
259 | |||
260 | |||
261 | |||
262 | |||
263 | |||
264 | |||
265 | |||
266 | |||
267 | |||
268 | |||
269 | |||
270 | |||
271 | |||
272 | |||
273 | # 1 "/opt/Qtopia/include/qglobal.h" 1 | ||
274 | |||
275 | |||
276 | |||
277 | |||
278 | |||
279 | |||
280 | |||
281 | |||
282 | |||
283 | |||
284 | |||
285 | |||
286 | |||
287 | |||
288 | |||
289 | |||
290 | |||
291 | |||
292 | |||
293 | |||
294 | |||
295 | |||
296 | |||
297 | |||
298 | |||
299 | |||
300 | |||
301 | |||
302 | |||
303 | |||
304 | |||
305 | |||
306 | |||
307 | |||
308 | |||
309 | |||
310 | |||
311 | |||
312 | |||
313 | |||
314 | |||
315 | |||
316 | |||
317 | |||
318 | |||
319 | |||
320 | |||
321 | |||
322 | |||
323 | |||
324 | |||
325 | |||
326 | |||
327 | |||
328 | |||
329 | |||
330 | |||
331 | |||
332 | |||
333 | |||
334 | |||
335 | |||
336 | |||
337 | |||
338 | |||
339 | |||
340 | |||
341 | |||
342 | |||
343 | |||
344 | |||
345 | |||
346 | |||
347 | # 100 "/opt/Qtopia/include/qglobal.h" | ||
348 | |||
349 | |||
350 | # 138 "/opt/Qtopia/include/qglobal.h" | ||
351 | |||
352 | |||
353 | |||
354 | |||
355 | |||
356 | |||
357 | |||
358 | |||
359 | |||
360 | |||
361 | |||
362 | |||
363 | |||
364 | |||
365 | |||
366 | |||
367 | |||
368 | |||
369 | |||
370 | |||
371 | |||
372 | |||
373 | |||
374 | |||
375 | |||
376 | |||
377 | |||
378 | |||
379 | |||
380 | |||
381 | |||
382 | |||
383 | |||
384 | |||
385 | |||
386 | |||
387 | |||
388 | |||
389 | # 190 "/opt/Qtopia/include/qglobal.h" | ||
390 | |||
391 | |||
392 | |||
393 | |||
394 | |||
395 | |||
396 | |||
397 | |||
398 | |||
399 | |||
400 | |||
401 | |||
402 | |||
403 | |||
404 | |||
405 | |||
406 | |||
407 | # 280 "/opt/Qtopia/include/qglobal.h" | ||
408 | |||
409 | |||
410 | |||
411 | |||
412 | |||
413 | |||
414 | |||
415 | |||
416 | |||
417 | |||
418 | |||
419 | |||
420 | |||
421 | |||
422 | |||
423 | |||
424 | |||
425 | |||
426 | |||
427 | |||
428 | |||
429 | |||
430 | |||
431 | |||
432 | |||
433 | |||
434 | |||
435 | |||
436 | |||
437 | # 323 "/opt/Qtopia/include/qglobal.h" | ||
438 | |||
439 | |||
440 | |||
441 | |||
442 | |||
443 | |||
444 | |||
445 | |||
446 | |||
447 | |||
448 | |||
449 | |||
450 | |||
451 | |||
452 | |||
453 | |||
454 | |||
455 | |||
456 | |||
457 | |||
458 | |||
459 | |||
460 | |||
461 | |||
462 | |||
463 | |||
464 | |||
465 | |||
466 | |||
467 | |||
468 | |||
469 | |||
470 | |||
471 | |||
472 | |||
473 | |||
474 | |||
475 | |||
476 | |||
477 | |||
478 | |||
479 | |||
480 | |||
481 | |||
482 | |||
483 | |||
484 | |||
485 | |||
486 | |||
487 | |||
488 | |||
489 | |||
490 | |||
491 | typedef unsigned charuchar; | ||
492 | typedef unsigned shortushort; | ||
493 | typedef unsigneduint; | ||
494 | typedef unsigned longulong; | ||
495 | typedef char *pchar; | ||
496 | typedef uchar *puchar; | ||
497 | typedef const char *pcchar; | ||
498 | |||
499 | |||
500 | |||
501 | |||
502 | |||
503 | |||
504 | |||
505 | const bool FALSE = 0; | ||
506 | const bool TRUE = !0; | ||
507 | |||
508 | |||
509 | |||
510 | |||
511 | |||
512 | |||
513 | |||
514 | |||
515 | |||
516 | |||
517 | |||
518 | |||
519 | |||
520 | |||
521 | |||
522 | |||
523 | |||
524 | |||
525 | |||
526 | |||
527 | |||
528 | |||
529 | inline int qRound( double d ) | ||
530 | { | ||
531 | return d > 0.0 ? int(d+0.5) : int(d-0.5); | ||
532 | } | ||
533 | |||
534 | |||
535 | |||
536 | |||
537 | |||
538 | |||
539 | |||
540 | |||
541 | |||
542 | typedef signed char INT8; | ||
543 | typedef unsigned char UINT8; | ||
544 | typedef short INT16; | ||
545 | typedef unsigned short UINT16; | ||
546 | typedef int INT32; | ||
547 | typedef unsigned int UINT32; | ||
548 | |||
549 | |||
550 | typedef signed char Q_INT8; | ||
551 | typedef unsigned char Q_UINT8; | ||
552 | typedef short Q_INT16; | ||
553 | typedef unsigned short Q_UINT16; | ||
554 | typedef int Q_INT32; | ||
555 | typedef unsigned int Q_UINT32; | ||
556 | typedef long Q_INT64; | ||
557 | typedef unsigned long Q_UINT64; | ||
558 | |||
559 | |||
560 | |||
561 | |||
562 | |||
563 | class QDataStream; | ||
564 | |||
565 | |||
566 | |||
567 | |||
568 | |||
569 | |||
570 | |||
571 | |||
572 | # 1 "/opt/Qtopia/include/qfeatures.h" 1 | ||
573 | |||
574 | |||
575 | |||
576 | |||
577 | |||
578 | |||
579 | |||
580 | |||
581 | |||
582 | |||
583 | |||
584 | |||
585 | |||
586 | |||
587 | |||
588 | |||
589 | |||
590 | |||
591 | |||
592 | |||
593 | |||
594 | |||
595 | |||
596 | |||
597 | |||
598 | |||
599 | |||
600 | |||
601 | |||
602 | |||
603 | |||
604 | |||
605 | |||
606 | |||
607 | |||
608 | |||
609 | |||
610 | |||
611 | |||
612 | |||
613 | |||
614 | |||
615 | |||
616 | |||
617 | |||
618 | |||
619 | |||
620 | |||
621 | |||
622 | |||
623 | |||
624 | |||
625 | # 1 "/opt/Qtopia/include/qconfig.h" 1 | ||
626 | |||
627 | |||
628 | |||
629 | |||
630 | |||
631 | |||
632 | |||
633 | |||
634 | |||
635 | |||
636 | |||
637 | |||
638 | |||
639 | |||
640 | |||
641 | |||
642 | |||
643 | |||
644 | |||
645 | |||
646 | |||
647 | |||
648 | |||
649 | |||
650 | |||
651 | |||
652 | |||
653 | |||
654 | |||
655 | |||
656 | |||
657 | |||
658 | |||
659 | |||
660 | |||
661 | |||
662 | |||
663 | |||
664 | |||
665 | |||
666 | |||
667 | |||
668 | |||
669 | |||
670 | |||
671 | |||
672 | |||
673 | |||
674 | |||
675 | |||
676 | |||
677 | |||
678 | |||
679 | |||
680 | |||
681 | |||
682 | |||
683 | |||
684 | |||
685 | |||
686 | |||
687 | |||
688 | |||
689 | |||
690 | |||
691 | |||
692 | |||
693 | |||
694 | |||
695 | |||
696 | |||
697 | |||
698 | |||
699 | |||
700 | |||
701 | |||
702 | |||
703 | |||
704 | |||
705 | |||
706 | |||
707 | |||
708 | |||
709 | |||
710 | |||
711 | |||
712 | |||
713 | |||
714 | |||
715 | |||
716 | |||
717 | |||
718 | |||
719 | |||
720 | |||
721 | |||
722 | |||
723 | |||
724 | |||
725 | |||
726 | |||
727 | # 53 "/opt/Qtopia/include/qfeatures.h" 2 | ||
728 | |||
729 | |||
730 | |||
731 | |||
732 | |||
733 | |||
734 | |||
735 | |||
736 | |||
737 | |||
738 | |||
739 | |||
740 | |||
741 | |||
742 | |||
743 | |||
744 | |||
745 | |||
746 | |||
747 | |||
748 | |||
749 | |||
750 | |||
751 | |||
752 | |||
753 | |||
754 | |||
755 | |||
756 | |||
757 | |||
758 | |||
759 | |||
760 | |||
761 | |||
762 | |||
763 | |||
764 | |||
765 | |||
766 | |||
767 | |||
768 | |||
769 | |||
770 | |||
771 | |||
772 | |||
773 | |||
774 | |||
775 | |||
776 | |||
777 | |||
778 | |||
779 | |||
780 | |||
781 | |||
782 | |||
783 | |||
784 | |||
785 | |||
786 | |||
787 | |||
788 | |||
789 | |||
790 | |||
791 | |||
792 | |||
793 | |||
794 | |||
795 | |||
796 | |||
797 | |||
798 | |||
799 | |||
800 | |||
801 | |||
802 | |||
803 | |||
804 | |||
805 | |||
806 | |||
807 | |||
808 | |||
809 | |||
810 | |||
811 | |||
812 | |||
813 | |||
814 | |||
815 | |||
816 | |||
817 | |||
818 | |||
819 | |||
820 | |||
821 | |||
822 | |||
823 | |||
824 | |||
825 | |||
826 | |||
827 | |||
828 | |||
829 | |||
830 | |||
831 | |||
832 | |||
833 | |||
834 | |||
835 | |||
836 | |||
837 | |||
838 | |||
839 | # 172 "/opt/Qtopia/include/qfeatures.h" | ||
840 | |||
841 | |||
842 | |||
843 | |||
844 | |||
845 | |||
846 | |||
847 | |||
848 | |||
849 | |||
850 | |||
851 | |||
852 | |||
853 | |||
854 | |||
855 | |||
856 | |||
857 | |||
858 | |||
859 | |||
860 | |||
861 | |||
862 | |||
863 | |||
864 | |||
865 | |||
866 | |||
867 | |||
868 | |||
869 | |||
870 | |||
871 | |||
872 | |||
873 | |||
874 | |||
875 | |||
876 | |||
877 | |||
878 | |||
879 | |||
880 | |||
881 | |||
882 | |||
883 | |||
884 | |||
885 | |||
886 | |||
887 | |||
888 | |||
889 | |||
890 | |||
891 | |||
892 | |||
893 | |||
894 | |||
895 | |||
896 | |||
897 | |||
898 | |||
899 | |||
900 | |||
901 | |||
902 | |||
903 | |||
904 | |||
905 | |||
906 | |||
907 | |||
908 | |||
909 | |||
910 | |||
911 | |||
912 | |||
913 | |||
914 | |||
915 | |||
916 | |||
917 | |||
918 | |||
919 | |||
920 | |||
921 | |||
922 | |||
923 | |||
924 | |||
925 | |||
926 | |||
927 | |||
928 | |||
929 | |||
930 | |||
931 | |||
932 | |||
933 | |||
934 | |||
935 | |||
936 | |||
937 | |||
938 | |||
939 | |||
940 | |||
941 | |||
942 | |||
943 | |||
944 | |||
945 | |||
946 | |||
947 | |||
948 | |||
949 | |||
950 | |||
951 | |||
952 | |||
953 | |||
954 | |||
955 | |||
956 | |||
957 | |||
958 | |||
959 | |||
960 | |||
961 | |||
962 | |||
963 | |||
964 | |||
965 | |||
966 | |||
967 | |||
968 | |||
969 | |||
970 | |||
971 | |||
972 | |||
973 | |||
974 | |||
975 | |||
976 | |||
977 | |||
978 | |||
979 | |||
980 | |||
981 | |||
982 | |||
983 | |||
984 | |||
985 | |||
986 | |||
987 | |||
988 | |||
989 | |||
990 | |||
991 | |||
992 | |||
993 | |||
994 | |||
995 | |||
996 | |||
997 | |||
998 | |||
999 | |||
1000 | |||
1001 | |||
1002 | |||
1003 | |||
1004 | |||
1005 | |||
1006 | |||
1007 | |||
1008 | |||
1009 | |||
1010 | |||
1011 | |||
1012 | |||
1013 | |||
1014 | |||
1015 | |||
1016 | |||
1017 | |||
1018 | |||
1019 | |||
1020 | |||
1021 | |||
1022 | |||
1023 | |||
1024 | |||
1025 | |||
1026 | |||
1027 | |||
1028 | |||
1029 | |||
1030 | |||
1031 | |||
1032 | |||
1033 | |||
1034 | |||
1035 | |||
1036 | |||
1037 | |||
1038 | |||
1039 | |||
1040 | |||
1041 | |||
1042 | |||
1043 | |||
1044 | |||
1045 | |||
1046 | |||
1047 | |||
1048 | |||
1049 | |||
1050 | |||
1051 | |||
1052 | |||
1053 | |||
1054 | |||
1055 | |||
1056 | |||
1057 | |||
1058 | |||
1059 | |||
1060 | |||
1061 | |||
1062 | |||
1063 | |||
1064 | |||
1065 | |||
1066 | |||
1067 | |||
1068 | |||
1069 | |||
1070 | |||
1071 | |||
1072 | |||
1073 | |||
1074 | |||
1075 | |||
1076 | |||
1077 | |||
1078 | |||
1079 | |||
1080 | |||
1081 | |||
1082 | |||
1083 | |||
1084 | |||
1085 | |||
1086 | |||
1087 | |||
1088 | |||
1089 | |||
1090 | |||
1091 | |||
1092 | |||
1093 | |||
1094 | |||
1095 | |||
1096 | |||
1097 | |||
1098 | |||
1099 | |||
1100 | |||
1101 | |||
1102 | |||
1103 | |||
1104 | |||
1105 | |||
1106 | |||
1107 | |||
1108 | |||
1109 | |||
1110 | |||
1111 | |||
1112 | |||
1113 | |||
1114 | |||
1115 | |||
1116 | |||
1117 | |||
1118 | |||
1119 | |||
1120 | |||
1121 | |||
1122 | |||
1123 | |||
1124 | |||
1125 | |||
1126 | |||
1127 | |||
1128 | |||
1129 | |||
1130 | |||
1131 | |||
1132 | |||
1133 | |||
1134 | |||
1135 | |||
1136 | |||
1137 | |||
1138 | |||
1139 | |||
1140 | |||
1141 | |||
1142 | |||
1143 | |||
1144 | |||
1145 | |||
1146 | |||
1147 | |||
1148 | |||
1149 | |||
1150 | |||
1151 | |||
1152 | |||
1153 | |||
1154 | |||
1155 | |||
1156 | |||
1157 | |||
1158 | |||
1159 | |||
1160 | |||
1161 | |||
1162 | |||
1163 | |||
1164 | |||
1165 | |||
1166 | |||
1167 | |||
1168 | |||
1169 | |||
1170 | |||
1171 | |||
1172 | |||
1173 | |||
1174 | |||
1175 | |||
1176 | |||
1177 | |||
1178 | |||
1179 | |||
1180 | |||
1181 | |||
1182 | |||
1183 | |||
1184 | |||
1185 | |||
1186 | |||
1187 | |||
1188 | |||
1189 | |||
1190 | |||
1191 | |||
1192 | |||
1193 | |||
1194 | |||
1195 | |||
1196 | |||
1197 | |||
1198 | |||
1199 | |||
1200 | |||
1201 | |||
1202 | |||
1203 | |||
1204 | |||
1205 | |||
1206 | |||
1207 | |||
1208 | |||
1209 | |||
1210 | |||
1211 | |||
1212 | |||
1213 | |||
1214 | |||
1215 | |||
1216 | |||
1217 | |||
1218 | |||
1219 | |||
1220 | |||
1221 | |||
1222 | |||
1223 | |||
1224 | |||
1225 | |||
1226 | |||
1227 | |||
1228 | |||
1229 | |||
1230 | |||
1231 | |||
1232 | |||
1233 | |||
1234 | |||
1235 | |||
1236 | |||
1237 | |||
1238 | |||
1239 | |||
1240 | |||
1241 | |||
1242 | |||
1243 | |||
1244 | |||
1245 | |||
1246 | |||
1247 | |||
1248 | |||
1249 | |||
1250 | |||
1251 | |||
1252 | |||
1253 | |||
1254 | |||
1255 | |||
1256 | |||
1257 | |||
1258 | |||
1259 | # 600 "/opt/Qtopia/include/qfeatures.h" | ||
1260 | |||
1261 | |||
1262 | |||
1263 | |||
1264 | |||
1265 | |||
1266 | |||
1267 | |||
1268 | |||
1269 | |||
1270 | |||
1271 | |||
1272 | |||
1273 | |||
1274 | |||
1275 | |||
1276 | |||
1277 | |||
1278 | |||
1279 | # 628 "/opt/Qtopia/include/qfeatures.h" | ||
1280 | |||
1281 | |||
1282 | |||
1283 | |||
1284 | |||
1285 | |||
1286 | |||
1287 | |||
1288 | |||
1289 | |||
1290 | |||
1291 | |||
1292 | |||
1293 | |||
1294 | |||
1295 | |||
1296 | |||
1297 | |||
1298 | |||
1299 | |||
1300 | |||
1301 | |||
1302 | |||
1303 | |||
1304 | |||
1305 | |||
1306 | |||
1307 | |||
1308 | |||
1309 | |||
1310 | |||
1311 | |||
1312 | |||
1313 | |||
1314 | |||
1315 | |||
1316 | |||
1317 | |||
1318 | |||
1319 | |||
1320 | |||
1321 | |||
1322 | |||
1323 | |||
1324 | |||
1325 | |||
1326 | |||
1327 | |||
1328 | |||
1329 | # 686 "/opt/Qtopia/include/qfeatures.h" | ||
1330 | |||
1331 | |||
1332 | |||
1333 | |||
1334 | |||
1335 | |||
1336 | |||
1337 | |||
1338 | |||
1339 | |||
1340 | |||
1341 | |||
1342 | |||
1343 | |||
1344 | |||
1345 | |||
1346 | |||
1347 | # 720 "/opt/Qtopia/include/qfeatures.h" | ||
1348 | |||
1349 | |||
1350 | |||
1351 | |||
1352 | |||
1353 | |||
1354 | |||
1355 | |||
1356 | |||
1357 | # 738 "/opt/Qtopia/include/qfeatures.h" | ||
1358 | |||
1359 | |||
1360 | |||
1361 | |||
1362 | |||
1363 | |||
1364 | |||
1365 | |||
1366 | |||
1367 | |||
1368 | |||
1369 | |||
1370 | |||
1371 | |||
1372 | |||
1373 | |||
1374 | |||
1375 | |||
1376 | |||
1377 | |||
1378 | |||
1379 | |||
1380 | |||
1381 | |||
1382 | |||
1383 | |||
1384 | |||
1385 | |||
1386 | |||
1387 | |||
1388 | |||
1389 | |||
1390 | |||
1391 | |||
1392 | |||
1393 | |||
1394 | |||
1395 | |||
1396 | |||
1397 | |||
1398 | |||
1399 | |||
1400 | |||
1401 | |||
1402 | |||
1403 | |||
1404 | |||
1405 | |||
1406 | |||
1407 | |||
1408 | |||
1409 | |||
1410 | |||
1411 | |||
1412 | |||
1413 | |||
1414 | |||
1415 | |||
1416 | |||
1417 | |||
1418 | |||
1419 | |||
1420 | |||
1421 | |||
1422 | |||
1423 | |||
1424 | |||
1425 | |||
1426 | |||
1427 | |||
1428 | |||
1429 | |||
1430 | |||
1431 | |||
1432 | |||
1433 | |||
1434 | # 823 "/opt/Qtopia/include/qfeatures.h" | ||
1435 | |||
1436 | |||
1437 | |||
1438 | |||
1439 | |||
1440 | |||
1441 | |||
1442 | |||
1443 | |||
1444 | |||
1445 | |||
1446 | |||
1447 | |||
1448 | |||
1449 | |||
1450 | |||
1451 | |||
1452 | |||
1453 | |||
1454 | |||
1455 | |||
1456 | |||
1457 | |||
1458 | |||
1459 | |||
1460 | |||
1461 | |||
1462 | |||
1463 | |||
1464 | |||
1465 | |||
1466 | |||
1467 | |||
1468 | |||
1469 | |||
1470 | |||
1471 | |||
1472 | |||
1473 | |||
1474 | |||
1475 | |||
1476 | |||
1477 | |||
1478 | |||
1479 | |||
1480 | |||
1481 | |||
1482 | |||
1483 | |||
1484 | |||
1485 | |||
1486 | |||
1487 | |||
1488 | |||
1489 | |||
1490 | |||
1491 | |||
1492 | |||
1493 | |||
1494 | |||
1495 | |||
1496 | |||
1497 | |||
1498 | |||
1499 | |||
1500 | |||
1501 | |||
1502 | |||
1503 | |||
1504 | |||
1505 | |||
1506 | |||
1507 | |||
1508 | |||
1509 | |||
1510 | |||
1511 | |||
1512 | |||
1513 | |||
1514 | |||
1515 | |||
1516 | |||
1517 | |||
1518 | |||
1519 | |||
1520 | |||
1521 | |||
1522 | |||
1523 | |||
1524 | |||
1525 | |||
1526 | |||
1527 | |||
1528 | |||
1529 | |||
1530 | |||
1531 | |||
1532 | |||
1533 | |||
1534 | |||
1535 | |||
1536 | |||
1537 | |||
1538 | |||
1539 | |||
1540 | |||
1541 | |||
1542 | |||
1543 | |||
1544 | |||
1545 | |||
1546 | |||
1547 | |||
1548 | |||
1549 | |||
1550 | |||
1551 | |||
1552 | |||
1553 | |||
1554 | |||
1555 | |||
1556 | |||
1557 | |||
1558 | |||
1559 | |||
1560 | |||
1561 | |||
1562 | |||
1563 | |||
1564 | |||
1565 | |||
1566 | |||
1567 | |||
1568 | |||
1569 | |||
1570 | |||
1571 | |||
1572 | |||
1573 | |||
1574 | |||
1575 | |||
1576 | |||
1577 | |||
1578 | |||
1579 | |||
1580 | |||
1581 | |||
1582 | |||
1583 | |||
1584 | |||
1585 | |||
1586 | |||
1587 | |||
1588 | |||
1589 | |||
1590 | |||
1591 | |||
1592 | |||
1593 | |||
1594 | |||
1595 | |||
1596 | |||
1597 | |||
1598 | |||
1599 | |||
1600 | |||
1601 | |||
1602 | |||
1603 | # 457 "/opt/Qtopia/include/qglobal.h" 2 | ||
1604 | |||
1605 | |||
1606 | |||
1607 | |||
1608 | |||
1609 | |||
1610 | |||
1611 | # 482 "/opt/Qtopia/include/qglobal.h" | ||
1612 | |||
1613 | |||
1614 | |||
1615 | |||
1616 | |||
1617 | |||
1618 | |||
1619 | |||
1620 | |||
1621 | |||
1622 | |||
1623 | |||
1624 | |||
1625 | const char *qVersion(); | ||
1626 | bool qSysInfo( int *wordSize, bool *bigEndian ); | ||
1627 | |||
1628 | |||
1629 | |||
1630 | |||
1631 | |||
1632 | |||
1633 | |||
1634 | |||
1635 | |||
1636 | |||
1637 | |||
1638 | |||
1639 | |||
1640 | |||
1641 | |||
1642 | |||
1643 | |||
1644 | |||
1645 | |||
1646 | |||
1647 | |||
1648 | |||
1649 | |||
1650 | |||
1651 | |||
1652 | |||
1653 | |||
1654 | # 541 "/opt/Qtopia/include/qglobal.h" | ||
1655 | |||
1656 | |||
1657 | |||
1658 | |||
1659 | |||
1660 | |||
1661 | |||
1662 | |||
1663 | |||
1664 | |||
1665 | |||
1666 | |||
1667 | |||
1668 | |||
1669 | |||
1670 | |||
1671 | |||
1672 | |||
1673 | void qDebug( const char *, ... ) | ||
1674 | |||
1675 | __attribute__ ((format (printf, 1, 2))) | ||
1676 | |||
1677 | ; | ||
1678 | |||
1679 | void qWarning( const char *, ... ) | ||
1680 | |||
1681 | __attribute__ ((format (printf, 1, 2))) | ||
1682 | |||
1683 | ; | ||
1684 | |||
1685 | void qFatal( const char *, ... ) | ||
1686 | |||
1687 | __attribute__ ((format (printf, 1, 2))) | ||
1688 | |||
1689 | ; | ||
1690 | |||
1691 | |||
1692 | |||
1693 | |||
1694 | |||
1695 | |||
1696 | |||
1697 | void debug( const char *, ... ) | ||
1698 | |||
1699 | __attribute__ ((format (printf, 1, 2))) | ||
1700 | |||
1701 | ; | ||
1702 | |||
1703 | void warning( const char *, ... ) | ||
1704 | |||
1705 | __attribute__ ((format (printf, 1, 2))) | ||
1706 | |||
1707 | ; | ||
1708 | |||
1709 | void fatal( const char *, ... ) | ||
1710 | |||
1711 | __attribute__ ((format (printf, 1, 2))) | ||
1712 | |||
1713 | ; | ||
1714 | |||
1715 | |||
1716 | |||
1717 | |||
1718 | |||
1719 | |||
1720 | |||
1721 | |||
1722 | |||
1723 | |||
1724 | |||
1725 | |||
1726 | |||
1727 | |||
1728 | |||
1729 | |||
1730 | bool qt_check_pointer( bool c, const char *, int ); | ||
1731 | |||
1732 | |||
1733 | |||
1734 | |||
1735 | |||
1736 | |||
1737 | |||
1738 | enum QtMsgType { QtDebugMsg, QtWarningMsg, QtFatalMsg }; | ||
1739 | |||
1740 | typedef void (*msg_handler)(QtMsgType, const char *); | ||
1741 | msg_handler qInstallMsgHandler( msg_handler ); | ||
1742 | |||
1743 | |||
1744 | void qSuppressObsoleteWarnings( bool = TRUE ); | ||
1745 | |||
1746 | |||
1747 | |||
1748 | void qObsolete( const char *obj, const char *oldfunc, | ||
1749 | const char *newfunc ); | ||
1750 | void qObsolete( const char *obj, const char *oldfunc ); | ||
1751 | void qObsolete( const char *message ); | ||
1752 | |||
1753 | |||
1754 | |||
1755 | |||
1756 | # 42 "/opt/Qtopia/include/qshared.h" 2 | ||
1757 | |||
1758 | |||
1759 | |||
1760 | |||
1761 | struct QShared | ||
1762 | { | ||
1763 | QShared() { count = 1; } | ||
1764 | void ref() { count++; } | ||
1765 | bool deref(){ return !--count; } | ||
1766 | uint count; | ||
1767 | }; | ||
1768 | |||
1769 | |||
1770 | |||
1771 | # 42 "/opt/Qtopia/include/qgarray.h" 2 | ||
1772 | |||
1773 | |||
1774 | |||
1775 | |||
1776 | class QGArray | ||
1777 | { | ||
1778 | friend class QBuffer; | ||
1779 | public: | ||
1780 | |||
1781 | struct array_data : public QShared { | ||
1782 | array_data(){ data=0; len=0; } | ||
1783 | char *data; | ||
1784 | uint len; | ||
1785 | }; | ||
1786 | QGArray(); | ||
1787 | protected: | ||
1788 | QGArray( int, int ); | ||
1789 | QGArray( int size ); | ||
1790 | QGArray( const QGArray &a ); | ||
1791 | virtual ~QGArray(); | ||
1792 | |||
1793 | QGArray &operator=( const QGArray &a ) { return assign( a ); } | ||
1794 | |||
1795 | virtual void detach(){ duplicate(*this); } | ||
1796 | |||
1797 | char *data() const{ return shd->data; } | ||
1798 | uint nrefs() const{ return shd->count; } | ||
1799 | uint size() const{ return shd->len; } | ||
1800 | boolisEqual( const QGArray &a ) const; | ||
1801 | |||
1802 | boolresize( uint newsize ); | ||
1803 | |||
1804 | boolfill( const char *d, int len, uint sz ); | ||
1805 | |||
1806 | QGArray &assign( const QGArray &a ); | ||
1807 | QGArray &assign( const char *d, uint len ); | ||
1808 | QGArray &duplicate( const QGArray &a ); | ||
1809 | QGArray &duplicate( const char *d, uint len ); | ||
1810 | voidstore( const char *d, uint len ); | ||
1811 | |||
1812 | array_data *sharedBlock() const { return shd; } | ||
1813 | voidsetSharedBlock( array_data *p ) { shd=(array_data*)p; } | ||
1814 | |||
1815 | QGArray &setRawData( const char *d, uint len ); | ||
1816 | voidresetRawData( const char *d, uint len ); | ||
1817 | |||
1818 | int find( const char *d, uint index, uint sz ) const; | ||
1819 | int contains( const char *d, uint sz ) const; | ||
1820 | |||
1821 | voidsort( uint sz ); | ||
1822 | int bsearch( const char *d, uint sz ) const; | ||
1823 | |||
1824 | char *at( uint index ) const; | ||
1825 | |||
1826 | boolsetExpand( uint index, const char *d, uint sz ); | ||
1827 | |||
1828 | protected: | ||
1829 | virtual array_data *newData(); | ||
1830 | virtual void deleteData( array_data *p ); | ||
1831 | |||
1832 | private: | ||
1833 | static void msg_index( uint ); | ||
1834 | array_data *shd; | ||
1835 | }; | ||
1836 | |||
1837 | |||
1838 | inline char *QGArray::at( uint index ) const | ||
1839 | { | ||
1840 | |||
1841 | if ( index >= size() ) { | ||
1842 | msg_index( index ); | ||
1843 | index = 0; | ||
1844 | } | ||
1845 | |||
1846 | return &shd->data[index]; | ||
1847 | } | ||
1848 | |||
1849 | |||
1850 | |||
1851 | # 42 "/opt/Qtopia/include/qarray.h" 2 | ||
1852 | |||
1853 | |||
1854 | |||
1855 | |||
1856 | template<class type> class QArray : public QGArray | ||
1857 | { | ||
1858 | public: | ||
1859 | typedef type* Iterator; | ||
1860 | typedef const type* ConstIterator; | ||
1861 | typedef type ValueType; | ||
1862 | |||
1863 | protected: | ||
1864 | QArray( int, int ) : QGArray( 0, 0 ) {} | ||
1865 | |||
1866 | public: | ||
1867 | QArray() {} | ||
1868 | QArray( int size ) : QGArray(size*sizeof(type)) {} | ||
1869 | QArray( const QArray<type> &a ) : QGArray(a) {} | ||
1870 | ~QArray() {} | ||
1871 | QArray<type> &operator=(const QArray<type> &a) | ||
1872 | { return (QArray<type>&)QGArray::assign(a); } | ||
1873 | type *data() const{ return (type *)QGArray::data(); } | ||
1874 | uint nrefs() const{ return QGArray::nrefs(); } | ||
1875 | uint size() const{ return QGArray::size()/sizeof(type); } | ||
1876 | uint count() const { return size(); } | ||
1877 | bool isEmpty() const{ return QGArray::size() == 0; } | ||
1878 | bool isNull() const{ return QGArray::data() == 0; } | ||
1879 | bool resize( uint size ){ return QGArray::resize(size*sizeof(type)); } | ||
1880 | bool truncate( uint pos ){ return QGArray::resize(pos*sizeof(type)); } | ||
1881 | bool fill( const type &d, int size = -1 ) | ||
1882 | { return QGArray::fill((char*)&d,size,sizeof(type) ); } | ||
1883 | void detach() { QGArray::detach(); } | ||
1884 | QArray<type> copy() const | ||
1885 | { QArray<type> tmp; return tmp.duplicate(*this); } | ||
1886 | QArray<type>& assign( const QArray<type>& a ) | ||
1887 | { return (QArray<type>&)QGArray::assign(a); } | ||
1888 | QArray<type>& assign( const type *a, uint n ) | ||
1889 | { return (QArray<type>&)QGArray::assign((char*)a,n*sizeof(type)); } | ||
1890 | QArray<type>& duplicate( const QArray<type>& a ) | ||
1891 | { return (QArray<type>&)QGArray::duplicate(a); } | ||
1892 | QArray<type>& duplicate( const type *a, uint n ) | ||
1893 | { return (QArray<type>&)QGArray::duplicate((char*)a,n*sizeof(type)); } | ||
1894 | QArray<type>& setRawData( const type *a, uint n ) | ||
1895 | { return (QArray<type>&)QGArray::setRawData((char*)a, | ||
1896 | n*sizeof(type)); } | ||
1897 | void resetRawData( const type *a, uint n ) | ||
1898 | { QGArray::resetRawData((char*)a,n*sizeof(type)); } | ||
1899 | int find( const type &d, uint i=0 ) const | ||
1900 | { return QGArray::find((char*)&d,i,sizeof(type)); } | ||
1901 | int contains( const type &d ) const | ||
1902 | { return QGArray::contains((char*)&d,sizeof(type)); } | ||
1903 | void sort() { QGArray::sort(sizeof(type)); } | ||
1904 | int bsearch( const type &d ) const | ||
1905 | { return QGArray::bsearch((const char*)&d,sizeof(type)); } | ||
1906 | type& operator[]( int i ) const | ||
1907 | { return (type &)(*(type *)QGArray::at(i*sizeof(type))); } | ||
1908 | type& at( uint i ) const | ||
1909 | { return (type &)(*(type *)QGArray::at(i*sizeof(type))); } | ||
1910 | operator const type*() const { return (const type *)QGArray::data(); } | ||
1911 | bool operator==( const QArray<type> &a ) const { return isEqual(a); } | ||
1912 | bool operator!=( const QArray<type> &a ) const { return !isEqual(a); } | ||
1913 | Iterator begin() { return data(); } | ||
1914 | Iterator end() { return data() + size(); } | ||
1915 | ConstIterator begin() const { return data(); } | ||
1916 | ConstIterator end() const { return data() + size(); } | ||
1917 | }; | ||
1918 | |||
1919 | |||
1920 | |||
1921 | # 43 "/opt/Qtopia/include/qcstring.h" 2 | ||
1922 | |||
1923 | |||
1924 | |||
1925 | |||
1926 | |||
1927 | |||
1928 | |||
1929 | # 1 "/usr/include/string.h" 1 3 | ||
1930 | |||
1931 | |||
1932 | |||
1933 | |||
1934 | |||
1935 | |||
1936 | |||
1937 | |||
1938 | |||
1939 | |||
1940 | |||
1941 | |||
1942 | |||
1943 | |||
1944 | |||
1945 | |||
1946 | |||
1947 | |||
1948 | |||
1949 | |||
1950 | |||
1951 | |||
1952 | |||
1953 | |||
1954 | |||
1955 | # 1 "/usr/include/features.h" 1 3 | ||
1956 | |||
1957 | |||
1958 | |||
1959 | |||
1960 | |||
1961 | |||
1962 | |||
1963 | |||
1964 | |||
1965 | |||
1966 | |||
1967 | |||
1968 | |||
1969 | |||
1970 | |||
1971 | |||
1972 | |||
1973 | |||
1974 | |||
1975 | |||
1976 | |||
1977 | |||
1978 | |||
1979 | |||
1980 | |||
1981 | |||
1982 | |||
1983 | |||
1984 | |||
1985 | |||
1986 | |||
1987 | |||
1988 | |||
1989 | |||
1990 | |||
1991 | |||
1992 | |||
1993 | |||
1994 | |||
1995 | |||
1996 | |||
1997 | |||
1998 | |||
1999 | |||
2000 | |||
2001 | |||
2002 | |||
2003 | |||
2004 | |||
2005 | |||
2006 | |||
2007 | |||
2008 | |||
2009 | |||
2010 | |||
2011 | |||
2012 | |||
2013 | |||
2014 | |||
2015 | |||
2016 | |||
2017 | |||
2018 | |||
2019 | |||
2020 | |||
2021 | |||
2022 | |||
2023 | |||
2024 | |||
2025 | |||
2026 | |||
2027 | |||
2028 | |||
2029 | |||
2030 | |||
2031 | |||
2032 | |||
2033 | |||
2034 | |||
2035 | |||
2036 | |||
2037 | |||
2038 | |||
2039 | |||
2040 | |||
2041 | |||
2042 | |||
2043 | |||
2044 | |||
2045 | |||
2046 | |||
2047 | |||
2048 | |||
2049 | |||
2050 | |||
2051 | |||
2052 | |||
2053 | |||
2054 | |||
2055 | |||
2056 | |||
2057 | |||
2058 | |||
2059 | |||
2060 | |||
2061 | |||
2062 | |||
2063 | |||
2064 | |||
2065 | |||
2066 | |||
2067 | |||
2068 | |||
2069 | |||
2070 | |||
2071 | |||
2072 | |||
2073 | |||
2074 | |||
2075 | |||
2076 | |||
2077 | |||
2078 | |||
2079 | |||
2080 | # 142 "/usr/include/features.h" 3 | ||
2081 | |||
2082 | |||
2083 | |||
2084 | |||
2085 | |||
2086 | |||
2087 | |||
2088 | |||
2089 | |||
2090 | |||
2091 | |||
2092 | |||
2093 | |||
2094 | |||
2095 | |||
2096 | |||
2097 | |||
2098 | |||
2099 | |||
2100 | |||
2101 | |||
2102 | |||
2103 | |||
2104 | |||
2105 | |||
2106 | |||
2107 | |||
2108 | |||
2109 | |||
2110 | |||
2111 | |||
2112 | |||
2113 | |||
2114 | |||
2115 | |||
2116 | |||
2117 | |||
2118 | |||
2119 | |||
2120 | |||
2121 | |||
2122 | |||
2123 | |||
2124 | |||
2125 | |||
2126 | |||
2127 | |||
2128 | |||
2129 | |||
2130 | # 208 "/usr/include/features.h" 3 | ||
2131 | |||
2132 | |||
2133 | |||
2134 | |||
2135 | |||
2136 | |||
2137 | |||
2138 | |||
2139 | |||
2140 | |||
2141 | |||
2142 | |||
2143 | |||
2144 | |||
2145 | |||
2146 | |||
2147 | |||
2148 | |||
2149 | |||
2150 | |||
2151 | |||
2152 | |||
2153 | |||
2154 | |||
2155 | |||
2156 | |||
2157 | |||
2158 | |||
2159 | |||
2160 | |||
2161 | |||
2162 | |||
2163 | |||
2164 | |||
2165 | |||
2166 | |||
2167 | |||
2168 | |||
2169 | |||
2170 | |||
2171 | |||
2172 | |||
2173 | |||
2174 | |||
2175 | |||
2176 | |||
2177 | |||
2178 | |||
2179 | |||
2180 | |||
2181 | |||
2182 | |||
2183 | |||
2184 | |||
2185 | |||
2186 | |||
2187 | |||
2188 | |||
2189 | |||
2190 | |||
2191 | |||
2192 | |||
2193 | |||
2194 | |||
2195 | |||
2196 | |||
2197 | |||
2198 | |||
2199 | |||
2200 | |||
2201 | |||
2202 | |||
2203 | |||
2204 | |||
2205 | |||
2206 | # 1 "/usr/include/sys/cdefs.h" 1 3 | ||
2207 | |||
2208 | |||
2209 | |||
2210 | |||
2211 | |||
2212 | |||
2213 | |||
2214 | |||
2215 | |||
2216 | |||
2217 | |||
2218 | |||
2219 | |||
2220 | |||
2221 | |||
2222 | |||
2223 | |||
2224 | |||
2225 | |||
2226 | |||
2227 | |||
2228 | |||
2229 | |||
2230 | |||
2231 | |||
2232 | |||
2233 | |||
2234 | |||
2235 | |||
2236 | |||
2237 | |||
2238 | |||
2239 | |||
2240 | |||
2241 | |||
2242 | |||
2243 | |||
2244 | |||
2245 | |||
2246 | |||
2247 | |||
2248 | |||
2249 | |||
2250 | |||
2251 | |||
2252 | |||
2253 | |||
2254 | |||
2255 | |||
2256 | |||
2257 | |||
2258 | |||
2259 | # 65 "/usr/include/sys/cdefs.h" 3 | ||
2260 | |||
2261 | |||
2262 | |||
2263 | |||
2264 | |||
2265 | |||
2266 | |||
2267 | |||
2268 | |||
2269 | |||
2270 | |||
2271 | |||
2272 | |||
2273 | |||
2274 | |||
2275 | |||
2276 | |||
2277 | |||
2278 | |||
2279 | |||
2280 | |||
2281 | |||
2282 | |||
2283 | |||
2284 | |||
2285 | |||
2286 | |||
2287 | |||
2288 | |||
2289 | |||
2290 | |||
2291 | |||
2292 | |||
2293 | |||
2294 | |||
2295 | |||
2296 | |||
2297 | |||
2298 | |||
2299 | |||
2300 | |||
2301 | |||
2302 | |||
2303 | |||
2304 | |||
2305 | |||
2306 | |||
2307 | |||
2308 | |||
2309 | |||
2310 | |||
2311 | |||
2312 | |||
2313 | |||
2314 | |||
2315 | |||
2316 | |||
2317 | |||
2318 | |||
2319 | |||
2320 | |||
2321 | |||
2322 | |||
2323 | |||
2324 | |||
2325 | |||
2326 | |||
2327 | |||
2328 | |||
2329 | |||
2330 | |||
2331 | |||
2332 | |||
2333 | |||
2334 | |||
2335 | |||
2336 | |||
2337 | |||
2338 | |||
2339 | |||
2340 | |||
2341 | |||
2342 | |||
2343 | |||
2344 | |||
2345 | |||
2346 | |||
2347 | |||
2348 | |||
2349 | |||
2350 | |||
2351 | |||
2352 | |||
2353 | |||
2354 | |||
2355 | |||
2356 | |||
2357 | |||
2358 | |||
2359 | |||
2360 | |||
2361 | |||
2362 | |||
2363 | |||
2364 | |||
2365 | |||
2366 | |||
2367 | |||
2368 | |||
2369 | |||
2370 | |||
2371 | |||
2372 | |||
2373 | |||
2374 | |||
2375 | |||
2376 | |||
2377 | |||
2378 | |||
2379 | |||
2380 | |||
2381 | |||
2382 | |||
2383 | |||
2384 | |||
2385 | |||
2386 | |||
2387 | |||
2388 | |||
2389 | |||
2390 | |||
2391 | |||
2392 | |||
2393 | |||
2394 | |||
2395 | |||
2396 | |||
2397 | |||
2398 | |||
2399 | |||
2400 | |||
2401 | |||
2402 | |||
2403 | |||
2404 | |||
2405 | |||
2406 | |||
2407 | |||
2408 | |||
2409 | |||
2410 | |||
2411 | |||
2412 | |||
2413 | |||
2414 | |||
2415 | |||
2416 | |||
2417 | |||
2418 | |||
2419 | |||
2420 | |||
2421 | |||
2422 | # 283 "/usr/include/features.h" 2 3 | ||
2423 | |||
2424 | |||
2425 | |||
2426 | |||
2427 | |||
2428 | |||
2429 | |||
2430 | |||
2431 | |||
2432 | |||
2433 | |||
2434 | |||
2435 | |||
2436 | |||
2437 | |||
2438 | |||
2439 | |||
2440 | |||
2441 | |||
2442 | |||
2443 | |||
2444 | |||
2445 | |||
2446 | |||
2447 | |||
2448 | |||
2449 | |||
2450 | |||
2451 | |||
2452 | # 1 "/usr/include/gnu/stubs.h" 1 3 | ||
2453 | |||
2454 | |||
2455 | |||
2456 | |||
2457 | |||
2458 | |||
2459 | |||
2460 | |||
2461 | |||
2462 | |||
2463 | |||
2464 | |||
2465 | |||
2466 | |||
2467 | |||
2468 | |||
2469 | |||
2470 | |||
2471 | |||
2472 | |||
2473 | # 312 "/usr/include/features.h" 2 3 | ||
2474 | |||
2475 | |||
2476 | |||
2477 | |||
2478 | # 26 "/usr/include/string.h" 2 3 | ||
2479 | |||
2480 | |||
2481 | extern "C" { | ||
2482 | |||
2483 | |||
2484 | |||
2485 | |||
2486 | # 1 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 1 3 | ||
2487 | |||
2488 | |||
2489 | |||
2490 | |||
2491 | |||
2492 | |||
2493 | |||
2494 | |||
2495 | |||
2496 | # 19 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
2497 | |||
2498 | |||
2499 | |||
2500 | |||
2501 | |||
2502 | |||
2503 | |||
2504 | |||
2505 | |||
2506 | |||
2507 | |||
2508 | |||
2509 | |||
2510 | |||
2511 | |||
2512 | # 61 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
2513 | |||
2514 | |||
2515 | |||
2516 | |||
2517 | |||
2518 | |||
2519 | |||
2520 | |||
2521 | |||
2522 | |||
2523 | |||
2524 | |||
2525 | |||
2526 | |||
2527 | |||
2528 | |||
2529 | |||
2530 | |||
2531 | |||
2532 | |||
2533 | |||
2534 | |||
2535 | |||
2536 | |||
2537 | |||
2538 | |||
2539 | |||
2540 | |||
2541 | |||
2542 | |||
2543 | |||
2544 | |||
2545 | |||
2546 | |||
2547 | |||
2548 | |||
2549 | |||
2550 | # 131 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
2551 | |||
2552 | |||
2553 | |||
2554 | |||
2555 | |||
2556 | |||
2557 | |||
2558 | |||
2559 | |||
2560 | |||
2561 | |||
2562 | |||
2563 | |||
2564 | |||
2565 | |||
2566 | |||
2567 | |||
2568 | |||
2569 | |||
2570 | |||
2571 | |||
2572 | |||
2573 | |||
2574 | |||
2575 | |||
2576 | |||
2577 | |||
2578 | |||
2579 | |||
2580 | |||
2581 | |||
2582 | |||
2583 | |||
2584 | |||
2585 | |||
2586 | |||
2587 | |||
2588 | |||
2589 | |||
2590 | typedef unsigned int size_t; | ||
2591 | |||
2592 | |||
2593 | |||
2594 | |||
2595 | |||
2596 | |||
2597 | |||
2598 | |||
2599 | |||
2600 | |||
2601 | |||
2602 | |||
2603 | |||
2604 | |||
2605 | |||
2606 | |||
2607 | |||
2608 | |||
2609 | |||
2610 | |||
2611 | |||
2612 | |||
2613 | |||
2614 | |||
2615 | |||
2616 | |||
2617 | |||
2618 | |||
2619 | |||
2620 | # 271 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
2621 | |||
2622 | |||
2623 | # 283 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
2624 | |||
2625 | |||
2626 | |||
2627 | |||
2628 | |||
2629 | |||
2630 | # 317 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
2631 | |||
2632 | |||
2633 | |||
2634 | |||
2635 | |||
2636 | |||
2637 | |||
2638 | |||
2639 | |||
2640 | |||
2641 | |||
2642 | |||
2643 | |||
2644 | |||
2645 | |||
2646 | |||
2647 | |||
2648 | |||
2649 | |||
2650 | |||
2651 | |||
2652 | |||
2653 | |||
2654 | |||
2655 | |||
2656 | |||
2657 | # 33 "/usr/include/string.h" 2 3 | ||
2658 | |||
2659 | |||
2660 | |||
2661 | |||
2662 | extern void *memcpy (void *__restrict __dest, | ||
2663 | __const void *__restrict __src, size_t __n) throw () ; | ||
2664 | |||
2665 | |||
2666 | extern void *memmove (void *__dest, __const void *__src, size_t __n) | ||
2667 | throw () ; | ||
2668 | |||
2669 | |||
2670 | |||
2671 | |||
2672 | |||
2673 | extern void *memccpy (void *__restrict __dest, __const void *__restrict __src, | ||
2674 | int __c, size_t __n) | ||
2675 | throw () ; | ||
2676 | |||
2677 | |||
2678 | |||
2679 | |||
2680 | extern void *memset (void *__s, int __c, size_t __n) throw () ; | ||
2681 | |||
2682 | |||
2683 | extern int memcmp (__const void *__s1, __const void *__s2, size_t __n) | ||
2684 | throw () ; | ||
2685 | |||
2686 | |||
2687 | extern void *memchr (__const void *__s, int __c, size_t __n) | ||
2688 | throw () ; | ||
2689 | |||
2690 | # 73 "/usr/include/string.h" 3 | ||
2691 | |||
2692 | |||
2693 | |||
2694 | |||
2695 | extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) | ||
2696 | throw () ; | ||
2697 | |||
2698 | extern char *strncpy (char *__restrict __dest, | ||
2699 | __const char *__restrict __src, size_t __n) throw () ; | ||
2700 | |||
2701 | |||
2702 | extern char *strcat (char *__restrict __dest, __const char *__restrict __src) | ||
2703 | throw () ; | ||
2704 | |||
2705 | extern char *strncat (char *__restrict __dest, __const char *__restrict __src, | ||
2706 | size_t __n) throw () ; | ||
2707 | |||
2708 | |||
2709 | extern int strcmp (__const char *__s1, __const char *__s2) | ||
2710 | throw () ; | ||
2711 | |||
2712 | extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) | ||
2713 | throw () ; | ||
2714 | |||
2715 | |||
2716 | extern int strcoll (__const char *__s1, __const char *__s2) | ||
2717 | throw () ; | ||
2718 | |||
2719 | extern size_t strxfrm (char *__restrict __dest, | ||
2720 | __const char *__restrict __src, size_t __n) throw () ; | ||
2721 | |||
2722 | # 116 "/usr/include/string.h" 3 | ||
2723 | |||
2724 | |||
2725 | |||
2726 | |||
2727 | extern char *strdup (__const char *__s) throw () ; | ||
2728 | |||
2729 | |||
2730 | |||
2731 | |||
2732 | |||
2733 | |||
2734 | |||
2735 | |||
2736 | |||
2737 | |||
2738 | # 152 "/usr/include/string.h" 3 | ||
2739 | |||
2740 | |||
2741 | |||
2742 | extern char *strchr (__const char *__s, int __c) throw () ; | ||
2743 | |||
2744 | extern char *strrchr (__const char *__s, int __c) throw () ; | ||
2745 | |||
2746 | |||
2747 | |||
2748 | |||
2749 | |||
2750 | |||
2751 | |||
2752 | |||
2753 | |||
2754 | extern size_t strcspn (__const char *__s, __const char *__reject) | ||
2755 | throw () ; | ||
2756 | |||
2757 | |||
2758 | extern size_t strspn (__const char *__s, __const char *__accept) | ||
2759 | throw () ; | ||
2760 | |||
2761 | extern char *strpbrk (__const char *__s, __const char *__accept) | ||
2762 | throw () ; | ||
2763 | |||
2764 | extern char *strstr (__const char *__haystack, __const char *__needle) | ||
2765 | throw () ; | ||
2766 | |||
2767 | |||
2768 | |||
2769 | |||
2770 | |||
2771 | |||
2772 | |||
2773 | |||
2774 | extern char *strtok (char *__restrict __s, __const char *__restrict __delim) | ||
2775 | throw () ; | ||
2776 | |||
2777 | |||
2778 | |||
2779 | extern char *__strtok_r (char *__restrict __s, | ||
2780 | __const char *__restrict __delim, | ||
2781 | char **__restrict __save_ptr) throw () ; | ||
2782 | |||
2783 | extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim, | ||
2784 | char **__restrict __save_ptr) throw () ; | ||
2785 | |||
2786 | |||
2787 | # 214 "/usr/include/string.h" 3 | ||
2788 | |||
2789 | |||
2790 | |||
2791 | |||
2792 | extern size_t strlen (__const char *__s) throw () ; | ||
2793 | |||
2794 | |||
2795 | |||
2796 | |||
2797 | |||
2798 | |||
2799 | |||
2800 | |||
2801 | |||
2802 | |||
2803 | extern char *strerror (int __errnum) throw () ; | ||
2804 | |||
2805 | |||
2806 | |||
2807 | extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) throw () ; | ||
2808 | |||
2809 | |||
2810 | |||
2811 | |||
2812 | extern void __bzero (void *__s, size_t __n) throw () ; | ||
2813 | |||
2814 | |||
2815 | |||
2816 | extern void bcopy (__const void *__src, void *__dest, size_t __n) throw () ; | ||
2817 | |||
2818 | |||
2819 | extern void bzero (void *__s, size_t __n) throw () ; | ||
2820 | |||
2821 | |||
2822 | extern int bcmp (__const void *__s1, __const void *__s2, size_t __n) | ||
2823 | throw () ; | ||
2824 | |||
2825 | |||
2826 | extern char *index (__const char *__s, int __c) throw () ; | ||
2827 | |||
2828 | |||
2829 | extern char *rindex (__const char *__s, int __c) throw () ; | ||
2830 | |||
2831 | |||
2832 | |||
2833 | extern int ffs (int __i) throw () __attribute__ ((__const__)); | ||
2834 | |||
2835 | |||
2836 | |||
2837 | |||
2838 | |||
2839 | |||
2840 | |||
2841 | |||
2842 | |||
2843 | |||
2844 | |||
2845 | |||
2846 | extern int strcasecmp (__const char *__s1, __const char *__s2) | ||
2847 | throw () ; | ||
2848 | |||
2849 | |||
2850 | extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n) | ||
2851 | throw () ; | ||
2852 | |||
2853 | |||
2854 | # 289 "/usr/include/string.h" 3 | ||
2855 | |||
2856 | |||
2857 | |||
2858 | |||
2859 | |||
2860 | extern char *strsep (char **__restrict __stringp, | ||
2861 | __const char *__restrict __delim) throw () ; | ||
2862 | |||
2863 | |||
2864 | # 332 "/usr/include/string.h" 3 | ||
2865 | |||
2866 | |||
2867 | |||
2868 | |||
2869 | # 361 "/usr/include/string.h" 3 | ||
2870 | |||
2871 | |||
2872 | |||
2873 | } | ||
2874 | |||
2875 | |||
2876 | # 50 "/opt/Qtopia/include/qcstring.h" 2 | ||
2877 | |||
2878 | |||
2879 | |||
2880 | |||
2881 | |||
2882 | |||
2883 | |||
2884 | # 71 "/opt/Qtopia/include/qcstring.h" | ||
2885 | |||
2886 | |||
2887 | |||
2888 | |||
2889 | |||
2890 | |||
2891 | |||
2892 | void *qmemmove( void *dst, const void *src, uint len ); | ||
2893 | |||
2894 | |||
2895 | |||
2896 | |||
2897 | |||
2898 | char *qstrdup( const char * ); | ||
2899 | |||
2900 | inline uint cstrlen( const char *str ) | ||
2901 | { return strlen(str); } | ||
2902 | |||
2903 | inline uint qstrlen( const char *str ) | ||
2904 | { return str ? strlen(str) : 0; } | ||
2905 | |||
2906 | inline char *cstrcpy( char *dst, const char *src ) | ||
2907 | { return strcpy(dst,src); } | ||
2908 | |||
2909 | inline char *qstrcpy( char *dst, const char *src ) | ||
2910 | { return src ? strcpy(dst, src) : 0; } | ||
2911 | |||
2912 | char *qstrncpy( char *dst, const char *src, uint len ); | ||
2913 | |||
2914 | inline int cstrcmp( const char *str1, const char *str2 ) | ||
2915 | { return strcmp(str1,str2); } | ||
2916 | |||
2917 | inline int qstrcmp( const char *str1, const char *str2 ) | ||
2918 | { return (str1 && str2) ? strcmp(str1,str2) : (int)((long)str2 - (long)str1); } | ||
2919 | |||
2920 | inline int cstrncmp( const char *str1, const char *str2, uint len ) | ||
2921 | { return strncmp(str1,str2,len); } | ||
2922 | |||
2923 | inline int qstrncmp( const char *str1, const char *str2, uint len ) | ||
2924 | { return (str1 && str2) ? strncmp(str1,str2,len) : | ||
2925 | (int)((long)str2 - (long)str1); } | ||
2926 | |||
2927 | int qstricmp( const char *, const char * ); | ||
2928 | |||
2929 | int qstrnicmp( const char *, const char *, uint len ); | ||
2930 | |||
2931 | |||
2932 | |||
2933 | |||
2934 | |||
2935 | |||
2936 | |||
2937 | |||
2938 | |||
2939 | |||
2940 | |||
2941 | |||
2942 | |||
2943 | |||
2944 | |||
2945 | |||
2946 | |||
2947 | |||
2948 | |||
2949 | |||
2950 | |||
2951 | |||
2952 | |||
2953 | |||
2954 | |||
2955 | |||
2956 | |||
2957 | |||
2958 | |||
2959 | |||
2960 | |||
2961 | Q_UINT16 qChecksum( const char *s, uint len ); | ||
2962 | |||
2963 | |||
2964 | |||
2965 | |||
2966 | |||
2967 | |||
2968 | |||
2969 | |||
2970 | typedef QArray<char> QByteArray; | ||
2971 | |||
2972 | |||
2973 | |||
2974 | |||
2975 | |||
2976 | |||
2977 | QDataStream &operator<<( QDataStream &, const QByteArray & ); | ||
2978 | QDataStream &operator>>( QDataStream &, QByteArray & ); | ||
2979 | |||
2980 | |||
2981 | |||
2982 | |||
2983 | |||
2984 | |||
2985 | |||
2986 | |||
2987 | class QRegExp; | ||
2988 | |||
2989 | class QCString : public QByteArray | ||
2990 | { | ||
2991 | public: | ||
2992 | QCString() {} | ||
2993 | QCString( int size ); | ||
2994 | QCString( const QCString &s ) : QByteArray( s ) {} | ||
2995 | QCString( const char *str ); | ||
2996 | QCString( const char *str, uint maxlen ); | ||
2997 | |||
2998 | QCString &operator=( const QCString &s ); | ||
2999 | QCString &operator=( const char *str ); | ||
3000 | |||
3001 | bool isNull()const; | ||
3002 | bool isEmpty()const; | ||
3003 | uint length()const; | ||
3004 | boolresize( uint newlen ); | ||
3005 | booltruncate( uint pos ); | ||
3006 | boolfill( char c, int len = -1 ); | ||
3007 | |||
3008 | QCString copy()const; | ||
3009 | |||
3010 | QCString &sprintf( const char *format, ... ); | ||
3011 | |||
3012 | int find( char c, int index=0, bool cs=TRUE ) const; | ||
3013 | int find( const char *str, int index=0, bool cs=TRUE ) const; | ||
3014 | int find( const QRegExp &, int index=0 ) const; | ||
3015 | int findRev( char c, int index=-1, bool cs=TRUE) const; | ||
3016 | int findRev( const char *str, int index=-1, bool cs=TRUE) const; | ||
3017 | int findRev( const QRegExp &, int index=-1 ) const; | ||
3018 | int contains( char c, bool cs=TRUE ) const; | ||
3019 | int contains( const char *str, bool cs=TRUE ) const; | ||
3020 | int contains( const QRegExp & ) const; | ||
3021 | |||
3022 | QCStringleft( uint len ) const; | ||
3023 | QCStringright( uint len ) const; | ||
3024 | QCStringmid( uint index, uint len=0xffffffff) const; | ||
3025 | |||
3026 | QCStringleftJustify( uint width, char fill=' ', bool trunc=FALSE)const; | ||
3027 | QCStringrightJustify( uint width, char fill=' ',bool trunc=FALSE)const; | ||
3028 | |||
3029 | QCStringlower() const; | ||
3030 | QCStringupper() const; | ||
3031 | |||
3032 | QCString stripWhiteSpace()const; | ||
3033 | QCString simplifyWhiteSpace()const; | ||
3034 | |||
3035 | QCString &insert( uint index, const char * ); | ||
3036 | QCString &insert( uint index, char ); | ||
3037 | QCString &append( const char * ); | ||
3038 | QCString &prepend( const char * ); | ||
3039 | QCString &remove( uint index, uint len ); | ||
3040 | QCString &replace( uint index, uint len, const char * ); | ||
3041 | QCString &replace( const QRegExp &, const char * ); | ||
3042 | |||
3043 | short toShort( bool *ok=0 )const; | ||
3044 | ushort toUShort( bool *ok=0 )const; | ||
3045 | int toInt( bool *ok=0 )const; | ||
3046 | uint toUInt( bool *ok=0 )const; | ||
3047 | long toLong( bool *ok=0 )const; | ||
3048 | ulong toULong( bool *ok=0 )const; | ||
3049 | float toFloat( bool *ok=0 )const; | ||
3050 | double toDouble( bool *ok=0 )const; | ||
3051 | |||
3052 | QCString &setStr( const char *s ); | ||
3053 | QCString &setNum( short ); | ||
3054 | QCString &setNum( ushort ); | ||
3055 | QCString &setNum( int ); | ||
3056 | QCString &setNum( uint ); | ||
3057 | QCString &setNum( long ); | ||
3058 | QCString &setNum( ulong ); | ||
3059 | QCString &setNum( float, char f='g', int prec=6 ); | ||
3060 | QCString &setNum( double, char f='g', int prec=6 ); | ||
3061 | |||
3062 | boolsetExpand( uint index, char c ); | ||
3063 | |||
3064 | operator const char *() const; | ||
3065 | QCString &operator+=( const char *str ); | ||
3066 | QCString &operator+=( char c ); | ||
3067 | }; | ||
3068 | |||
3069 | |||
3070 | |||
3071 | |||
3072 | |||
3073 | |||
3074 | QDataStream &operator<<( QDataStream &, const QCString & ); | ||
3075 | QDataStream &operator>>( QDataStream &, QCString & ); | ||
3076 | |||
3077 | |||
3078 | |||
3079 | |||
3080 | |||
3081 | |||
3082 | inline QCString &QCString::operator=( const QCString &s ) | ||
3083 | { return (QCString&)assign( s ); } | ||
3084 | |||
3085 | inline QCString &QCString::operator=( const char *str ) | ||
3086 | { return (QCString&)duplicate( str, qstrlen(str)+1 ); } | ||
3087 | |||
3088 | inline bool QCString::isNull() const | ||
3089 | { return data() == 0; } | ||
3090 | |||
3091 | inline bool QCString::isEmpty() const | ||
3092 | { return data() == 0 || *data() == '\0'; } | ||
3093 | |||
3094 | inline uint QCString::length() const | ||
3095 | { return qstrlen( data() ); } | ||
3096 | |||
3097 | inline bool QCString::truncate( uint pos ) | ||
3098 | { return resize(pos+1); } | ||
3099 | |||
3100 | inline QCString QCString::copy() const | ||
3101 | { return QCString( data() ); } | ||
3102 | |||
3103 | inline QCString &QCString::prepend( const char *s ) | ||
3104 | { return insert(0,s); } | ||
3105 | |||
3106 | inline QCString &QCString::append( const char *s ) | ||
3107 | { return operator+=(s); } | ||
3108 | |||
3109 | inline QCString &QCString::setNum( short n ) | ||
3110 | { return setNum((long)n); } | ||
3111 | |||
3112 | inline QCString &QCString::setNum( ushort n ) | ||
3113 | { return setNum((ulong)n); } | ||
3114 | |||
3115 | inline QCString &QCString::setNum( int n ) | ||
3116 | { return setNum((long)n); } | ||
3117 | |||
3118 | inline QCString &QCString::setNum( uint n ) | ||
3119 | { return setNum((ulong)n); } | ||
3120 | |||
3121 | inline QCString &QCString::setNum( float n, char f, int prec ) | ||
3122 | { return setNum((double)n,f,prec); } | ||
3123 | |||
3124 | inline QCString::operator const char *() const | ||
3125 | { return (const char *)data(); } | ||
3126 | |||
3127 | |||
3128 | |||
3129 | |||
3130 | |||
3131 | |||
3132 | inline bool operator==( const QCString &s1, const QCString &s2 ) | ||
3133 | { return qstrcmp(s1.data(),s2.data()) == 0; } | ||
3134 | |||
3135 | inline bool operator==( const QCString &s1, const char *s2 ) | ||
3136 | { return qstrcmp(s1.data(),s2) == 0; } | ||
3137 | |||
3138 | inline bool operator==( const char *s1, const QCString &s2 ) | ||
3139 | { return qstrcmp(s1,s2.data()) == 0; } | ||
3140 | |||
3141 | inline bool operator!=( const QCString &s1, const QCString &s2 ) | ||
3142 | { return qstrcmp(s1.data(),s2.data()) != 0; } | ||
3143 | |||
3144 | inline bool operator!=( const QCString &s1, const char *s2 ) | ||
3145 | { return qstrcmp(s1.data(),s2) != 0; } | ||
3146 | |||
3147 | inline bool operator!=( const char *s1, const QCString &s2 ) | ||
3148 | { return qstrcmp(s1,s2.data()) != 0; } | ||
3149 | |||
3150 | inline bool operator<( const QCString &s1, const QCString& s2 ) | ||
3151 | { return qstrcmp(s1.data(),s2.data()) < 0; } | ||
3152 | |||
3153 | inline bool operator<( const QCString &s1, const char *s2 ) | ||
3154 | { return qstrcmp(s1.data(),s2) < 0; } | ||
3155 | |||
3156 | inline bool operator<( const char *s1, const QCString &s2 ) | ||
3157 | { return qstrcmp(s1,s2.data()) < 0; } | ||
3158 | |||
3159 | inline bool operator<=( const QCString &s1, const char *s2 ) | ||
3160 | { return qstrcmp(s1.data(),s2) <= 0; } | ||
3161 | |||
3162 | inline bool operator<=( const char *s1, const QCString &s2 ) | ||
3163 | { return qstrcmp(s1,s2.data()) <= 0; } | ||
3164 | |||
3165 | inline bool operator>( const QCString &s1, const char *s2 ) | ||
3166 | { return qstrcmp(s1.data(),s2) > 0; } | ||
3167 | |||
3168 | inline bool operator>( const char *s1, const QCString &s2 ) | ||
3169 | { return qstrcmp(s1,s2.data()) > 0; } | ||
3170 | |||
3171 | inline bool operator>=( const QCString &s1, const char *s2 ) | ||
3172 | { return qstrcmp(s1.data(),s2) >= 0; } | ||
3173 | |||
3174 | inline bool operator>=( const char *s1, const QCString &s2 ) | ||
3175 | { return qstrcmp(s1,s2.data()) >= 0; } | ||
3176 | |||
3177 | inline QCString operator+( const QCString &s1, const QCString &s2 ) | ||
3178 | { | ||
3179 | QCString tmp( s1.data() ); | ||
3180 | tmp += s2; | ||
3181 | return tmp; | ||
3182 | } | ||
3183 | |||
3184 | inline QCString operator+( const QCString &s1, const char *s2 ) | ||
3185 | { | ||
3186 | QCString tmp( s1.data() ); | ||
3187 | tmp += s2; | ||
3188 | return tmp; | ||
3189 | } | ||
3190 | |||
3191 | inline QCString operator+( const char *s1, const QCString &s2 ) | ||
3192 | { | ||
3193 | QCString tmp( s1 ); | ||
3194 | tmp += s2; | ||
3195 | return tmp; | ||
3196 | } | ||
3197 | |||
3198 | inline QCString operator+( const QCString &s1, char c2 ) | ||
3199 | { | ||
3200 | QCString tmp( s1.data() ); | ||
3201 | tmp += c2; | ||
3202 | return tmp; | ||
3203 | } | ||
3204 | |||
3205 | inline QCString operator+( char c1, const QCString &s2 ) | ||
3206 | { | ||
3207 | QCString tmp; | ||
3208 | tmp += c1; | ||
3209 | tmp += s2; | ||
3210 | return tmp; | ||
3211 | } | ||
3212 | |||
3213 | |||
3214 | # 43 "/opt/Qtopia/include/qstring.h" 2 | ||
3215 | |||
3216 | |||
3217 | |||
3218 | |||
3219 | |||
3220 | |||
3221 | |||
3222 | |||
3223 | class QRegExp; | ||
3224 | class QString; | ||
3225 | class QCharRef; | ||
3226 | |||
3227 | class QChar { | ||
3228 | public: | ||
3229 | QChar(); | ||
3230 | QChar( char c ); | ||
3231 | QChar( uchar c ); | ||
3232 | QChar( uchar c, uchar r ); | ||
3233 | QChar( const QChar& c ); | ||
3234 | QChar( ushort rc ); | ||
3235 | QChar( short rc ); | ||
3236 | QChar( uint rc ); | ||
3237 | QChar( int rc ); | ||
3238 | |||
3239 | static const QChar null; | ||
3240 | static const QChar replacement; | ||
3241 | static const QChar byteOrderMark; | ||
3242 | static const QChar byteOrderSwapped; | ||
3243 | static const QChar nbsp; | ||
3244 | |||
3245 | |||
3246 | |||
3247 | enum Category | ||
3248 | { | ||
3249 | NoCategory, | ||
3250 | |||
3251 | Mark_NonSpacing, | ||
3252 | Mark_SpacingCombining, | ||
3253 | Mark_Enclosing, | ||
3254 | |||
3255 | Number_DecimalDigit, | ||
3256 | Number_Letter, | ||
3257 | Number_Other, | ||
3258 | |||
3259 | Separator_Space, | ||
3260 | Separator_Line, | ||
3261 | Separator_Paragraph, | ||
3262 | |||
3263 | Other_Control, | ||
3264 | Other_Format, | ||
3265 | Other_Surrogate, | ||
3266 | Other_PrivateUse, | ||
3267 | Other_NotAssigned, | ||
3268 | |||
3269 | Letter_Uppercase, | ||
3270 | Letter_Lowercase, | ||
3271 | Letter_Titlecase, | ||
3272 | Letter_Modifier, | ||
3273 | Letter_Other, | ||
3274 | |||
3275 | Punctuation_Connector, | ||
3276 | Punctuation_Dask, | ||
3277 | Punctuation_Open, | ||
3278 | Punctuation_Close, | ||
3279 | Punctuation_InitialQuote, | ||
3280 | Punctuation_FinalQuote, | ||
3281 | Punctuation_Other, | ||
3282 | |||
3283 | Symbol_Math, | ||
3284 | Symbol_Currency, | ||
3285 | Symbol_Modifier, | ||
3286 | Symbol_Other | ||
3287 | }; | ||
3288 | |||
3289 | enum Direction | ||
3290 | { | ||
3291 | DirL, DirR, DirEN, DirES, DirET, DirAN, DirCS, DirB, DirS, DirWS, DirON, | ||
3292 | DirLRE, DirLRO, DirAL, DirRLE, DirRLO, DirPDF, DirNSM, DirBN | ||
3293 | }; | ||
3294 | |||
3295 | enum Decomposition | ||
3296 | { | ||
3297 | Single, Canonical, Font, NoBreak, Initial, Medial, | ||
3298 | Final, Isolated, Circle, Super, Sub, Vertical, | ||
3299 | Wide, Narrow, Small, Square, Compat, Fraction | ||
3300 | }; | ||
3301 | |||
3302 | enum Joining | ||
3303 | { | ||
3304 | OtherJoining, Dual, Right, Center | ||
3305 | }; | ||
3306 | |||
3307 | |||
3308 | |||
3309 | int digitValue() const; | ||
3310 | QChar lower() const; | ||
3311 | QChar upper() const; | ||
3312 | |||
3313 | Category category() const; | ||
3314 | Direction direction() const; | ||
3315 | Joining joining() const; | ||
3316 | bool mirrored() const; | ||
3317 | QChar mirroredChar() const; | ||
3318 | QString decomposition() const; | ||
3319 | Decomposition decompositionTag() const; | ||
3320 | |||
3321 | char latin1() const { return rw ? 0 : cl; } | ||
3322 | ushort unicode() const { return (rw << 8) | cl; } | ||
3323 | |||
3324 | |||
3325 | operator char() const { return latin1(); } | ||
3326 | |||
3327 | |||
3328 | bool isNull() const { return unicode()==0; } | ||
3329 | bool isPrint() const; | ||
3330 | bool isPunct() const; | ||
3331 | bool isSpace() const; | ||
3332 | bool isMark() const; | ||
3333 | bool isLetter() const; | ||
3334 | bool isNumber() const; | ||
3335 | bool isLetterOrNumber() const; | ||
3336 | bool isDigit() const; | ||
3337 | |||
3338 | uchar& cell() { return cl; } | ||
3339 | uchar& row() { return rw; } | ||
3340 | uchar cell() const { return cl; } | ||
3341 | uchar row() const { return rw; } | ||
3342 | |||
3343 | static bool networkOrdered() { return (int)net_ordered == 1; } | ||
3344 | |||
3345 | friend inline int operator==( char ch, QChar c ); | ||
3346 | friend inline int operator==( QChar c, char ch ); | ||
3347 | friend inline int operator==( QChar c1, QChar c2 ); | ||
3348 | friend inline int operator!=( QChar c1, QChar c2 ); | ||
3349 | friend inline int operator!=( char ch, QChar c ); | ||
3350 | friend inline int operator!=( QChar c, char ch ); | ||
3351 | friend inline int operator<=( QChar c, char ch ); | ||
3352 | friend inline int operator<=( char ch, QChar c ); | ||
3353 | friend inline int operator<=( QChar c1, QChar c2 ); | ||
3354 | |||
3355 | private: | ||
3356 | |||
3357 | |||
3358 | |||
3359 | uchar rw; | ||
3360 | uchar cl; | ||
3361 | |||
3362 | |||
3363 | |||
3364 | enum { net_ordered = 1 }; | ||
3365 | # 201 "/opt/Qtopia/include/qstring.h" | ||
3366 | |||
3367 | } ; | ||
3368 | |||
3369 | inline QChar::QChar() | ||
3370 | { | ||
3371 | rw = 0; cl = 0; | ||
3372 | |||
3373 | |||
3374 | |||
3375 | } | ||
3376 | inline QChar::QChar( char c ) | ||
3377 | { | ||
3378 | rw = 0; cl = (uchar)c; | ||
3379 | |||
3380 | |||
3381 | |||
3382 | } | ||
3383 | inline QChar::QChar( uchar c ) | ||
3384 | { | ||
3385 | rw = 0; cl = c; | ||
3386 | |||
3387 | |||
3388 | |||
3389 | } | ||
3390 | inline QChar::QChar( uchar c, uchar r ) | ||
3391 | { | ||
3392 | rw = r; cl = c; | ||
3393 | |||
3394 | |||
3395 | |||
3396 | } | ||
3397 | inline QChar::QChar( const QChar& c ) | ||
3398 | { | ||
3399 | rw = c.rw; cl = c.cl; | ||
3400 | |||
3401 | |||
3402 | |||
3403 | } | ||
3404 | inline QChar::QChar( ushort rc ) | ||
3405 | { | ||
3406 | rw = (uchar)((rc>>8)&0xff); cl = (uchar)(rc&0xff); | ||
3407 | |||
3408 | |||
3409 | |||
3410 | } | ||
3411 | inline QChar::QChar( short rc ) | ||
3412 | { | ||
3413 | rw = (uchar)((rc>>8)&0xff); cl = (uchar)(rc&0xff); | ||
3414 | |||
3415 | |||
3416 | |||
3417 | } | ||
3418 | inline QChar::QChar( uint rc ) | ||
3419 | { | ||
3420 | rw = (uchar)((rc>>8)&0xff); cl = (uchar)(rc&0xff); | ||
3421 | |||
3422 | |||
3423 | |||
3424 | } | ||
3425 | inline QChar::QChar( int rc ) | ||
3426 | { | ||
3427 | rw = (uchar)((rc>>8)&0xff); cl = (uchar)(rc&0xff); | ||
3428 | |||
3429 | |||
3430 | |||
3431 | } | ||
3432 | |||
3433 | |||
3434 | inline int operator==( char ch, QChar c ) | ||
3435 | { | ||
3436 | return ch == c.cl && !c.rw; | ||
3437 | } | ||
3438 | |||
3439 | inline int operator==( QChar c, char ch ) | ||
3440 | { | ||
3441 | return ch == c.cl && !c.rw; | ||
3442 | } | ||
3443 | |||
3444 | inline int operator==( QChar c1, QChar c2 ) | ||
3445 | { | ||
3446 | return c1.cl == c2.cl | ||
3447 | && c1.rw == c2.rw; | ||
3448 | } | ||
3449 | |||
3450 | inline int operator!=( QChar c1, QChar c2 ) | ||
3451 | { | ||
3452 | return c1.cl != c2.cl | ||
3453 | || c1.rw != c2.rw; | ||
3454 | } | ||
3455 | |||
3456 | inline int operator!=( char ch, QChar c ) | ||
3457 | { | ||
3458 | return ch != c.cl || c.rw; | ||
3459 | } | ||
3460 | |||
3461 | inline int operator!=( QChar c, char ch ) | ||
3462 | { | ||
3463 | return ch != c.cl || c.rw; | ||
3464 | } | ||
3465 | |||
3466 | inline int operator<=( QChar c, char ch ) | ||
3467 | { | ||
3468 | return !(ch < c.cl || c.rw); | ||
3469 | } | ||
3470 | |||
3471 | inline int operator<=( char ch, QChar c ) | ||
3472 | { | ||
3473 | return ch <= c.cl || c.rw; | ||
3474 | } | ||
3475 | |||
3476 | inline int operator<=( QChar c1, QChar c2 ) | ||
3477 | { | ||
3478 | return c1.rw > c2.rw | ||
3479 | ? FALSE | ||
3480 | : c1.rw < c2.rw | ||
3481 | ? TRUE | ||
3482 | : c1.cl <= c2.cl; | ||
3483 | } | ||
3484 | |||
3485 | inline int operator>=( QChar c, char ch ) { return ch <= c; } | ||
3486 | inline int operator>=( char ch, QChar c ) { return c <= ch; } | ||
3487 | inline int operator>=( QChar c1, QChar c2 ) { return c2 <= c1; } | ||
3488 | inline int operator<( QChar c, char ch ) { return !(ch<=c); } | ||
3489 | inline int operator<( char ch, QChar c ) { return !(c<=ch); } | ||
3490 | inline int operator<( QChar c1, QChar c2 ) { return !(c2<=c1); } | ||
3491 | inline int operator>( QChar c, char ch ) { return !(ch>=c); } | ||
3492 | inline int operator>( char ch, QChar c ) { return !(c>=ch); } | ||
3493 | inline int operator>( QChar c1, QChar c2 ) { return !(c2>=c1); } | ||
3494 | |||
3495 | |||
3496 | struct QStringData : public QShared { | ||
3497 | QStringData() : | ||
3498 | unicode(0), ascii(0), len(0), maxl(0), dirtyascii(0) { ref(); } | ||
3499 | QStringData(QChar *u, uint l, uint m) : | ||
3500 | unicode(u), ascii(0), len(l), maxl(m), dirtyascii(0) { } | ||
3501 | |||
3502 | ~QStringData() { if ( unicode ) delete[] ((char*)unicode); | ||
3503 | if ( ascii ) delete[] ascii; } | ||
3504 | |||
3505 | void deleteSelf(); | ||
3506 | QChar *unicode; | ||
3507 | char *ascii; | ||
3508 | uint len; | ||
3509 | uint maxl:30; | ||
3510 | uint dirtyascii:1; | ||
3511 | }; | ||
3512 | |||
3513 | |||
3514 | class QString | ||
3515 | { | ||
3516 | public: | ||
3517 | QString(); | ||
3518 | QString( QChar ); | ||
3519 | QString( const QString & ); | ||
3520 | QString( const QByteArray& ); | ||
3521 | QString( const QChar* unicode, uint length ); | ||
3522 | |||
3523 | QString( const char *str ); | ||
3524 | |||
3525 | ~QString(); | ||
3526 | |||
3527 | QString &operator=( const QString & ); | ||
3528 | |||
3529 | QString &operator=( const char * ); | ||
3530 | |||
3531 | QString &operator=( const QCString& ); | ||
3532 | QString &operator=( QChar c ); | ||
3533 | QString &operator=( char c ); | ||
3534 | |||
3535 | static const QString null; | ||
3536 | |||
3537 | bool isNull()const; | ||
3538 | bool isEmpty()const; | ||
3539 | uint length()const; | ||
3540 | voidtruncate( uint pos ); | ||
3541 | |||
3542 | |||
3543 | |||
3544 | |||
3545 | voidfill( QChar c, int len = -1 ); | ||
3546 | |||
3547 | QString copy()const; | ||
3548 | |||
3549 | QString arg(long a, int fieldwidth=0, int base=10) const; | ||
3550 | QString arg(ulong a, int fieldwidth=0, int base=10) const; | ||
3551 | QString arg(int a, int fieldwidth=0, int base=10) const; | ||
3552 | QString arg(uint a, int fieldwidth=0, int base=10) const; | ||
3553 | QString arg(short a, int fieldwidth=0, int base=10) const; | ||
3554 | QString arg(ushort a, int fieldwidth=0, int base=10) const; | ||
3555 | QString arg(char a, int fieldwidth=0) const; | ||
3556 | QString arg(QChar a, int fieldwidth=0) const; | ||
3557 | QString arg(const QString& a, int fieldwidth=0) const; | ||
3558 | QString arg(double a, int fieldwidth=0, char fmt='g', int prec=-1) const; | ||
3559 | |||
3560 | QString &sprintf( const char* format, ... ) | ||
3561 | |||
3562 | __attribute__ ((format (printf, 2, 3))) | ||
3563 | |||
3564 | ; | ||
3565 | |||
3566 | int find( QChar c, int index=0, bool cs=TRUE ) const; | ||
3567 | int find( char c, int index=0, bool cs=TRUE ) const; | ||
3568 | int find( const QString &str, int index=0, bool cs=TRUE ) const; | ||
3569 | int find( const QRegExp &, int index=0 ) const; | ||
3570 | |||
3571 | int find( const char* str, int index=0 ) const; | ||
3572 | |||
3573 | int findRev( QChar c, int index=-1, bool cs=TRUE) const; | ||
3574 | int findRev( char c, int index=-1, bool cs=TRUE) const; | ||
3575 | int findRev( const QString &str, int index=-1, bool cs=TRUE) const; | ||
3576 | int findRev( const QRegExp &, int index=-1 ) const; | ||
3577 | |||
3578 | int findRev( const char* str, int index=-1 ) const; | ||
3579 | |||
3580 | int contains( QChar c, bool cs=TRUE ) const; | ||
3581 | int contains( char c, bool cs=TRUE ) const | ||
3582 | { return contains(QChar(c), cs); } | ||
3583 | |||
3584 | int contains( const char* str, bool cs=TRUE ) const; | ||
3585 | |||
3586 | int contains( const QString &str, bool cs=TRUE ) const; | ||
3587 | int contains( const QRegExp & ) const; | ||
3588 | |||
3589 | QStringleft( uint len ) const; | ||
3590 | QStringright( uint len ) const; | ||
3591 | QStringmid( uint index, uint len=0xffffffff) const; | ||
3592 | |||
3593 | QStringleftJustify( uint width, QChar fill=' ', bool trunc=FALSE)const; | ||
3594 | QStringrightJustify( uint width, QChar fill=' ',bool trunc=FALSE)const; | ||
3595 | |||
3596 | QStringlower() const; | ||
3597 | QStringupper() const; | ||
3598 | |||
3599 | QString stripWhiteSpace()const; | ||
3600 | QString simplifyWhiteSpace()const; | ||
3601 | |||
3602 | QString &insert( uint index, const QString & ); | ||
3603 | QString &insert( uint index, const QChar*, uint len ); | ||
3604 | QString &insert( uint index, QChar ); | ||
3605 | QString &insert( uint index, char c ) { return insert(index,QChar(c)); } | ||
3606 | QString &append( char ); | ||
3607 | QString &append( QChar ); | ||
3608 | QString &append( const QString & ); | ||
3609 | QString &prepend( char ); | ||
3610 | QString &prepend( QChar ); | ||
3611 | QString &prepend( const QString & ); | ||
3612 | QString &remove( uint index, uint len ); | ||
3613 | QString &replace( uint index, uint len, const QString & ); | ||
3614 | QString &replace( uint index, uint len, const QChar*, uint clen ); | ||
3615 | QString &replace( const QRegExp &, const QString & ); | ||
3616 | |||
3617 | short toShort( bool *ok=0, int base=10 )const; | ||
3618 | ushort toUShort( bool *ok=0, int base=10 )const; | ||
3619 | int toInt( bool *ok=0, int base=10 )const; | ||
3620 | uint toUInt( bool *ok=0, int base=10 )const; | ||
3621 | long toLong( bool *ok=0, int base=10 )const; | ||
3622 | ulong toULong( bool *ok=0, int base=10 )const; | ||
3623 | float toFloat( bool *ok=0 )const; | ||
3624 | double toDouble( bool *ok=0 )const; | ||
3625 | |||
3626 | QString &setNum( short, int base=10 ); | ||
3627 | QString &setNum( ushort, int base=10 ); | ||
3628 | QString &setNum( int, int base=10 ); | ||
3629 | QString &setNum( uint, int base=10 ); | ||
3630 | QString &setNum( long, int base=10 ); | ||
3631 | QString &setNum( ulong, int base=10 ); | ||
3632 | QString &setNum( float, char f='g', int prec=6 ); | ||
3633 | QString &setNum( double, char f='g', int prec=6 ); | ||
3634 | |||
3635 | static QString number( long, int base=10 ); | ||
3636 | static QString number( ulong, int base=10); | ||
3637 | static QString number( int, int base=10 ); | ||
3638 | static QString number( uint, int base=10); | ||
3639 | static QString number( double, char f='g', int prec=6 ); | ||
3640 | |||
3641 | voidsetExpand( uint index, QChar c ); | ||
3642 | |||
3643 | QString &operator+=( const QString &str ); | ||
3644 | QString &operator+=( QChar c ); | ||
3645 | QString &operator+=( char c ); | ||
3646 | |||
3647 | |||
3648 | QChar at( uint i ) const | ||
3649 | { return i<d->len ? d->unicode[i] : QChar::null; } | ||
3650 | QChar operator[]( int i ) const { return at((uint)i); } | ||
3651 | QCharRef at( uint i ); | ||
3652 | QCharRef operator[]( int i ); | ||
3653 | |||
3654 | QChar constref(uint i) const | ||
3655 | { return at(i); } | ||
3656 | QChar& ref(uint i) | ||
3657 | { | ||
3658 | if (d->count!=1 || i>=d->len) | ||
3659 | subat(i); | ||
3660 | d->dirtyascii=1; | ||
3661 | return d->unicode[i]; | ||
3662 | } | ||
3663 | |||
3664 | const QChar* unicode() const { return d->unicode; } | ||
3665 | const char* ascii() const; | ||
3666 | const char* latin1() const; | ||
3667 | static QString fromLatin1(const char*, int len=-1); | ||
3668 | |||
3669 | QCString utf8() const; | ||
3670 | static QString fromUtf8(const char*, int len=-1); | ||
3671 | |||
3672 | QCString local8Bit() const; | ||
3673 | static QString fromLocal8Bit(const char*, int len=-1); | ||
3674 | bool operator!() const; | ||
3675 | |||
3676 | operator const char *() const { return latin1(); } | ||
3677 | |||
3678 | |||
3679 | QString &setUnicode( const QChar* unicode, uint len ); | ||
3680 | QString &setUnicodeCodes( const ushort* unicode_as_ushorts, uint len ); | ||
3681 | QString &setLatin1( const char*, int len=-1 ); | ||
3682 | |||
3683 | int compare( const QString& s ) const; | ||
3684 | static int compare( const QString& s1, const QString& s2 ) | ||
3685 | { return s1.compare(s2); } | ||
3686 | |||
3687 | |||
3688 | friend QDataStream &operator>>( QDataStream &, QString & ); | ||
3689 | |||
3690 | |||
3691 | void compose(); | ||
3692 | QChar::Direction basicDirection(); | ||
3693 | QString visual(int index = 0, int len = -1); | ||
3694 | |||
3695 | |||
3696 | const char* data() const { return latin1(); } | ||
3697 | |||
3698 | |||
3699 | bool startsWith( const QString& ) const; | ||
3700 | |||
3701 | private: | ||
3702 | QString( int size, bool ); | ||
3703 | |||
3704 | void deref(); | ||
3705 | void real_detach(); | ||
3706 | void setLength( uint pos ); | ||
3707 | void subat( uint ); | ||
3708 | bool findArg(int& pos, int& len) const; | ||
3709 | |||
3710 | static QChar* asciiToUnicode( const char*, uint * len, uint maxlen=(uint)-1 ); | ||
3711 | static QChar* asciiToUnicode( const QByteArray&, uint * len ); | ||
3712 | static char* unicodeToAscii( const QChar*, uint len ); | ||
3713 | |||
3714 | QStringData *d; | ||
3715 | static QStringData* shared_null; | ||
3716 | static QStringData* makeSharedNull(); | ||
3717 | |||
3718 | friend class QConstString; | ||
3719 | QString(QStringData* dd, bool ) : d(dd) { } | ||
3720 | }; | ||
3721 | |||
3722 | class QCharRef { | ||
3723 | friend class QString; | ||
3724 | QString& s; | ||
3725 | uint p; | ||
3726 | QCharRef(QString* str, uint pos) : s(*str), p(pos) { } | ||
3727 | |||
3728 | public: | ||
3729 | |||
3730 | |||
3731 | |||
3732 | |||
3733 | ushort unicode() const { return s.constref(p).unicode(); } | ||
3734 | char latin1() const { return s.constref(p).latin1(); } | ||
3735 | |||
3736 | |||
3737 | QCharRef operator=(char c ) { s.ref(p)=c; return *this; } | ||
3738 | QCharRef operator=(uchar c ) { s.ref(p)=c; return *this; } | ||
3739 | QCharRef operator=(QChar c ) { s.ref(p)=c; return *this; } | ||
3740 | QCharRef operator=(const QCharRef& c ) { s.ref(p)=c.unicode(); return *this; } | ||
3741 | QCharRef operator=(ushort rc ) { s.ref(p)=rc; return *this; } | ||
3742 | QCharRef operator=(short rc ) { s.ref(p)=rc; return *this; } | ||
3743 | QCharRef operator=(uint rc ) { s.ref(p)=rc; return *this; } | ||
3744 | QCharRef operator=(int rc ) { s.ref(p)=rc; return *this; } | ||
3745 | |||
3746 | operator QChar () const { return s.constref(p); } | ||
3747 | |||
3748 | |||
3749 | bool isNull() const { return unicode()==0; } | ||
3750 | bool isPrint() const { return s.constref(p).isPrint(); } | ||
3751 | bool isPunct() const { return s.constref(p).isPunct(); } | ||
3752 | bool isSpace() const { return s.constref(p).isSpace(); } | ||
3753 | bool isMark() const { return s.constref(p).isMark(); } | ||
3754 | bool isLetter() const { return s.constref(p).isLetter(); } | ||
3755 | bool isNumber() const { return s.constref(p).isNumber(); } | ||
3756 | bool isLetterOrNumber() { return s.constref(p).isLetterOrNumber(); } | ||
3757 | bool isDigit() const { return s.constref(p).isDigit(); } | ||
3758 | |||
3759 | int digitValue() const { return s.constref(p).digitValue(); } | ||
3760 | QChar lower() { return s.constref(p).lower(); } | ||
3761 | QChar upper() { return s.constref(p).upper(); } | ||
3762 | |||
3763 | QChar::Category category() const { return s.constref(p).category(); } | ||
3764 | QChar::Direction direction() const { return s.constref(p).direction(); } | ||
3765 | QChar::Joining joining() const { return s.constref(p).joining(); } | ||
3766 | bool mirrored() const { return s.constref(p).mirrored(); } | ||
3767 | QChar mirroredChar() const { return s.constref(p).mirroredChar(); } | ||
3768 | QString decomposition() const { return s.constref(p).decomposition(); } | ||
3769 | QChar::Decomposition decompositionTag() const { return s.constref(p).decompositionTag(); } | ||
3770 | |||
3771 | |||
3772 | uchar cell() const { return s.constref(p).cell(); } | ||
3773 | uchar row() const { return s.constref(p).row(); } | ||
3774 | |||
3775 | }; | ||
3776 | |||
3777 | inline QCharRef QString::at( uint i ) { return QCharRef(this,i); } | ||
3778 | inline QCharRef QString::operator[]( int i ) { return at((uint)i); } | ||
3779 | |||
3780 | |||
3781 | class QConstString : private QString { | ||
3782 | public: | ||
3783 | QConstString( QChar* unicode, uint length ); | ||
3784 | ~QConstString(); | ||
3785 | const QString& string() const { return *this; } | ||
3786 | }; | ||
3787 | |||
3788 | |||
3789 | |||
3790 | |||
3791 | |||
3792 | |||
3793 | QDataStream &operator<<( QDataStream &, const QString & ); | ||
3794 | QDataStream &operator>>( QDataStream &, QString & ); | ||
3795 | |||
3796 | |||
3797 | |||
3798 | |||
3799 | |||
3800 | |||
3801 | |||
3802 | |||
3803 | |||
3804 | |||
3805 | |||
3806 | inline QString::QString() : | ||
3807 | d(shared_null ? shared_null : makeSharedNull()) | ||
3808 | { | ||
3809 | d->ref(); | ||
3810 | } | ||
3811 | |||
3812 | inline QString::~QString() | ||
3813 | { | ||
3814 | if ( d->deref() ) { | ||
3815 | if ( d == shared_null ) | ||
3816 | shared_null = 0; | ||
3817 | d->deleteSelf(); | ||
3818 | } | ||
3819 | } | ||
3820 | |||
3821 | inline QString &QString::operator=( QChar c ) | ||
3822 | { return *this = QString(c); } | ||
3823 | |||
3824 | inline QString &QString::operator=( char c ) | ||
3825 | { return *this = QString(QChar(c)); } | ||
3826 | |||
3827 | inline bool QString::isNull() const | ||
3828 | { return unicode() == 0; } | ||
3829 | |||
3830 | inline bool QString::operator!() const | ||
3831 | { return isNull(); } | ||
3832 | |||
3833 | inline uint QString::length() const | ||
3834 | { return d->len; } | ||
3835 | |||
3836 | inline bool QString::isEmpty() const | ||
3837 | { return length() == 0; } | ||
3838 | |||
3839 | inline QString QString::copy() const | ||
3840 | { return QString( *this ); } | ||
3841 | |||
3842 | inline QString &QString::prepend( const QString & s ) | ||
3843 | { return insert(0,s); } | ||
3844 | |||
3845 | inline QString &QString::prepend( QChar c ) | ||
3846 | { return insert(0,c); } | ||
3847 | |||
3848 | inline QString &QString::prepend( char c ) | ||
3849 | { return insert(0,c); } | ||
3850 | |||
3851 | inline QString &QString::append( const QString & s ) | ||
3852 | { return operator+=(s); } | ||
3853 | |||
3854 | inline QString &QString::append( QChar c ) | ||
3855 | { return operator+=(c); } | ||
3856 | |||
3857 | inline QString &QString::append( char c ) | ||
3858 | { return operator+=(c); } | ||
3859 | |||
3860 | inline QString &QString::setNum( short n, int base ) | ||
3861 | { return setNum((long)n, base); } | ||
3862 | |||
3863 | inline QString &QString::setNum( ushort n, int base ) | ||
3864 | { return setNum((ulong)n, base); } | ||
3865 | |||
3866 | inline QString &QString::setNum( int n, int base ) | ||
3867 | { return setNum((long)n, base); } | ||
3868 | |||
3869 | inline QString &QString::setNum( uint n, int base ) | ||
3870 | { return setNum((ulong)n, base); } | ||
3871 | |||
3872 | inline QString &QString::setNum( float n, char f, int prec ) | ||
3873 | { return setNum((double)n,f,prec); } | ||
3874 | |||
3875 | inline QString QString::arg(int a, int fieldwidth, int base) const | ||
3876 | { return arg((long)a, fieldwidth, base); } | ||
3877 | |||
3878 | inline QString QString::arg(uint a, int fieldwidth, int base) const | ||
3879 | { return arg((ulong)a, fieldwidth, base); } | ||
3880 | |||
3881 | inline QString QString::arg(short a, int fieldwidth, int base) const | ||
3882 | { return arg((long)a, fieldwidth, base); } | ||
3883 | |||
3884 | inline QString QString::arg(ushort a, int fieldwidth, int base) const | ||
3885 | { return arg((ulong)a, fieldwidth, base); } | ||
3886 | |||
3887 | inline int QString::find( char c, int index, bool cs ) const | ||
3888 | { return find(QChar(c), index, cs); } | ||
3889 | |||
3890 | inline int QString::findRev( char c, int index, bool cs) const | ||
3891 | { return findRev( QChar(c), index, cs ); } | ||
3892 | |||
3893 | |||
3894 | |||
3895 | inline int QString::find( const char* str, int index ) const | ||
3896 | { return find(QString::fromLatin1(str), index); } | ||
3897 | |||
3898 | inline int QString::findRev( const char* str, int index ) const | ||
3899 | { return findRev(QString::fromLatin1(str), index); } | ||
3900 | |||
3901 | |||
3902 | |||
3903 | |||
3904 | |||
3905 | |||
3906 | |||
3907 | bool operator!=( const QString &s1, const QString &s2 ); | ||
3908 | bool operator<( const QString &s1, const QString &s2 ); | ||
3909 | bool operator<=( const QString &s1, const QString &s2 ); | ||
3910 | bool operator==( const QString &s1, const QString &s2 ); | ||
3911 | bool operator>( const QString &s1, const QString &s2 ); | ||
3912 | bool operator>=( const QString &s1, const QString &s2 ); | ||
3913 | |||
3914 | bool operator!=( const QString &s1, const char *s2 ); | ||
3915 | bool operator<( const QString &s1, const char *s2 ); | ||
3916 | bool operator<=( const QString &s1, const char *s2 ); | ||
3917 | bool operator==( const QString &s1, const char *s2 ); | ||
3918 | bool operator>( const QString &s1, const char *s2 ); | ||
3919 | bool operator>=( const QString &s1, const char *s2 ); | ||
3920 | bool operator!=( const char *s1, const QString &s2 ); | ||
3921 | bool operator<( const char *s1, const QString &s2 ); | ||
3922 | bool operator<=( const char *s1, const QString &s2 ); | ||
3923 | bool operator==( const char *s1, const QString &s2 ); | ||
3924 | |||
3925 | bool operator>=( const char *s1, const QString &s2 ); | ||
3926 | |||
3927 | |||
3928 | inline QString operator+( const QString &s1, const QString &s2 ) | ||
3929 | { | ||
3930 | QString tmp( s1 ); | ||
3931 | tmp += s2; | ||
3932 | return tmp; | ||
3933 | } | ||
3934 | |||
3935 | |||
3936 | inline QString operator+( const QString &s1, const char *s2 ) | ||
3937 | { | ||
3938 | QString tmp( s1 ); | ||
3939 | tmp += QString::fromLatin1(s2); | ||
3940 | return tmp; | ||
3941 | } | ||
3942 | |||
3943 | inline QString operator+( const char *s1, const QString &s2 ) | ||
3944 | { | ||
3945 | QString tmp = QString::fromLatin1( s1 ); | ||
3946 | tmp += s2; | ||
3947 | return tmp; | ||
3948 | } | ||
3949 | |||
3950 | |||
3951 | inline QString operator+( const QString &s1, QChar c2 ) | ||
3952 | { | ||
3953 | QString tmp( s1 ); | ||
3954 | tmp += c2; | ||
3955 | return tmp; | ||
3956 | } | ||
3957 | |||
3958 | inline QString operator+( const QString &s1, char c2 ) | ||
3959 | { | ||
3960 | QString tmp( s1 ); | ||
3961 | tmp += c2; | ||
3962 | return tmp; | ||
3963 | } | ||
3964 | |||
3965 | inline QString operator+( QChar c1, const QString &s2 ) | ||
3966 | { | ||
3967 | QString tmp; | ||
3968 | tmp += c1; | ||
3969 | tmp += s2; | ||
3970 | return tmp; | ||
3971 | } | ||
3972 | |||
3973 | inline QString operator+( char c1, const QString &s2 ) | ||
3974 | { | ||
3975 | QString tmp; | ||
3976 | tmp += c1; | ||
3977 | tmp += s2; | ||
3978 | return tmp; | ||
3979 | } | ||
3980 | |||
3981 | |||
3982 | |||
3983 | |||
3984 | |||
3985 | |||
3986 | |||
3987 | |||
3988 | |||
3989 | |||
3990 | # 42 "/opt/Qtopia/include/qvariant.h" 2 | ||
3991 | |||
3992 | |||
3993 | |||
3994 | |||
3995 | |||
3996 | class QString; | ||
3997 | class QCString; | ||
3998 | class QFont; | ||
3999 | class QPixmap; | ||
4000 | class QBrush; | ||
4001 | class QRect; | ||
4002 | class QPoint; | ||
4003 | class QImage; | ||
4004 | class QSize; | ||
4005 | class QColor; | ||
4006 | class QPalette; | ||
4007 | class QColorGroup; | ||
4008 | class QIconSet; | ||
4009 | class QDataStream; | ||
4010 | class QPointArray; | ||
4011 | class QRegion; | ||
4012 | class QBitmap; | ||
4013 | class QCursor; | ||
4014 | class QStringList; | ||
4015 | class QSizePolicy; | ||
4016 | |||
4017 | |||
4018 | class QVariant; | ||
4019 | class QVariantPrivate; | ||
4020 | template <class T> class QValueList; | ||
4021 | template <class T> class QValueListConstIterator; | ||
4022 | template <class T> class QValueListNode; | ||
4023 | template <class Key, class T> class QMap; | ||
4024 | template <class Key, class T> class QMapConstIterator; | ||
4025 | |||
4026 | |||
4027 | class QVariant | ||
4028 | { | ||
4029 | public: | ||
4030 | enum Type { | ||
4031 | Invalid, | ||
4032 | Map, | ||
4033 | List, | ||
4034 | String, | ||
4035 | StringList, | ||
4036 | Font, | ||
4037 | Pixmap, | ||
4038 | Brush, | ||
4039 | Rect, | ||
4040 | Size, | ||
4041 | Color, | ||
4042 | Palette, | ||
4043 | ColorGroup, | ||
4044 | IconSet, | ||
4045 | Point, | ||
4046 | Image, | ||
4047 | Int, | ||
4048 | UInt, | ||
4049 | Bool, | ||
4050 | Double, | ||
4051 | CString, | ||
4052 | PointArray, | ||
4053 | Region, | ||
4054 | Bitmap, | ||
4055 | Cursor, | ||
4056 | SizePolicy | ||
4057 | }; | ||
4058 | |||
4059 | QVariant(); | ||
4060 | ~QVariant(); | ||
4061 | QVariant( const QVariant& ); | ||
4062 | QVariant( QDataStream& s ); | ||
4063 | |||
4064 | QVariant( const QString& ); | ||
4065 | QVariant( const QCString& ); | ||
4066 | QVariant( const char* ); | ||
4067 | QVariant( const QStringList& ); | ||
4068 | QVariant( const QFont& ); | ||
4069 | QVariant( const QPixmap& ); | ||
4070 | QVariant( const QImage& ); | ||
4071 | QVariant( const QBrush& ); | ||
4072 | QVariant( const QPoint& ); | ||
4073 | QVariant( const QRect& ); | ||
4074 | QVariant( const QSize& ); | ||
4075 | QVariant( const QColor& ); | ||
4076 | QVariant( const QPalette& ); | ||
4077 | QVariant( const QColorGroup& ); | ||
4078 | QVariant( const QIconSet& ); | ||
4079 | QVariant( const QPointArray& ); | ||
4080 | QVariant( const QRegion& ); | ||
4081 | QVariant( const QBitmap& ); | ||
4082 | QVariant( const QCursor& ); | ||
4083 | QVariant( const QValueList<QVariant>& ); | ||
4084 | QVariant( const QMap<QString,QVariant>& ); | ||
4085 | QVariant( int ); | ||
4086 | QVariant( uint ); | ||
4087 | |||
4088 | QVariant( bool, int ); | ||
4089 | QVariant( double ); | ||
4090 | QVariant( QSizePolicy ); | ||
4091 | |||
4092 | QVariant& operator= ( const QVariant& ); | ||
4093 | bool operator==( const QVariant& ) const; | ||
4094 | bool operator!=( const QVariant& ) const; | ||
4095 | |||
4096 | Type type() const; | ||
4097 | const char* typeName() const; | ||
4098 | |||
4099 | bool canCast( Type ) const; | ||
4100 | |||
4101 | bool isValid() const; | ||
4102 | |||
4103 | void clear(); | ||
4104 | |||
4105 | const QString toString() const; | ||
4106 | const QCString toCString() const; | ||
4107 | const QStringList toStringList() const; | ||
4108 | const QFont toFont() const; | ||
4109 | const QPixmap toPixmap() const; | ||
4110 | const QImage toImage() const; | ||
4111 | const QBrush toBrush() const; | ||
4112 | const QPoint toPoint() const; | ||
4113 | const QRect toRect() const; | ||
4114 | const QSize toSize() const; | ||
4115 | const QColor toColor() const; | ||
4116 | const QPalette toPalette() const; | ||
4117 | const QColorGroup toColorGroup() const; | ||
4118 | const QIconSet toIconSet() const; | ||
4119 | const QPointArray toPointArray() const; | ||
4120 | const QBitmap toBitmap() const; | ||
4121 | const QRegion toRegion() const; | ||
4122 | const QCursor toCursor() const; | ||
4123 | int toInt() const; | ||
4124 | uint toUInt() const; | ||
4125 | bool toBool() const; | ||
4126 | double toDouble() const; | ||
4127 | const QValueList<QVariant> toList() const; | ||
4128 | const QMap<QString,QVariant> toMap() const; | ||
4129 | QSizePolicy toSizePolicy() const; | ||
4130 | |||
4131 | QValueListConstIterator<QVariant> listBegin() const; | ||
4132 | QValueListConstIterator<QVariant> listEnd() const; | ||
4133 | QValueListConstIterator<QString> stringListBegin() const; | ||
4134 | QValueListConstIterator<QString> stringListEnd() const; | ||
4135 | QMapConstIterator<QString,QVariant> mapBegin() const; | ||
4136 | QMapConstIterator<QString,QVariant> mapEnd() const; | ||
4137 | QMapConstIterator<QString,QVariant> mapFind( const QString& ) const; | ||
4138 | |||
4139 | QString& asString(); | ||
4140 | QCString& asCString(); | ||
4141 | QStringList& asStringList(); | ||
4142 | QFont& asFont(); | ||
4143 | QPixmap& asPixmap(); | ||
4144 | QImage& asImage(); | ||
4145 | QBrush& asBrush(); | ||
4146 | QPoint& asPoint(); | ||
4147 | QRect& asRect(); | ||
4148 | QSize& asSize(); | ||
4149 | QColor& asColor(); | ||
4150 | QPalette& asPalette(); | ||
4151 | QColorGroup& asColorGroup(); | ||
4152 | QIconSet& asIconSet(); | ||
4153 | QPointArray& asPointArray(); | ||
4154 | QBitmap& asBitmap(); | ||
4155 | QRegion& asRegion(); | ||
4156 | QCursor& asCursor(); | ||
4157 | int& asInt(); | ||
4158 | uint& asUInt(); | ||
4159 | bool& asBool(); | ||
4160 | double& asDouble(); | ||
4161 | QValueList<QVariant>& asList(); | ||
4162 | QMap<QString,QVariant>& asMap(); | ||
4163 | QSizePolicy& asSizePolicy(); | ||
4164 | |||
4165 | void load( QDataStream& ); | ||
4166 | void save( QDataStream& ) const; | ||
4167 | |||
4168 | static const char* typeToName( Type typ ); | ||
4169 | static Type nameToType( const char* name ); | ||
4170 | |||
4171 | private: | ||
4172 | void detach(); | ||
4173 | |||
4174 | QVariantPrivate* d; | ||
4175 | }; | ||
4176 | |||
4177 | class QVariantPrivate : public QShared | ||
4178 | { | ||
4179 | public: | ||
4180 | QVariantPrivate(); | ||
4181 | QVariantPrivate( QVariantPrivate* ); | ||
4182 | ~QVariantPrivate(); | ||
4183 | |||
4184 | void clear(); | ||
4185 | |||
4186 | QVariant::Type typ; | ||
4187 | union | ||
4188 | { | ||
4189 | uint u; | ||
4190 | int i; | ||
4191 | bool b; | ||
4192 | double d; | ||
4193 | void *ptr; | ||
4194 | } value; | ||
4195 | }; | ||
4196 | |||
4197 | |||
4198 | |||
4199 | # 1 "/opt/Qtopia/include/qvaluelist.h" 1 | ||
4200 | |||
4201 | |||
4202 | |||
4203 | |||
4204 | |||
4205 | |||
4206 | |||
4207 | |||
4208 | |||
4209 | |||
4210 | |||
4211 | |||
4212 | |||
4213 | |||
4214 | |||
4215 | |||
4216 | |||
4217 | |||
4218 | |||
4219 | |||
4220 | |||
4221 | |||
4222 | |||
4223 | |||
4224 | |||
4225 | |||
4226 | |||
4227 | |||
4228 | |||
4229 | |||
4230 | |||
4231 | |||
4232 | |||
4233 | |||
4234 | |||
4235 | |||
4236 | |||
4237 | |||
4238 | |||
4239 | |||
4240 | |||
4241 | |||
4242 | # 1 "/opt/Qtopia/include/qdatastream.h" 1 | ||
4243 | |||
4244 | |||
4245 | |||
4246 | |||
4247 | |||
4248 | |||
4249 | |||
4250 | |||
4251 | |||
4252 | |||
4253 | |||
4254 | |||
4255 | |||
4256 | |||
4257 | |||
4258 | |||
4259 | |||
4260 | |||
4261 | |||
4262 | |||
4263 | |||
4264 | |||
4265 | |||
4266 | |||
4267 | |||
4268 | |||
4269 | |||
4270 | |||
4271 | |||
4272 | |||
4273 | |||
4274 | |||
4275 | |||
4276 | |||
4277 | |||
4278 | |||
4279 | |||
4280 | |||
4281 | |||
4282 | |||
4283 | |||
4284 | # 1 "/opt/Qtopia/include/qiodevice.h" 1 | ||
4285 | |||
4286 | |||
4287 | |||
4288 | |||
4289 | |||
4290 | |||
4291 | |||
4292 | |||
4293 | |||
4294 | |||
4295 | |||
4296 | |||
4297 | |||
4298 | |||
4299 | |||
4300 | |||
4301 | |||
4302 | |||
4303 | |||
4304 | |||
4305 | |||
4306 | |||
4307 | |||
4308 | |||
4309 | |||
4310 | |||
4311 | |||
4312 | |||
4313 | |||
4314 | |||
4315 | |||
4316 | |||
4317 | |||
4318 | |||
4319 | |||
4320 | |||
4321 | |||
4322 | |||
4323 | |||
4324 | |||
4325 | |||
4326 | |||
4327 | |||
4328 | |||
4329 | |||
4330 | |||
4331 | |||
4332 | |||
4333 | |||
4334 | |||
4335 | |||
4336 | |||
4337 | |||
4338 | |||
4339 | |||
4340 | |||
4341 | |||
4342 | |||
4343 | |||
4344 | |||
4345 | |||
4346 | |||
4347 | |||
4348 | |||
4349 | |||
4350 | |||
4351 | |||
4352 | |||
4353 | |||
4354 | |||
4355 | |||
4356 | |||
4357 | |||
4358 | |||
4359 | |||
4360 | |||
4361 | |||
4362 | |||
4363 | |||
4364 | |||
4365 | |||
4366 | |||
4367 | |||
4368 | |||
4369 | |||
4370 | |||
4371 | |||
4372 | class QIODevice | ||
4373 | { | ||
4374 | public: | ||
4375 | QIODevice(); | ||
4376 | virtual ~QIODevice(); | ||
4377 | |||
4378 | int flags() const { return ioMode; } | ||
4379 | int mode() const { return ioMode & 0x00ff ; } | ||
4380 | int state() const { return ioMode & 0xf000 ; } | ||
4381 | |||
4382 | bool isDirectAccess() const { return ((ioMode & 0x0100 ) == 0x0100 ); } | ||
4383 | bool isSequentialAccess() const { return ((ioMode & 0x0200 ) == 0x0200 ); } | ||
4384 | bool isCombinedAccess() const { return ((ioMode & 0x0300 ) == 0x0300 ); } | ||
4385 | bool isBuffered() const { return ((ioMode & 0x0040 ) != 0x0040 ); } | ||
4386 | bool isRaw() const { return ((ioMode & 0x0040 ) == 0x0040 ); } | ||
4387 | bool isSynchronous() const { return ((ioMode & 0x0080 ) != 0x0080 ); } | ||
4388 | bool isAsynchronous() const { return ((ioMode & 0x0080 ) == 0x0080 ); } | ||
4389 | bool isTranslated() const { return ((ioMode & 0x0010 ) == 0x0010 ); } | ||
4390 | bool isReadable() const { return ((ioMode & 0x0001 ) == 0x0001 ); } | ||
4391 | bool isWritable() const { return ((ioMode & 0x0002 ) == 0x0002 ); } | ||
4392 | bool isReadWrite() const { return ((ioMode & 0x0003 ) == 0x0003 ); } | ||
4393 | bool isInactive() const { return state() == 0; } | ||
4394 | bool isOpen() const { return state() == 0x1000 ; } | ||
4395 | |||
4396 | int status() const { return ioSt; } | ||
4397 | void resetStatus(){ ioSt = 0 ; } | ||
4398 | |||
4399 | virtual bool open( int mode ) = 0; | ||
4400 | virtual void close() = 0; | ||
4401 | virtual void flush() = 0; | ||
4402 | |||
4403 | virtual uint size() const = 0; | ||
4404 | virtual int at() const; | ||
4405 | virtual bool at( int ); | ||
4406 | virtual bool atEnd() const; | ||
4407 | bool reset() { return at(0); } | ||
4408 | |||
4409 | virtual int readBlock( char *data, uint maxlen ) = 0; | ||
4410 | virtual int writeBlock( const char *data, uint len ) = 0; | ||
4411 | virtual int readLine( char *data, uint maxlen ); | ||
4412 | int writeBlock( const QByteArray& data ); | ||
4413 | QByteArray readAll(); | ||
4414 | |||
4415 | virtual int getch() = 0; | ||
4416 | virtual int putch( int ) = 0; | ||
4417 | virtual int ungetch( int ) = 0; | ||
4418 | |||
4419 | protected: | ||
4420 | void setFlags( int f ) { ioMode = f; } | ||
4421 | void setType( int ); | ||
4422 | void setMode( int ); | ||
4423 | void setState( int ); | ||
4424 | void setStatus( int ); | ||
4425 | int ioIndex; | ||
4426 | |||
4427 | private: | ||
4428 | int ioMode; | ||
4429 | int ioSt; | ||
4430 | |||
4431 | private: | ||
4432 | |||
4433 | QIODevice( const QIODevice & ); | ||
4434 | QIODevice &operator=( const QIODevice & ); | ||
4435 | |||
4436 | }; | ||
4437 | |||
4438 | |||
4439 | |||
4440 | # 42 "/opt/Qtopia/include/qdatastream.h" 2 | ||
4441 | |||
4442 | |||
4443 | |||
4444 | |||
4445 | |||
4446 | class QDataStream | ||
4447 | { | ||
4448 | public: | ||
4449 | QDataStream(); | ||
4450 | QDataStream( QIODevice * ); | ||
4451 | QDataStream( QByteArray, int mode ); | ||
4452 | virtual ~QDataStream(); | ||
4453 | |||
4454 | QIODevice*device() const; | ||
4455 | void setDevice( QIODevice * ); | ||
4456 | void unsetDevice(); | ||
4457 | |||
4458 | bool atEnd() const; | ||
4459 | bool eof() const; | ||
4460 | |||
4461 | enum ByteOrder { BigEndian, LittleEndian }; | ||
4462 | int byteOrder()const; | ||
4463 | void setByteOrder( int ); | ||
4464 | |||
4465 | bool isPrintableData() const; | ||
4466 | void setPrintableData( bool ); | ||
4467 | |||
4468 | int version() const; | ||
4469 | void setVersion( int ); | ||
4470 | |||
4471 | QDataStream &operator>>( Q_INT8 &i ); | ||
4472 | QDataStream &operator>>( Q_UINT8 &i ); | ||
4473 | QDataStream &operator>>( Q_INT16 &i ); | ||
4474 | QDataStream &operator>>( Q_UINT16 &i ); | ||
4475 | QDataStream &operator>>( Q_INT32 &i ); | ||
4476 | QDataStream &operator>>( Q_UINT32 &i ); | ||
4477 | QDataStream &operator>>( Q_INT64 &i ); | ||
4478 | QDataStream &operator>>( Q_UINT64 &i ); | ||
4479 | |||
4480 | QDataStream &operator>>( float &f ); | ||
4481 | QDataStream &operator>>( double &f ); | ||
4482 | QDataStream &operator>>( char *&str ); | ||
4483 | |||
4484 | QDataStream &operator<<( Q_INT8 i ); | ||
4485 | QDataStream &operator<<( Q_UINT8 i ); | ||
4486 | QDataStream &operator<<( Q_INT16 i ); | ||
4487 | QDataStream &operator<<( Q_UINT16 i ); | ||
4488 | QDataStream &operator<<( Q_INT32 i ); | ||
4489 | QDataStream &operator<<( Q_UINT32 i ); | ||
4490 | QDataStream &operator<<( Q_INT64 i ); | ||
4491 | QDataStream &operator<<( Q_UINT64 i ); | ||
4492 | QDataStream &operator<<( float f ); | ||
4493 | QDataStream &operator<<( double f ); | ||
4494 | QDataStream &operator<<( const char *str ); | ||
4495 | |||
4496 | QDataStream &readBytes( char *&, uint &len ); | ||
4497 | QDataStream &readRawBytes( char *, uint len ); | ||
4498 | |||
4499 | QDataStream &writeBytes( const char *, uint len ); | ||
4500 | QDataStream &writeRawBytes( const char *, uint len ); | ||
4501 | |||
4502 | private: | ||
4503 | QIODevice*dev; | ||
4504 | bool owndev; | ||
4505 | int byteorder; | ||
4506 | bool printable; | ||
4507 | bool noswap; | ||
4508 | int ver; | ||
4509 | |||
4510 | private: | ||
4511 | |||
4512 | QDataStream( const QDataStream & ); | ||
4513 | QDataStream &operator=( const QDataStream & ); | ||
4514 | |||
4515 | }; | ||
4516 | |||
4517 | |||
4518 | |||
4519 | |||
4520 | |||
4521 | |||
4522 | inline QIODevice *QDataStream::device() const | ||
4523 | { return dev; } | ||
4524 | |||
4525 | inline bool QDataStream::atEnd() const | ||
4526 | { return dev ? dev->atEnd() : TRUE; } | ||
4527 | |||
4528 | inline bool QDataStream::eof() const | ||
4529 | { return atEnd(); } | ||
4530 | |||
4531 | inline int QDataStream::byteOrder() const | ||
4532 | { return byteorder; } | ||
4533 | |||
4534 | inline bool QDataStream::isPrintableData() const | ||
4535 | { return printable; } | ||
4536 | |||
4537 | inline void QDataStream::setPrintableData( bool p ) | ||
4538 | { printable = p; } | ||
4539 | |||
4540 | inline int QDataStream::version() const | ||
4541 | { return ver; } | ||
4542 | |||
4543 | inline void QDataStream::setVersion( int v ) | ||
4544 | { ver = v; } | ||
4545 | |||
4546 | inline QDataStream &QDataStream::operator>>( Q_UINT8 &i ) | ||
4547 | { return *this >> (Q_INT8&)i; } | ||
4548 | |||
4549 | inline QDataStream &QDataStream::operator>>( Q_UINT16 &i ) | ||
4550 | { return *this >> (Q_INT16&)i; } | ||
4551 | |||
4552 | inline QDataStream &QDataStream::operator>>( Q_UINT32 &i ) | ||
4553 | { return *this >> (Q_INT32&)i; } | ||
4554 | |||
4555 | inline QDataStream &QDataStream::operator>>( Q_UINT64 &i ) | ||
4556 | { return *this >> (Q_INT64&)i; } | ||
4557 | |||
4558 | inline QDataStream &QDataStream::operator<<( Q_UINT8 i ) | ||
4559 | { return *this << (Q_INT8)i; } | ||
4560 | |||
4561 | inline QDataStream &QDataStream::operator<<( Q_UINT16 i ) | ||
4562 | { return *this << (Q_INT16)i; } | ||
4563 | |||
4564 | inline QDataStream &QDataStream::operator<<( Q_UINT32 i ) | ||
4565 | { return *this << (Q_INT32)i; } | ||
4566 | |||
4567 | inline QDataStream &QDataStream::operator<<( Q_UINT64 i ) | ||
4568 | { return *this << (Q_INT64)i; } | ||
4569 | |||
4570 | |||
4571 | |||
4572 | |||
4573 | # 43 "/opt/Qtopia/include/qvaluelist.h" 2 | ||
4574 | |||
4575 | |||
4576 | |||
4577 | |||
4578 | |||
4579 | |||
4580 | |||
4581 | template <class T> | ||
4582 | class QValueListNode | ||
4583 | { | ||
4584 | public: | ||
4585 | QValueListNode( const T& t ) : data( t ) { } | ||
4586 | QValueListNode() { } | ||
4587 | |||
4588 | |||
4589 | |||
4590 | |||
4591 | |||
4592 | QValueListNode<T>* next; | ||
4593 | QValueListNode<T>* prev; | ||
4594 | T data; | ||
4595 | }; | ||
4596 | |||
4597 | template<class T> | ||
4598 | class QValueListIterator | ||
4599 | { | ||
4600 | public: | ||
4601 | |||
4602 | |||
4603 | |||
4604 | typedef QValueListNode<T>* NodePtr; | ||
4605 | |||
4606 | |||
4607 | |||
4608 | |||
4609 | NodePtr node; | ||
4610 | |||
4611 | |||
4612 | |||
4613 | |||
4614 | QValueListIterator() : node( 0 ) {} | ||
4615 | QValueListIterator( NodePtr p ) : node( p ) {} | ||
4616 | QValueListIterator( const QValueListIterator<T>& it ) : node( it.node ) {} | ||
4617 | |||
4618 | bool operator==( const QValueListIterator<T>& it ) const { return node == it.node; } | ||
4619 | bool operator!=( const QValueListIterator<T>& it ) const { return node != it.node; } | ||
4620 | const T& operator*() const { return node->data; } | ||
4621 | T& operator*() { return node->data; } | ||
4622 | |||
4623 | |||
4624 | |||
4625 | |||
4626 | QValueListIterator<T>& operator++() { | ||
4627 | node = node->next; | ||
4628 | return *this; | ||
4629 | } | ||
4630 | |||
4631 | QValueListIterator<T> operator++(int) { | ||
4632 | QValueListIterator<T> tmp = *this; | ||
4633 | node = node->next; | ||
4634 | return tmp; | ||
4635 | } | ||
4636 | |||
4637 | QValueListIterator<T>& operator--() { | ||
4638 | node = node->prev; | ||
4639 | return *this; | ||
4640 | } | ||
4641 | |||
4642 | QValueListIterator<T> operator--(int) { | ||
4643 | QValueListIterator<T> tmp = *this; | ||
4644 | node = node->prev; | ||
4645 | return tmp; | ||
4646 | } | ||
4647 | }; | ||
4648 | |||
4649 | template<class T> | ||
4650 | class QValueListConstIterator | ||
4651 | { | ||
4652 | public: | ||
4653 | |||
4654 | |||
4655 | |||
4656 | typedef QValueListNode<T>* NodePtr; | ||
4657 | |||
4658 | |||
4659 | |||
4660 | |||
4661 | NodePtr node; | ||
4662 | |||
4663 | |||
4664 | |||
4665 | |||
4666 | QValueListConstIterator() : node( 0 ) {} | ||
4667 | QValueListConstIterator( NodePtr p ) : node( p ) {} | ||
4668 | QValueListConstIterator( const QValueListConstIterator<T>& it ) : node( it.node ) {} | ||
4669 | QValueListConstIterator( const QValueListIterator<T>& it ) : node( it.node ) {} | ||
4670 | |||
4671 | bool operator==( const QValueListConstIterator<T>& it ) const { return node == it.node; } | ||
4672 | bool operator!=( const QValueListConstIterator<T>& it ) const { return node != it.node; } | ||
4673 | const T& operator*() const { return node->data; } | ||
4674 | |||
4675 | |||
4676 | |||
4677 | |||
4678 | QValueListConstIterator<T>& operator++() { | ||
4679 | node = node->next; | ||
4680 | return *this; | ||
4681 | } | ||
4682 | |||
4683 | QValueListConstIterator<T> operator++(int) { | ||
4684 | QValueListConstIterator<T> tmp = *this; | ||
4685 | node = node->next; | ||
4686 | return tmp; | ||
4687 | } | ||
4688 | |||
4689 | QValueListConstIterator<T>& operator--() { | ||
4690 | node = node->prev; | ||
4691 | return *this; | ||
4692 | } | ||
4693 | |||
4694 | QValueListConstIterator<T> operator--(int) { | ||
4695 | QValueListConstIterator<T> tmp = *this; | ||
4696 | node = node->prev; | ||
4697 | return tmp; | ||
4698 | } | ||
4699 | }; | ||
4700 | |||
4701 | template <class T> | ||
4702 | class QValueListPrivate : public QShared | ||
4703 | { | ||
4704 | public: | ||
4705 | |||
4706 | |||
4707 | |||
4708 | typedef QValueListIterator<T> Iterator; | ||
4709 | typedef QValueListConstIterator<T> ConstIterator; | ||
4710 | typedef QValueListNode<T> Node; | ||
4711 | typedef QValueListNode<T>* NodePtr; | ||
4712 | |||
4713 | |||
4714 | |||
4715 | |||
4716 | QValueListPrivate() { node = new Node; node->next = node->prev = node; nodes = 0; } | ||
4717 | QValueListPrivate( const QValueListPrivate<T>& _p ) : QShared() { | ||
4718 | node = new Node; node->next = node->prev = node; nodes = 0; | ||
4719 | Iterator b( _p.node->next ); | ||
4720 | Iterator e( _p.node ); | ||
4721 | Iterator i( node ); | ||
4722 | while( b != e ) | ||
4723 | insert( i, *b++ ); | ||
4724 | } | ||
4725 | |||
4726 | void derefAndDelete() | ||
4727 | { | ||
4728 | if ( deref() ) | ||
4729 | delete this; | ||
4730 | } | ||
4731 | |||
4732 | |||
4733 | |||
4734 | |||
4735 | |||
4736 | ~QValueListPrivate() { | ||
4737 | NodePtr p = node->next; | ||
4738 | while( p != node ) { | ||
4739 | NodePtr x = p->next; | ||
4740 | delete p; | ||
4741 | p = x; | ||
4742 | } | ||
4743 | delete node; | ||
4744 | } | ||
4745 | |||
4746 | Iterator insert( Iterator it, const T& x ) { | ||
4747 | NodePtr p = new Node( x ); | ||
4748 | p->next = it.node; | ||
4749 | p->prev = it.node->prev; | ||
4750 | it.node->prev->next = p; | ||
4751 | it.node->prev = p; | ||
4752 | nodes++; | ||
4753 | return p; | ||
4754 | } | ||
4755 | |||
4756 | Iterator remove( Iterator it ) { | ||
4757 | (( it.node != node ) ? (void)0 : qWarning("ASSERT: \"%s\" in %s (%d)","it.node != node","/opt/Qtopia/include/qvaluelist.h",226)) ; | ||
4758 | NodePtr next = it.node->next; | ||
4759 | NodePtr prev = it.node->prev; | ||
4760 | prev->next = next; | ||
4761 | next->prev = prev; | ||
4762 | delete it.node; | ||
4763 | nodes--; | ||
4764 | return Iterator( next ); | ||
4765 | } | ||
4766 | |||
4767 | NodePtr find( NodePtr start, const T& x ) const { | ||
4768 | ConstIterator first( start ); | ||
4769 | ConstIterator last( node ); | ||
4770 | while( first != last) { | ||
4771 | if ( *first == x ) | ||
4772 | return first.node; | ||
4773 | ++first; | ||
4774 | } | ||
4775 | return last.node; | ||
4776 | } | ||
4777 | |||
4778 | int findIndex( NodePtr start, const T& x ) const { | ||
4779 | ConstIterator first( start ); | ||
4780 | ConstIterator last( node ); | ||
4781 | int pos = 0; | ||
4782 | while( first != last) { | ||
4783 | if ( *first == x ) | ||
4784 | return pos; | ||
4785 | ++first; | ||
4786 | ++pos; | ||
4787 | } | ||
4788 | return -1; | ||
4789 | } | ||
4790 | |||
4791 | uint contains( const T& x ) const { | ||
4792 | uint result = 0; | ||
4793 | Iterator first = Iterator( node->next ); | ||
4794 | Iterator last = Iterator( node ); | ||
4795 | while( first != last) { | ||
4796 | if ( *first == x ) | ||
4797 | ++result; | ||
4798 | ++first; | ||
4799 | } | ||
4800 | return result; | ||
4801 | } | ||
4802 | |||
4803 | void remove( const T& x ) { | ||
4804 | Iterator first = Iterator( node->next ); | ||
4805 | Iterator last = Iterator( node ); | ||
4806 | while( first != last) { | ||
4807 | if ( *first == x ) | ||
4808 | first = remove( first ); | ||
4809 | else | ||
4810 | ++first; | ||
4811 | } | ||
4812 | } | ||
4813 | |||
4814 | NodePtr at( uint i ) const { | ||
4815 | (( i <= nodes ) ? (void)0 : qWarning("ASSERT: \"%s\" in %s (%d)","i <= nodes","/opt/Qtopia/include/qvaluelist.h",284)) ; | ||
4816 | NodePtr p = node->next; | ||
4817 | for( uint x = 0; x < i; ++x ) | ||
4818 | p = p->next; | ||
4819 | return p; | ||
4820 | } | ||
4821 | |||
4822 | void clear() { | ||
4823 | nodes = 0; | ||
4824 | NodePtr p = node->next; | ||
4825 | while( p != node ) { | ||
4826 | NodePtr next = p->next; | ||
4827 | delete p; | ||
4828 | p = next; | ||
4829 | } | ||
4830 | node->next = node->prev = node; | ||
4831 | } | ||
4832 | |||
4833 | NodePtr node; | ||
4834 | uint nodes; | ||
4835 | }; | ||
4836 | |||
4837 | template <class T> | ||
4838 | class QValueList | ||
4839 | { | ||
4840 | public: | ||
4841 | |||
4842 | |||
4843 | |||
4844 | typedef QValueListIterator<T> Iterator; | ||
4845 | typedef QValueListConstIterator<T> ConstIterator; | ||
4846 | typedef T ValueType; | ||
4847 | |||
4848 | |||
4849 | |||
4850 | |||
4851 | QValueList() { sh = new QValueListPrivate<T>; } | ||
4852 | QValueList( const QValueList<T>& l ) { sh = l.sh; sh->ref(); } | ||
4853 | ~QValueList() { sh->derefAndDelete(); } | ||
4854 | |||
4855 | QValueList<T>& operator= ( const QValueList<T>& l ) | ||
4856 | { | ||
4857 | l.sh->ref(); | ||
4858 | sh->derefAndDelete(); | ||
4859 | sh = l.sh; | ||
4860 | return *this; | ||
4861 | } | ||
4862 | |||
4863 | QValueList<T> operator+ ( const QValueList<T>& l ) const | ||
4864 | { | ||
4865 | QValueList<T> l2( *this ); | ||
4866 | for( ConstIterator it = l.begin(); it != l.end(); ++it ) | ||
4867 | l2.append( *it ); | ||
4868 | return l2; | ||
4869 | } | ||
4870 | |||
4871 | QValueList<T>& operator+= ( const QValueList<T>& l ) | ||
4872 | { | ||
4873 | for( ConstIterator it = l.begin(); it != l.end(); ++it ) | ||
4874 | append( *it ); | ||
4875 | return *this; | ||
4876 | } | ||
4877 | |||
4878 | bool operator== ( const QValueList<T>& l ) const | ||
4879 | { | ||
4880 | if ( count() != l.count() ) | ||
4881 | return FALSE; | ||
4882 | ConstIterator it2 = begin(); | ||
4883 | ConstIterator it = l.begin(); | ||
4884 | for( ; it != l.end(); ++it, ++it2 ) | ||
4885 | if ( !( *it == *it2 ) ) | ||
4886 | return FALSE; | ||
4887 | return TRUE; | ||
4888 | } | ||
4889 | |||
4890 | bool operator!= ( const QValueList<T>& l ) const { return !( *this == l ); } | ||
4891 | |||
4892 | Iterator begin() { detach(); return Iterator( sh->node->next ); } | ||
4893 | ConstIterator begin() const { return ConstIterator( sh->node->next ); } | ||
4894 | Iterator end() { detach(); return Iterator( sh->node ); } | ||
4895 | ConstIterator end() const { return ConstIterator( sh->node ); } | ||
4896 | Iterator fromLast() { detach(); return Iterator( sh->node->prev ); } | ||
4897 | ConstIterator fromLast() const { return ConstIterator( sh->node->prev ); } | ||
4898 | |||
4899 | bool isEmpty() const { return ( sh->nodes == 0 ); } | ||
4900 | |||
4901 | Iterator insert( Iterator it, const T& x ) { detach(); return sh->insert( it, x ); } | ||
4902 | |||
4903 | Iterator append( const T& x ) { detach(); return sh->insert( end(), x ); } | ||
4904 | Iterator prepend( const T& x ) { detach(); return sh->insert( begin(), x ); } | ||
4905 | |||
4906 | Iterator remove( Iterator it ) { detach(); return sh->remove( it ); } | ||
4907 | void remove( const T& x ) { detach(); sh->remove( x ); } | ||
4908 | |||
4909 | T& first() { detach(); return sh->node->next->data; } | ||
4910 | const T& first() const { return sh->node->next->data; } | ||
4911 | T& last() { detach(); return sh->node->prev->data; } | ||
4912 | const T& last() const { return sh->node->prev->data; } | ||
4913 | |||
4914 | T& operator[] ( uint i ) { detach(); return sh->at(i)->data; } | ||
4915 | const T& operator[] ( uint i ) const { return sh->at(i)->data; } | ||
4916 | Iterator at( uint i ) { detach(); return Iterator( sh->at(i) ); } | ||
4917 | ConstIterator at( uint i ) const { return ConstIterator( sh->at(i) ); } | ||
4918 | Iterator find ( const T& x ) { detach(); return Iterator( sh->find( sh->node->next, x) ); } | ||
4919 | ConstIterator find ( const T& x ) const { return ConstIterator( sh->find( sh->node->next, x) ); } | ||
4920 | Iterator find ( Iterator it, const T& x ) { detach(); return Iterator( sh->find( it.node, x ) ); } | ||
4921 | ConstIterator find ( ConstIterator it, const T& x ) const { return ConstIterator( sh->find( it.node, x ) ); } | ||
4922 | int findIndex( const T& x ) const { return sh->findIndex( sh->node->next, x) ; } | ||
4923 | uint contains( const T& x ) const { return sh->contains( x ); } | ||
4924 | |||
4925 | uint count() const { return sh->nodes; } | ||
4926 | |||
4927 | void clear() { if ( sh->count == 1 ) sh->clear(); else { sh->deref(); sh = new QValueListPrivate<T>; } } | ||
4928 | |||
4929 | |||
4930 | QValueList<T>& operator+= ( const T& x ) | ||
4931 | { | ||
4932 | append( x ); | ||
4933 | return *this; | ||
4934 | } | ||
4935 | QValueList<T>& operator<< ( const T& x ) | ||
4936 | { | ||
4937 | append( x ); | ||
4938 | return *this; | ||
4939 | } | ||
4940 | |||
4941 | |||
4942 | protected: | ||
4943 | |||
4944 | |||
4945 | |||
4946 | void detach() { if ( sh->count > 1 ) { sh->deref(); sh = new QValueListPrivate<T>( *sh ); } } | ||
4947 | |||
4948 | |||
4949 | |||
4950 | |||
4951 | QValueListPrivate<T>* sh; | ||
4952 | }; | ||
4953 | |||
4954 | |||
4955 | template<class T> | ||
4956 | inline QDataStream& operator>>( QDataStream& s, QValueList<T>& l ) | ||
4957 | { | ||
4958 | l.clear(); | ||
4959 | Q_UINT32 c; | ||
4960 | s >> c; | ||
4961 | for( Q_UINT32 i = 0; i < c; ++i ) | ||
4962 | { | ||
4963 | T t; | ||
4964 | s >> t; | ||
4965 | l.append( t ); | ||
4966 | } | ||
4967 | return s; | ||
4968 | } | ||
4969 | |||
4970 | template<class T> | ||
4971 | inline QDataStream& operator<<( QDataStream& s, const QValueList<T>& l ) | ||
4972 | { | ||
4973 | s << (Q_UINT32)l.count(); | ||
4974 | QValueListConstIterator<T> it = l.begin(); | ||
4975 | for( ; it != l.end(); ++it ) | ||
4976 | s << *it; | ||
4977 | return s; | ||
4978 | } | ||
4979 | |||
4980 | |||
4981 | # 250 "/opt/Qtopia/include/qvariant.h" 2 | ||
4982 | |||
4983 | # 1 "/opt/Qtopia/include/qstringlist.h" 1 | ||
4984 | |||
4985 | |||
4986 | |||
4987 | |||
4988 | |||
4989 | |||
4990 | |||
4991 | |||
4992 | |||
4993 | |||
4994 | |||
4995 | |||
4996 | |||
4997 | |||
4998 | |||
4999 | |||
5000 | |||
5001 | |||
5002 | |||
5003 | |||
5004 | |||
5005 | |||
5006 | |||
5007 | |||
5008 | |||
5009 | |||
5010 | |||
5011 | |||
5012 | |||
5013 | |||
5014 | |||
5015 | |||
5016 | |||
5017 | |||
5018 | |||
5019 | |||
5020 | |||
5021 | |||
5022 | |||
5023 | |||
5024 | |||
5025 | |||
5026 | |||
5027 | # 1 "/opt/Qtopia/include/qregexp.h" 1 | ||
5028 | |||
5029 | |||
5030 | |||
5031 | |||
5032 | |||
5033 | |||
5034 | |||
5035 | |||
5036 | |||
5037 | |||
5038 | |||
5039 | |||
5040 | |||
5041 | |||
5042 | |||
5043 | |||
5044 | |||
5045 | |||
5046 | |||
5047 | |||
5048 | |||
5049 | |||
5050 | |||
5051 | |||
5052 | |||
5053 | |||
5054 | |||
5055 | |||
5056 | |||
5057 | |||
5058 | |||
5059 | |||
5060 | |||
5061 | |||
5062 | |||
5063 | |||
5064 | |||
5065 | |||
5066 | |||
5067 | |||
5068 | |||
5069 | |||
5070 | |||
5071 | |||
5072 | |||
5073 | class QRegExp | ||
5074 | { | ||
5075 | public: | ||
5076 | QRegExp(); | ||
5077 | QRegExp( const QString &, bool caseSensitive=TRUE, bool wildcard=FALSE ); | ||
5078 | QRegExp( const QRegExp & ); | ||
5079 | ~QRegExp(); | ||
5080 | QRegExp &operator=( const QRegExp & ); | ||
5081 | QRegExp &operator=( const QString &pattern ); | ||
5082 | |||
5083 | booloperator==( const QRegExp & ) const; | ||
5084 | booloperator!=( const QRegExp &r ) const | ||
5085 | { return !(this->operator==(r)); } | ||
5086 | |||
5087 | bool isEmpty() const{ return rxdata == 0; } | ||
5088 | bool isValid() const{ return error == 0; } | ||
5089 | |||
5090 | bool caseSensitive() const{ return cs; } | ||
5091 | voidsetCaseSensitive( bool ); | ||
5092 | |||
5093 | bool wildcard() const{ return wc; } | ||
5094 | voidsetWildcard( bool ); | ||
5095 | |||
5096 | QString pattern() const{ return rxstring; } | ||
5097 | |||
5098 | voidsetPattern( const QString& pattern ) | ||
5099 | { operator=( pattern ); } | ||
5100 | |||
5101 | int match( const QString &str, int index=0, int *len=0, | ||
5102 | bool indexIsStart = TRUE ) const; | ||
5103 | int find( const QString& str, int index ) | ||
5104 | { return match( str, index ); } | ||
5105 | |||
5106 | protected: | ||
5107 | voidcompile(); | ||
5108 | const QChar *matchstr( uint *, const QChar *, uint, const QChar * ) const; | ||
5109 | |||
5110 | private: | ||
5111 | QString rxstring; | ||
5112 | uint *rxdata; | ||
5113 | int error; | ||
5114 | bool cs; | ||
5115 | bool wc; | ||
5116 | }; | ||
5117 | |||
5118 | |||
5119 | |||
5120 | # 44 "/opt/Qtopia/include/qstringlist.h" 2 | ||
5121 | |||
5122 | |||
5123 | |||
5124 | |||
5125 | |||
5126 | class QStrList; | ||
5127 | |||
5128 | class QStringList : public QValueList<QString> | ||
5129 | { | ||
5130 | public: | ||
5131 | QStringList() { } | ||
5132 | QStringList( const QStringList& l ) : QValueList<QString>(l) { } | ||
5133 | QStringList( const QValueList<QString>& l ) : QValueList<QString>(l) { } | ||
5134 | QStringList( const QString& i ) { append(i); } | ||
5135 | |||
5136 | QStringList( const char* i ) { append(i); } | ||
5137 | |||
5138 | |||
5139 | static QStringList fromStrList(const QStrList&); | ||
5140 | |||
5141 | void sort(); | ||
5142 | |||
5143 | static QStringList split( const QString &sep, const QString &str, bool allowEmptyEntries = FALSE ); | ||
5144 | static QStringList split( const QChar &sep, const QString &str, bool allowEmptyEntries = FALSE ); | ||
5145 | static QStringList split( const QRegExp &sep, const QString &str, bool allowEmptyEntries = FALSE ); | ||
5146 | QString join( const QString &sep ) const; | ||
5147 | |||
5148 | QStringList grep( const QString &str, bool cs = TRUE ) const; | ||
5149 | QStringList grep( const QRegExp &expr ) const; | ||
5150 | }; | ||
5151 | |||
5152 | |||
5153 | class QDataStream; | ||
5154 | extern QDataStream &operator>>( QDataStream &, QStringList& ); | ||
5155 | extern QDataStream &operator<<( QDataStream &, const QStringList& ); | ||
5156 | |||
5157 | |||
5158 | |||
5159 | # 251 "/opt/Qtopia/include/qvariant.h" 2 | ||
5160 | |||
5161 | # 1 "/opt/Qtopia/include/qmap.h" 1 | ||
5162 | |||
5163 | |||
5164 | |||
5165 | |||
5166 | |||
5167 | |||
5168 | |||
5169 | |||
5170 | |||
5171 | |||
5172 | |||
5173 | |||
5174 | |||
5175 | |||
5176 | |||
5177 | |||
5178 | |||
5179 | |||
5180 | |||
5181 | |||
5182 | |||
5183 | |||
5184 | |||
5185 | |||
5186 | |||
5187 | |||
5188 | |||
5189 | |||
5190 | |||
5191 | |||
5192 | |||
5193 | |||
5194 | |||
5195 | |||
5196 | |||
5197 | |||
5198 | |||
5199 | |||
5200 | |||
5201 | |||
5202 | |||
5203 | |||
5204 | |||
5205 | |||
5206 | |||
5207 | |||
5208 | struct QMapNodeBase | ||
5209 | { | ||
5210 | enum Color { Red, Black }; | ||
5211 | |||
5212 | QMapNodeBase* left; | ||
5213 | QMapNodeBase* right; | ||
5214 | QMapNodeBase* parent; | ||
5215 | |||
5216 | Color color; | ||
5217 | |||
5218 | QMapNodeBase* minimum() { | ||
5219 | QMapNodeBase* x = this; | ||
5220 | while ( x->left ) | ||
5221 | x = x->left; | ||
5222 | return x; | ||
5223 | } | ||
5224 | |||
5225 | QMapNodeBase* maximum() { | ||
5226 | QMapNodeBase* x = this; | ||
5227 | while ( x->right ) | ||
5228 | x = x->right; | ||
5229 | return x; | ||
5230 | } | ||
5231 | }; | ||
5232 | |||
5233 | |||
5234 | template <class K, class T> | ||
5235 | struct QMapNode : public QMapNodeBase | ||
5236 | { | ||
5237 | QMapNode( const K& _key, const T& _data ) { data = _data; key = _key; } | ||
5238 | QMapNode( const K& _key ) { key = _key; } | ||
5239 | QMapNode( const QMapNode<K,T>& _n ) { key = _n.key; data = _n.data; } | ||
5240 | QMapNode() { } | ||
5241 | T data; | ||
5242 | K key; | ||
5243 | }; | ||
5244 | |||
5245 | |||
5246 | template<class K, class T> | ||
5247 | class QMapIterator | ||
5248 | { | ||
5249 | public: | ||
5250 | |||
5251 | |||
5252 | |||
5253 | typedef QMapNode< K, T >* NodePtr; | ||
5254 | |||
5255 | |||
5256 | |||
5257 | |||
5258 | QMapNode<K,T>* node; | ||
5259 | |||
5260 | |||
5261 | |||
5262 | |||
5263 | QMapIterator() : node( 0 ) {} | ||
5264 | QMapIterator( QMapNode<K,T>* p ) : node( p ) {} | ||
5265 | QMapIterator( const QMapIterator<K,T>& it ) : node( it.node ) {} | ||
5266 | |||
5267 | bool operator==( const QMapIterator<K,T>& it ) const { return node == it.node; } | ||
5268 | bool operator!=( const QMapIterator<K,T>& it ) const { return node != it.node; } | ||
5269 | T& operator*() { return node->data; } | ||
5270 | const T& operator*() const { return node->data; } | ||
5271 | |||
5272 | |||
5273 | |||
5274 | |||
5275 | const K& key() const { return node->key; } | ||
5276 | T& data() { return node->data; } | ||
5277 | const T& data() const { return node->data; } | ||
5278 | |||
5279 | private: | ||
5280 | int inc() { | ||
5281 | QMapNodeBase* tmp = node; | ||
5282 | if ( tmp->right ) { | ||
5283 | tmp = tmp->right; | ||
5284 | while ( tmp->left ) | ||
5285 | tmp = tmp->left; | ||
5286 | } else { | ||
5287 | QMapNodeBase* y = tmp->parent; | ||
5288 | while (tmp == y->right) { | ||
5289 | tmp = y; | ||
5290 | y = y->parent; | ||
5291 | } | ||
5292 | if (tmp->right != y) | ||
5293 | tmp = y; | ||
5294 | } | ||
5295 | node = (NodePtr)tmp; | ||
5296 | return 0; | ||
5297 | } | ||
5298 | |||
5299 | int dec() { | ||
5300 | QMapNodeBase* tmp = node; | ||
5301 | if (tmp->color == QMapNodeBase::Red && | ||
5302 | tmp->parent->parent == tmp ) { | ||
5303 | tmp = tmp->right; | ||
5304 | } else if (tmp->left != 0) { | ||
5305 | QMapNodeBase* y = tmp->left; | ||
5306 | while ( y->right ) | ||
5307 | y = y->right; | ||
5308 | tmp = y; | ||
5309 | } else { | ||
5310 | QMapNodeBase* y = tmp->parent; | ||
5311 | while (tmp == y->left) { | ||
5312 | tmp = y; | ||
5313 | y = y->parent; | ||
5314 | } | ||
5315 | tmp = y; | ||
5316 | } | ||
5317 | node = (NodePtr)tmp; | ||
5318 | return 0; | ||
5319 | } | ||
5320 | |||
5321 | public: | ||
5322 | QMapIterator<K,T>& operator++() { | ||
5323 | inc(); | ||
5324 | return *this; | ||
5325 | } | ||
5326 | |||
5327 | QMapIterator<K,T> operator++(int) { | ||
5328 | QMapIterator<K,T> tmp = *this; | ||
5329 | inc(); | ||
5330 | return tmp; | ||
5331 | } | ||
5332 | |||
5333 | QMapIterator<K,T>& operator--() { | ||
5334 | dec(); | ||
5335 | return *this; | ||
5336 | } | ||
5337 | |||
5338 | QMapIterator<K,T> operator--(int) { | ||
5339 | QMapIterator<K,T> tmp = *this; | ||
5340 | dec(); | ||
5341 | return tmp; | ||
5342 | } | ||
5343 | }; | ||
5344 | |||
5345 | template<class K, class T> | ||
5346 | class QMapConstIterator | ||
5347 | { | ||
5348 | public: | ||
5349 | |||
5350 | |||
5351 | |||
5352 | typedef QMapNode< K, T >* NodePtr; | ||
5353 | |||
5354 | |||
5355 | |||
5356 | |||
5357 | QMapNode<K,T>* node; | ||
5358 | |||
5359 | |||
5360 | |||
5361 | |||
5362 | QMapConstIterator() : node( 0 ) {} | ||
5363 | QMapConstIterator( QMapNode<K,T>* p ) : node( p ) {} | ||
5364 | QMapConstIterator( const QMapConstIterator<K,T>& it ) : node( it.node ) {} | ||
5365 | QMapConstIterator( const QMapIterator<K,T>& it ) : node( it.node ) {} | ||
5366 | |||
5367 | bool operator==( const QMapConstIterator<K,T>& it ) const { return node == it.node; } | ||
5368 | bool operator!=( const QMapConstIterator<K,T>& it ) const { return node != it.node; } | ||
5369 | const T& operator*() const { return node->data; } | ||
5370 | |||
5371 | |||
5372 | |||
5373 | |||
5374 | const K& key() const { return node->key; } | ||
5375 | const T& data() const { return node->data; } | ||
5376 | |||
5377 | private: | ||
5378 | int inc() { | ||
5379 | QMapNodeBase* tmp = node; | ||
5380 | if ( tmp->right ) { | ||
5381 | tmp = tmp->right; | ||
5382 | while ( tmp->left ) | ||
5383 | tmp = tmp->left; | ||
5384 | } else { | ||
5385 | QMapNodeBase* y = tmp->parent; | ||
5386 | while (tmp == y->right) { | ||
5387 | tmp = y; | ||
5388 | y = y->parent; | ||
5389 | } | ||
5390 | if (tmp->right != y) | ||
5391 | tmp = y; | ||
5392 | } | ||
5393 | node = (NodePtr)tmp; | ||
5394 | return 0; | ||
5395 | } | ||
5396 | |||
5397 | int dec() { | ||
5398 | QMapNodeBase* tmp = node; | ||
5399 | if (tmp->color == QMapNodeBase::Red && | ||
5400 | tmp->parent->parent == tmp ) { | ||
5401 | tmp = tmp->right; | ||
5402 | } else if (tmp->left != 0) { | ||
5403 | QMapNodeBase* y = tmp->left; | ||
5404 | while ( y->right ) | ||
5405 | y = y->right; | ||
5406 | tmp = y; | ||
5407 | } else { | ||
5408 | QMapNodeBase* y = tmp->parent; | ||
5409 | while (tmp == y->left) { | ||
5410 | tmp = y; | ||
5411 | y = y->parent; | ||
5412 | } | ||
5413 | tmp = y; | ||
5414 | } | ||
5415 | node = (NodePtr)tmp; | ||
5416 | return 0; | ||
5417 | } | ||
5418 | |||
5419 | public: | ||
5420 | QMapConstIterator<K,T>& operator++() { | ||
5421 | inc(); | ||
5422 | return *this; | ||
5423 | } | ||
5424 | |||
5425 | QMapConstIterator<K,T> operator++(int) { | ||
5426 | QMapConstIterator<K,T> tmp = *this; | ||
5427 | inc(); | ||
5428 | return tmp; | ||
5429 | } | ||
5430 | |||
5431 | QMapConstIterator<K,T>& operator--() { | ||
5432 | dec(); | ||
5433 | return *this; | ||
5434 | } | ||
5435 | |||
5436 | QMapConstIterator<K,T> operator--(int) { | ||
5437 | QMapConstIterator<K,T> tmp = *this; | ||
5438 | dec(); | ||
5439 | return tmp; | ||
5440 | } | ||
5441 | }; | ||
5442 | |||
5443 | |||
5444 | class QMapPrivateBase : public QShared | ||
5445 | { | ||
5446 | public: | ||
5447 | QMapPrivateBase() { | ||
5448 | node_count = 0; | ||
5449 | } | ||
5450 | QMapPrivateBase( const QMapPrivateBase* _map) { | ||
5451 | node_count = _map->node_count; | ||
5452 | } | ||
5453 | |||
5454 | |||
5455 | |||
5456 | |||
5457 | void rotateLeft( QMapNodeBase* x, QMapNodeBase*& root); | ||
5458 | void rotateRight( QMapNodeBase* x, QMapNodeBase*& root ); | ||
5459 | void rebalance( QMapNodeBase* x, QMapNodeBase*& root ); | ||
5460 | QMapNodeBase* removeAndRebalance( QMapNodeBase* z, QMapNodeBase*& root, | ||
5461 | QMapNodeBase*& leftmost, | ||
5462 | QMapNodeBase*& rightmost ); | ||
5463 | |||
5464 | |||
5465 | |||
5466 | |||
5467 | int node_count; | ||
5468 | }; | ||
5469 | |||
5470 | |||
5471 | template <class Key, class T> | ||
5472 | class QMapPrivate : public QMapPrivateBase | ||
5473 | { | ||
5474 | public: | ||
5475 | |||
5476 | |||
5477 | |||
5478 | typedef QMapIterator< Key, T > Iterator; | ||
5479 | typedef QMapConstIterator< Key, T > ConstIterator; | ||
5480 | typedef QMapNode< Key, T > Node; | ||
5481 | typedef QMapNode< Key, T >* NodePtr; | ||
5482 | |||
5483 | |||
5484 | |||
5485 | |||
5486 | QMapPrivate() { | ||
5487 | header = new Node; | ||
5488 | header->color = QMapNodeBase::Red; | ||
5489 | header->parent = 0; | ||
5490 | header->left = header->right = header; | ||
5491 | } | ||
5492 | QMapPrivate( const QMapPrivate< Key, T >* _map ) : QMapPrivateBase( _map ) { | ||
5493 | header = new Node; | ||
5494 | header->color = QMapNodeBase::Red; | ||
5495 | if ( _map->header->parent == 0 ) { | ||
5496 | header->parent = 0; | ||
5497 | header->left = header->right = header; | ||
5498 | } else { | ||
5499 | header->parent = copy( (NodePtr)(_map->header->parent) ); | ||
5500 | header->parent->parent = header; | ||
5501 | header->left = header->parent->minimum(); | ||
5502 | header->right = header->parent->maximum(); | ||
5503 | } | ||
5504 | } | ||
5505 | ~QMapPrivate() { clear(); delete header; } | ||
5506 | |||
5507 | NodePtr copy( NodePtr p ) { | ||
5508 | if ( !p ) | ||
5509 | return 0; | ||
5510 | NodePtr n = new Node( *p ); | ||
5511 | n->color = p->color; | ||
5512 | if ( p->left ) { | ||
5513 | n->left = copy( (NodePtr)(p->left) ); | ||
5514 | n->left->parent = n; | ||
5515 | } else { | ||
5516 | n->left = 0; | ||
5517 | } | ||
5518 | if ( p->right ) { | ||
5519 | n->right = copy( (NodePtr)(p->right) ); | ||
5520 | n->right->parent = n; | ||
5521 | } else { | ||
5522 | n->right = 0; | ||
5523 | } | ||
5524 | return n; | ||
5525 | } | ||
5526 | |||
5527 | void clear() { | ||
5528 | clear( (NodePtr)(header->parent) ); | ||
5529 | header->color = QMapNodeBase::Red; | ||
5530 | header->parent = 0; | ||
5531 | header->left = header->right = header; | ||
5532 | node_count = 0; | ||
5533 | } | ||
5534 | |||
5535 | void clear( NodePtr p ) { | ||
5536 | while ( p != 0 ) { | ||
5537 | clear( (NodePtr)p->right ); | ||
5538 | NodePtr y = (NodePtr)p->left; | ||
5539 | delete p; | ||
5540 | p = y; | ||
5541 | } | ||
5542 | } | ||
5543 | |||
5544 | Iterator begin(){ return Iterator( (NodePtr)(header->left ) ); } | ||
5545 | Iterator end(){ return Iterator( header ); } | ||
5546 | ConstIterator begin() const { return ConstIterator( (NodePtr)(header->left ) ); } | ||
5547 | ConstIterator end() const { return ConstIterator( header ); } | ||
5548 | |||
5549 | ConstIterator find(const Key& k) const { | ||
5550 | QMapNodeBase* y = header; | ||
5551 | QMapNodeBase* x = header->parent; | ||
5552 | |||
5553 | while ( x != 0 ) { | ||
5554 | |||
5555 | if ( !( key(x) < k ) ) { | ||
5556 | y = x; | ||
5557 | x = x->left; | ||
5558 | } else { | ||
5559 | x = x->right; | ||
5560 | } | ||
5561 | } | ||
5562 | |||
5563 | |||
5564 | |||
5565 | if ( y == header || k < key(y) ) | ||
5566 | return ConstIterator( header ); | ||
5567 | return ConstIterator( (NodePtr)y ); | ||
5568 | } | ||
5569 | |||
5570 | void remove( Iterator it ) { | ||
5571 | NodePtr del = (NodePtr) removeAndRebalance( it.node, header->parent, header->left, header->right ); | ||
5572 | delete del; | ||
5573 | --node_count; | ||
5574 | } | ||
5575 | |||
5576 | # 425 "/opt/Qtopia/include/qmap.h" | ||
5577 | |||
5578 | |||
5579 | Iterator insertMulti(const Key& v){ | ||
5580 | QMapNodeBase* y = header; | ||
5581 | QMapNodeBase* x = header->parent; | ||
5582 | while (x != 0){ | ||
5583 | y = x; | ||
5584 | x = ( v < key(x) ) ? x->left : x->right; | ||
5585 | } | ||
5586 | return insert(x, y, v); | ||
5587 | } | ||
5588 | |||
5589 | Iterator insertSingle( const Key& k ) { | ||
5590 | |||
5591 | QMapNodeBase* y = header; | ||
5592 | QMapNodeBase* x = header->parent; | ||
5593 | bool result = TRUE; | ||
5594 | while ( x != 0 ) { | ||
5595 | result = ( k < key(x) ); | ||
5596 | y = x; | ||
5597 | x = result ? x->left : x->right; | ||
5598 | } | ||
5599 | |||
5600 | Iterator j( (NodePtr)y ); | ||
5601 | if ( result ) { | ||
5602 | |||
5603 | if ( j == begin() ) { | ||
5604 | return insert(x, y, k ); | ||
5605 | } else { | ||
5606 | |||
5607 | --j; | ||
5608 | } | ||
5609 | } | ||
5610 | |||
5611 | if ( (j.node->key) < k ) | ||
5612 | return insert(x, y, k ); | ||
5613 | |||
5614 | return j; | ||
5615 | } | ||
5616 | |||
5617 | Iterator insert( QMapNodeBase* x, QMapNodeBase* y, const Key& k ) { | ||
5618 | NodePtr z = new Node( k ); | ||
5619 | if (y == header || x != 0 || k < key(y) ) { | ||
5620 | y->left = z; | ||
5621 | if ( y == header ) { | ||
5622 | header->parent = z; | ||
5623 | header->right = z; | ||
5624 | } else if ( y == header->left ) | ||
5625 | header->left = z; | ||
5626 | } else { | ||
5627 | y->right = z; | ||
5628 | if ( y == header->right ) | ||
5629 | header->right = z; | ||
5630 | } | ||
5631 | z->parent = y; | ||
5632 | z->left = 0; | ||
5633 | z->right = 0; | ||
5634 | rebalance( z, header->parent ); | ||
5635 | ++node_count; | ||
5636 | return Iterator(z); | ||
5637 | } | ||
5638 | |||
5639 | protected: | ||
5640 | |||
5641 | |||
5642 | |||
5643 | const Key& key( QMapNodeBase* b ) const { return ((NodePtr)b)->key; } | ||
5644 | |||
5645 | |||
5646 | |||
5647 | |||
5648 | NodePtr header; | ||
5649 | }; | ||
5650 | |||
5651 | |||
5652 | template<class Key, class T> | ||
5653 | class QMap | ||
5654 | { | ||
5655 | public: | ||
5656 | |||
5657 | |||
5658 | |||
5659 | typedef QMapIterator< Key, T > Iterator; | ||
5660 | typedef QMapConstIterator< Key, T > ConstIterator; | ||
5661 | typedef T ValueType; | ||
5662 | typedef QMapPrivate< Key, T > Priv; | ||
5663 | |||
5664 | |||
5665 | |||
5666 | |||
5667 | QMap() { sh = new QMapPrivate< Key, T >; } | ||
5668 | QMap( const QMap<Key,T>& m ) { sh = m.sh; sh->ref(); } | ||
5669 | ~QMap() { if ( sh->deref() ) delete sh; } | ||
5670 | |||
5671 | QMap<Key,T>& operator= ( const QMap<Key,T>& m ) | ||
5672 | { m.sh->ref(); if ( sh->deref() ) delete sh; sh = m.sh; return *this; } | ||
5673 | |||
5674 | Iterator begin() { detach(); return sh->begin(); } | ||
5675 | Iterator end() { detach(); return sh->end(); } | ||
5676 | ConstIterator begin() const { return ((const Priv*)sh)->begin(); } | ||
5677 | ConstIterator end() const { return ((const Priv*)sh)->end(); } | ||
5678 | |||
5679 | Iterator find ( const Key& k ) | ||
5680 | { detach(); return Iterator( sh->find( k ).node ); } | ||
5681 | ConstIterator find ( const Key& k ) const | ||
5682 | { return sh->find( k ); } | ||
5683 | T& operator[] ( const Key& k ) { | ||
5684 | detach(); QMapNode<Key,T>* p = sh->find( k ).node; | ||
5685 | if ( p != sh->end().node ) return p->data; | ||
5686 | return insert( k, T() ).data(); } | ||
5687 | const T& operator[] ( const Key& k ) const | ||
5688 | { return sh->find( k ).data(); } | ||
5689 | bool contains ( const Key& k ) const | ||
5690 | { return find( k ) != end(); } | ||
5691 | |||
5692 | |||
5693 | uint count() const { return sh->node_count; } | ||
5694 | |||
5695 | bool isEmpty() const { return sh->node_count == 0; } | ||
5696 | |||
5697 | Iterator insert( const Key& key, const T& value ) { | ||
5698 | detach(); | ||
5699 | Iterator it = sh->insertSingle( key ); | ||
5700 | it.data() = value; | ||
5701 | return it; | ||
5702 | } | ||
5703 | |||
5704 | void remove( Iterator it ) { detach(); sh->remove( it ); } | ||
5705 | void remove( const Key& k ) { | ||
5706 | detach(); | ||
5707 | Iterator it( sh->find( k ).node ); | ||
5708 | if ( it != end() ) | ||
5709 | sh->remove( it ); | ||
5710 | } | ||
5711 | |||
5712 | Iterator replace( const Key& k, const T& v ) { | ||
5713 | remove( k ); | ||
5714 | return insert( k, v ); | ||
5715 | } | ||
5716 | |||
5717 | void clear() { if ( sh->count == 1 ) sh->clear(); else { sh->deref(); sh = new QMapPrivate<Key,T>; } } | ||
5718 | |||
5719 | |||
5720 | |||
5721 | |||
5722 | |||
5723 | protected: | ||
5724 | |||
5725 | |||
5726 | |||
5727 | void detach() { if ( sh->count > 1 ) { sh->deref(); sh = new QMapPrivate<Key,T>( sh ); } } | ||
5728 | |||
5729 | Priv* sh; | ||
5730 | }; | ||
5731 | |||
5732 | |||
5733 | |||
5734 | template<class Key, class T> | ||
5735 | inline QDataStream& operator>>( QDataStream& s, QMap<Key,T>& m ) { | ||
5736 | m.clear(); | ||
5737 | Q_UINT32 c; | ||
5738 | s >> c; | ||
5739 | for( Q_UINT32 i = 0; i < c; ++i ) { | ||
5740 | Key k; T t; | ||
5741 | s >> k >> t; | ||
5742 | m.insert( k, t ); | ||
5743 | } | ||
5744 | return s; | ||
5745 | } | ||
5746 | |||
5747 | |||
5748 | template<class Key, class T> | ||
5749 | inline QDataStream& operator<<( QDataStream& s, const QMap<Key,T>& m ) { | ||
5750 | s << (Q_UINT32)m.count(); | ||
5751 | QMapConstIterator<Key,T> it = m.begin(); | ||
5752 | for( ; it != m.end(); ++it ) | ||
5753 | s << it.key() << it.data(); | ||
5754 | return s; | ||
5755 | } | ||
5756 | |||
5757 | |||
5758 | |||
5759 | # 252 "/opt/Qtopia/include/qvariant.h" 2 | ||
5760 | |||
5761 | |||
5762 | |||
5763 | inline QVariant::Type QVariant::type() const | ||
5764 | { | ||
5765 | return d->typ; | ||
5766 | } | ||
5767 | |||
5768 | inline bool QVariant::isValid() const | ||
5769 | { | ||
5770 | return (d->typ != Invalid); | ||
5771 | } | ||
5772 | |||
5773 | inline QValueListConstIterator<QString> QVariant::stringListBegin() const | ||
5774 | { | ||
5775 | if ( d->typ != StringList ) | ||
5776 | return QValueListConstIterator<QString>(); | ||
5777 | return ((const QStringList*)d->value.ptr)->begin(); | ||
5778 | } | ||
5779 | |||
5780 | inline QValueListConstIterator<QString> QVariant::stringListEnd() const | ||
5781 | { | ||
5782 | if ( d->typ != StringList ) | ||
5783 | return QValueListConstIterator<QString>(); | ||
5784 | return ((const QStringList*)d->value.ptr)->end(); | ||
5785 | } | ||
5786 | |||
5787 | inline QValueListConstIterator<QVariant> QVariant::listBegin() const | ||
5788 | { | ||
5789 | if ( d->typ != List ) | ||
5790 | return QValueListConstIterator<QVariant>(); | ||
5791 | return ((const QValueList<QVariant>*)d->value.ptr)->begin(); | ||
5792 | } | ||
5793 | |||
5794 | inline QValueListConstIterator<QVariant> QVariant::listEnd() const | ||
5795 | { | ||
5796 | if ( d->typ != List ) | ||
5797 | return QValueListConstIterator<QVariant>(); | ||
5798 | return ((const QValueList<QVariant>*)d->value.ptr)->end(); | ||
5799 | } | ||
5800 | |||
5801 | inline QMapConstIterator<QString,QVariant> QVariant::mapBegin() const | ||
5802 | { | ||
5803 | if ( d->typ != Map ) | ||
5804 | return QMapConstIterator<QString,QVariant>(); | ||
5805 | return ((const QMap<QString,QVariant>*)d->value.ptr)->begin(); | ||
5806 | } | ||
5807 | |||
5808 | inline QMapConstIterator<QString,QVariant> QVariant::mapEnd() const | ||
5809 | { | ||
5810 | if ( d->typ != Map ) | ||
5811 | return QMapConstIterator<QString,QVariant>(); | ||
5812 | return ((const QMap<QString,QVariant>*)d->value.ptr)->end(); | ||
5813 | } | ||
5814 | |||
5815 | inline QMapConstIterator<QString,QVariant> QVariant::mapFind( const QString& key ) const | ||
5816 | { | ||
5817 | if ( d->typ != Map ) | ||
5818 | return QMapConstIterator<QString,QVariant>(); | ||
5819 | return ((const QMap<QString,QVariant>*)d->value.ptr)->find( key ); | ||
5820 | } | ||
5821 | |||
5822 | QDataStream& operator>> ( QDataStream& s, QVariant& p ); | ||
5823 | QDataStream& operator<< ( QDataStream& s, const QVariant& p ); | ||
5824 | QDataStream& operator>> ( QDataStream& s, QVariant::Type& p ); | ||
5825 | QDataStream& operator<< ( QDataStream& s, const QVariant::Type p ); | ||
5826 | |||
5827 | |||
5828 | |||
5829 | |||
5830 | # 12 "todaybase.h" 2 | ||
5831 | |||
5832 | # 1 "/opt/Qtopia/include/qwidget.h" 1 | ||
5833 | |||
5834 | |||
5835 | |||
5836 | |||
5837 | |||
5838 | |||
5839 | |||
5840 | |||
5841 | |||
5842 | |||
5843 | |||
5844 | |||
5845 | |||
5846 | |||
5847 | |||
5848 | |||
5849 | |||
5850 | |||
5851 | |||
5852 | |||
5853 | |||
5854 | |||
5855 | |||
5856 | |||
5857 | |||
5858 | |||
5859 | |||
5860 | |||
5861 | |||
5862 | |||
5863 | |||
5864 | |||
5865 | |||
5866 | |||
5867 | |||
5868 | |||
5869 | |||
5870 | |||
5871 | |||
5872 | |||
5873 | |||
5874 | # 1 "/opt/Qtopia/include/qwindowdefs.h" 1 | ||
5875 | |||
5876 | |||
5877 | |||
5878 | |||
5879 | |||
5880 | |||
5881 | |||
5882 | |||
5883 | |||
5884 | |||
5885 | |||
5886 | |||
5887 | |||
5888 | |||
5889 | |||
5890 | |||
5891 | |||
5892 | |||
5893 | |||
5894 | |||
5895 | |||
5896 | |||
5897 | |||
5898 | |||
5899 | |||
5900 | |||
5901 | |||
5902 | |||
5903 | |||
5904 | |||
5905 | |||
5906 | |||
5907 | |||
5908 | |||
5909 | |||
5910 | |||
5911 | |||
5912 | |||
5913 | |||
5914 | |||
5915 | |||
5916 | |||
5917 | # 1 "/opt/Qtopia/include/qobjectdefs.h" 1 | ||
5918 | |||
5919 | |||
5920 | |||
5921 | |||
5922 | |||
5923 | |||
5924 | |||
5925 | |||
5926 | |||
5927 | |||
5928 | |||
5929 | |||
5930 | |||
5931 | |||
5932 | |||
5933 | |||
5934 | |||
5935 | |||
5936 | |||
5937 | |||
5938 | |||
5939 | |||
5940 | |||
5941 | |||
5942 | |||
5943 | |||
5944 | |||
5945 | |||
5946 | |||
5947 | |||
5948 | |||
5949 | |||
5950 | |||
5951 | |||
5952 | |||
5953 | |||
5954 | |||
5955 | |||
5956 | |||
5957 | |||
5958 | |||
5959 | |||
5960 | |||
5961 | |||
5962 | |||
5963 | |||
5964 | |||
5965 | |||
5966 | |||
5967 | |||
5968 | |||
5969 | |||
5970 | |||
5971 | |||
5972 | |||
5973 | |||
5974 | # 70 "/opt/Qtopia/include/qobjectdefs.h" | ||
5975 | |||
5976 | |||
5977 | |||
5978 | |||
5979 | |||
5980 | |||
5981 | |||
5982 | |||
5983 | |||
5984 | |||
5985 | |||
5986 | |||
5987 | # 93 "/opt/Qtopia/include/qobjectdefs.h" | ||
5988 | |||
5989 | |||
5990 | |||
5991 | |||
5992 | |||
5993 | |||
5994 | |||
5995 | |||
5996 | |||
5997 | |||
5998 | |||
5999 | |||
6000 | |||
6001 | |||
6002 | |||
6003 | |||
6004 | |||
6005 | |||
6006 | |||
6007 | |||
6008 | |||
6009 | |||
6010 | |||
6011 | |||
6012 | class QObject; | ||
6013 | class QMetaObject; | ||
6014 | class QSignal; | ||
6015 | class QConnection; | ||
6016 | class QEvent; | ||
6017 | struct QMetaData; | ||
6018 | class QConnectionList; | ||
6019 | class QConnectionListIt; | ||
6020 | class QSignalDict; | ||
6021 | class QSignalDictIt; | ||
6022 | class QObjectList; | ||
6023 | class QObjectListIt; | ||
6024 | class QMemberDict; | ||
6025 | |||
6026 | |||
6027 | |||
6028 | # 43 "/opt/Qtopia/include/qwindowdefs.h" 2 | ||
6029 | |||
6030 | |||
6031 | # 1 "/opt/Qtopia/include/qnamespace.h" 1 | ||
6032 | |||
6033 | |||
6034 | |||
6035 | |||
6036 | |||
6037 | |||
6038 | |||
6039 | |||
6040 | |||
6041 | |||
6042 | |||
6043 | |||
6044 | |||
6045 | |||
6046 | |||
6047 | |||
6048 | |||
6049 | |||
6050 | |||
6051 | |||
6052 | |||
6053 | |||
6054 | |||
6055 | |||
6056 | |||
6057 | |||
6058 | |||
6059 | |||
6060 | |||
6061 | |||
6062 | |||
6063 | |||
6064 | |||
6065 | |||
6066 | |||
6067 | |||
6068 | |||
6069 | |||
6070 | |||
6071 | |||
6072 | |||
6073 | |||
6074 | |||
6075 | |||
6076 | |||
6077 | class QColor; | ||
6078 | class QCursor; | ||
6079 | |||
6080 | |||
6081 | class Qt { | ||
6082 | public: | ||
6083 | static const QColor & color0; | ||
6084 | static const QColor & color1; | ||
6085 | static const QColor & black; | ||
6086 | static const QColor & white; | ||
6087 | static const QColor & darkGray; | ||
6088 | static const QColor & gray; | ||
6089 | static const QColor & lightGray; | ||
6090 | static const QColor & red; | ||
6091 | static const QColor & green; | ||
6092 | static const QColor & blue; | ||
6093 | static const QColor & cyan; | ||
6094 | static const QColor & magenta; | ||
6095 | static const QColor & yellow; | ||
6096 | static const QColor & darkRed; | ||
6097 | static const QColor & darkGreen; | ||
6098 | static const QColor & darkBlue; | ||
6099 | static const QColor & darkCyan; | ||
6100 | static const QColor & darkMagenta; | ||
6101 | static const QColor & darkYellow; | ||
6102 | |||
6103 | |||
6104 | enum ButtonState { | ||
6105 | NoButton= 0x0000, | ||
6106 | LeftButton= 0x0001, | ||
6107 | RightButton= 0x0002, | ||
6108 | MidButton= 0x0004, | ||
6109 | MouseButtonMask = 0x0007, | ||
6110 | ShiftButton= 0x0008, | ||
6111 | ControlButton = 0x0010, | ||
6112 | AltButton= 0x0020, | ||
6113 | KeyButtonMask= 0x0038, | ||
6114 | Keypad = 0x4000 | ||
6115 | }; | ||
6116 | |||
6117 | |||
6118 | enum Orientation { | ||
6119 | Horizontal, | ||
6120 | Vertical | ||
6121 | }; | ||
6122 | |||
6123 | |||
6124 | |||
6125 | |||
6126 | enum AlignmentFlags { | ||
6127 | AlignLeft = 0x0001, | ||
6128 | AlignRight= 0x0002, | ||
6129 | AlignHCenter= 0x0004, | ||
6130 | AlignTop= 0x0008, | ||
6131 | AlignBottom= 0x0010, | ||
6132 | AlignVCenter= 0x0020, | ||
6133 | AlignCenter= AlignVCenter | AlignHCenter, | ||
6134 | |||
6135 | SingleLine = 0x0040, | ||
6136 | DontClip= 0x0080, | ||
6137 | ExpandTabs= 0x0100, | ||
6138 | ShowPrefix= 0x0200, | ||
6139 | WordBreak= 0x0400, | ||
6140 | DontPrint = 0x1000 | ||
6141 | }; | ||
6142 | |||
6143 | |||
6144 | enum WidgetState { | ||
6145 | WState_Created = 0x00000001, | ||
6146 | WState_Disabled = 0x00000002, | ||
6147 | WState_Visible = 0x00000004, | ||
6148 | WState_ForceHide= 0x00000008, | ||
6149 | WState_OwnCursor= 0x00000010, | ||
6150 | WState_MouseTracking= 0x00000020, | ||
6151 | WState_CompressKeys= 0x00000040, | ||
6152 | WState_BlockUpdates= 0x00000080, | ||
6153 | WState_InPaintEvent= 0x00000100, | ||
6154 | WState_Reparented= 0x00000200, | ||
6155 | WState_ConfigPending= 0x00000400, | ||
6156 | WState_Resized = 0x00000800, | ||
6157 | WState_AutoMask = 0x00001000, | ||
6158 | WState_Polished = 0x00002000, | ||
6159 | WState_DND = 0x00004000, | ||
6160 | WState_Modal = 0x00008000, | ||
6161 | WState_Reserved1= 0x00010000, | ||
6162 | WState_Reserved2= 0x00020000, | ||
6163 | WState_Reserved3= 0x00040000, | ||
6164 | WState_Maximized= 0x00080000, | ||
6165 | WState_TranslateBackground = 0x00100000, | ||
6166 | WState_ForceDisabled= 0x00200000, | ||
6167 | WState_Exposed = 0x00400000 | ||
6168 | }; | ||
6169 | |||
6170 | |||
6171 | typedef uint WFlags; | ||
6172 | |||
6173 | |||
6174 | enum WidgetFlags { | ||
6175 | WType_TopLevel = 0x00000001, | ||
6176 | WType_Modal = 0x00000002, | ||
6177 | WType_Popup = 0x00000004, | ||
6178 | WType_Desktop = 0x00000008, | ||
6179 | WType_Mask = 0x0000000f, | ||
6180 | |||
6181 | WStyle_Customize = 0x00000010, | ||
6182 | WStyle_NormalBorder= 0x00000020, | ||
6183 | WStyle_DialogBorder= 0x00000040, | ||
6184 | WStyle_NoBorder = 0x00000000, | ||
6185 | WStyle_Title = 0x00000080, | ||
6186 | WStyle_SysMenu = 0x00000100, | ||
6187 | WStyle_Minimize = 0x00000200, | ||
6188 | WStyle_Maximize = 0x00000400, | ||
6189 | WStyle_MinMax = WStyle_Minimize | WStyle_Maximize, | ||
6190 | WStyle_Tool = 0x00000800, | ||
6191 | WStyle_StaysOnTop= 0x00001000, | ||
6192 | WStyle_Dialog = 0x00002000, | ||
6193 | WStyle_ContextHelp= 0x00004000, | ||
6194 | WStyle_NoBorderEx= 0x00008000, | ||
6195 | WStyle_Mask = 0x0000fff0, | ||
6196 | |||
6197 | WDestructiveClose = 0x00010000, | ||
6198 | WPaintDesktop = 0x00020000, | ||
6199 | WPaintUnclipped = 0x00040000, | ||
6200 | WPaintClever = 0x00080000, | ||
6201 | WResizeNoErase = 0x00100000, | ||
6202 | WMouseNoMask = 0x00200000, | ||
6203 | WNorthWestGravity= 0x00400000, | ||
6204 | WRepaintNoErase = 0x00800000, | ||
6205 | WX11BypassWM = 0x01000000, | ||
6206 | WGroupLeader = 0x02000000 | ||
6207 | |||
6208 | }; | ||
6209 | |||
6210 | |||
6211 | |||
6212 | |||
6213 | enum ImageConversionFlags { | ||
6214 | ColorMode_Mask = 0x00000003, | ||
6215 | AutoColor = 0x00000000, | ||
6216 | ColorOnly = 0x00000003, | ||
6217 | MonoOnly = 0x00000002, | ||
6218 | |||
6219 | |||
6220 | AlphaDither_Mask= 0x0000000c, | ||
6221 | ThresholdAlphaDither= 0x00000000, | ||
6222 | OrderedAlphaDither= 0x00000004, | ||
6223 | DiffuseAlphaDither= 0x00000008, | ||
6224 | NoAlpha = 0x0000000c, | ||
6225 | |||
6226 | Dither_Mask = 0x00000030, | ||
6227 | DiffuseDither = 0x00000000, | ||
6228 | OrderedDither = 0x00000010, | ||
6229 | ThresholdDither = 0x00000020, | ||
6230 | |||
6231 | |||
6232 | DitherMode_Mask = 0x000000c0, | ||
6233 | AutoDither = 0x00000000, | ||
6234 | PreferDither = 0x00000040, | ||
6235 | AvoidDither = 0x00000080 | ||
6236 | }; | ||
6237 | |||
6238 | enum BGMode { | ||
6239 | TransparentMode, | ||
6240 | OpaqueMode | ||
6241 | }; | ||
6242 | |||
6243 | enum PaintUnit { | ||
6244 | PixelUnit, | ||
6245 | LoMetricUnit, | ||
6246 | HiMetricUnit, | ||
6247 | LoEnglishUnit, | ||
6248 | HiEnglishUnit, | ||
6249 | TwipsUnit | ||
6250 | }; | ||
6251 | |||
6252 | enum GUIStyle { | ||
6253 | MacStyle, | ||
6254 | WindowsStyle, | ||
6255 | Win3Style, | ||
6256 | PMStyle, | ||
6257 | MotifStyle | ||
6258 | }; | ||
6259 | |||
6260 | enum Modifier { | ||
6261 | SHIFT = 0x00200000, | ||
6262 | CTRL = 0x00400000, | ||
6263 | ALT = 0x00800000, | ||
6264 | MODIFIER_MASK = 0x00e00000, | ||
6265 | UNICODE_ACCEL = 0x10000000, | ||
6266 | |||
6267 | ASCII_ACCEL = UNICODE_ACCEL | ||
6268 | }; | ||
6269 | |||
6270 | enum Key { | ||
6271 | Key_Escape = 0x1000, | ||
6272 | Key_Tab = 0x1001, | ||
6273 | Key_Backtab = 0x1002, Key_BackTab = Key_Backtab, | ||
6274 | Key_Backspace = 0x1003, Key_BackSpace = Key_Backspace, | ||
6275 | Key_Return = 0x1004, | ||
6276 | Key_Enter = 0x1005, | ||
6277 | Key_Insert = 0x1006, | ||
6278 | Key_Delete = 0x1007, | ||
6279 | Key_Pause = 0x1008, | ||
6280 | Key_Print = 0x1009, | ||
6281 | Key_SysReq = 0x100a, | ||
6282 | Key_Home = 0x1010, | ||
6283 | Key_End = 0x1011, | ||
6284 | Key_Left = 0x1012, | ||
6285 | Key_Up = 0x1013, | ||
6286 | Key_Right = 0x1014, | ||
6287 | Key_Down = 0x1015, | ||
6288 | Key_Prior = 0x1016, Key_PageUp = Key_Prior, | ||
6289 | Key_Next = 0x1017, Key_PageDown = Key_Next, | ||
6290 | Key_Shift = 0x1020, | ||
6291 | Key_Control = 0x1021, | ||
6292 | Key_Meta = 0x1022, | ||
6293 | Key_Alt = 0x1023, | ||
6294 | Key_CapsLock = 0x1024, | ||
6295 | Key_NumLock = 0x1025, | ||
6296 | Key_ScrollLock = 0x1026, | ||
6297 | Key_F1 = 0x1030, | ||
6298 | Key_F2 = 0x1031, | ||
6299 | Key_F3 = 0x1032, | ||
6300 | Key_F4 = 0x1033, | ||
6301 | Key_F5 = 0x1034, | ||
6302 | Key_F6 = 0x1035, | ||
6303 | Key_F7 = 0x1036, | ||
6304 | Key_F8 = 0x1037, | ||
6305 | Key_F9 = 0x1038, | ||
6306 | Key_F10 = 0x1039, | ||
6307 | Key_F11 = 0x103a, | ||
6308 | Key_F12 = 0x103b, | ||
6309 | Key_F13 = 0x103c, | ||
6310 | Key_F14 = 0x103d, | ||
6311 | Key_F15 = 0x103e, | ||
6312 | Key_F16 = 0x103f, | ||
6313 | Key_F17 = 0x1040, | ||
6314 | Key_F18 = 0x1041, | ||
6315 | Key_F19 = 0x1042, | ||
6316 | Key_F20 = 0x1043, | ||
6317 | Key_F21 = 0x1044, | ||
6318 | Key_F22 = 0x1045, | ||
6319 | Key_F23 = 0x1046, | ||
6320 | Key_F24 = 0x1047, | ||
6321 | Key_F25 = 0x1048, | ||
6322 | Key_F26 = 0x1049, | ||
6323 | Key_F27 = 0x104a, | ||
6324 | Key_F28 = 0x104b, | ||
6325 | Key_F29 = 0x104c, | ||
6326 | Key_F30 = 0x104d, | ||
6327 | Key_F31 = 0x104e, | ||
6328 | Key_F32 = 0x104f, | ||
6329 | Key_F33 = 0x1050, | ||
6330 | Key_F34 = 0x1051, | ||
6331 | Key_F35 = 0x1052, | ||
6332 | Key_Super_L = 0x1053, | ||
6333 | Key_Super_R = 0x1054, | ||
6334 | Key_Menu = 0x1055, | ||
6335 | Key_Hyper_L = 0x1056, | ||
6336 | Key_Hyper_R = 0x1057, | ||
6337 | Key_Help = 0x1058, | ||
6338 | Key_Space = 0x20, | ||
6339 | Key_Any = Key_Space, | ||
6340 | Key_Exclam = 0x21, | ||
6341 | Key_QuoteDbl = 0x22, | ||
6342 | Key_NumberSign = 0x23, | ||
6343 | Key_Dollar = 0x24, | ||
6344 | Key_Percent = 0x25, | ||
6345 | Key_Ampersand = 0x26, | ||
6346 | Key_Apostrophe = 0x27, | ||
6347 | Key_ParenLeft = 0x28, | ||
6348 | Key_ParenRight = 0x29, | ||
6349 | Key_Asterisk = 0x2a, | ||
6350 | Key_Plus = 0x2b, | ||
6351 | Key_Comma = 0x2c, | ||
6352 | Key_Minus = 0x2d, | ||
6353 | Key_Period = 0x2e, | ||
6354 | Key_Slash = 0x2f, | ||
6355 | Key_0 = 0x30, | ||
6356 | Key_1 = 0x31, | ||
6357 | Key_2 = 0x32, | ||
6358 | Key_3 = 0x33, | ||
6359 | Key_4 = 0x34, | ||
6360 | Key_5 = 0x35, | ||
6361 | Key_6 = 0x36, | ||
6362 | Key_7 = 0x37, | ||
6363 | Key_8 = 0x38, | ||
6364 | Key_9 = 0x39, | ||
6365 | Key_Colon = 0x3a, | ||
6366 | Key_Semicolon = 0x3b, | ||
6367 | Key_Less = 0x3c, | ||
6368 | Key_Equal = 0x3d, | ||
6369 | Key_Greater = 0x3e, | ||
6370 | Key_Question = 0x3f, | ||
6371 | Key_At = 0x40, | ||
6372 | Key_A = 0x41, | ||
6373 | Key_B = 0x42, | ||
6374 | Key_C = 0x43, | ||
6375 | Key_D = 0x44, | ||
6376 | Key_E = 0x45, | ||
6377 | Key_F = 0x46, | ||
6378 | Key_G = 0x47, | ||
6379 | Key_H = 0x48, | ||
6380 | Key_I = 0x49, | ||
6381 | Key_J = 0x4a, | ||
6382 | Key_K = 0x4b, | ||
6383 | Key_L = 0x4c, | ||
6384 | Key_M = 0x4d, | ||
6385 | Key_N = 0x4e, | ||
6386 | Key_O = 0x4f, | ||
6387 | Key_P = 0x50, | ||
6388 | Key_Q = 0x51, | ||
6389 | Key_R = 0x52, | ||
6390 | Key_S = 0x53, | ||
6391 | Key_T = 0x54, | ||
6392 | Key_U = 0x55, | ||
6393 | Key_V = 0x56, | ||
6394 | Key_W = 0x57, | ||
6395 | Key_X = 0x58, | ||
6396 | Key_Y = 0x59, | ||
6397 | Key_Z = 0x5a, | ||
6398 | Key_BracketLeft = 0x5b, | ||
6399 | Key_Backslash = 0x5c, | ||
6400 | Key_BracketRight = 0x5d, | ||
6401 | Key_AsciiCircum = 0x5e, | ||
6402 | Key_Underscore = 0x5f, | ||
6403 | Key_QuoteLeft = 0x60, | ||
6404 | Key_BraceLeft = 0x7b, | ||
6405 | Key_Bar = 0x7c, | ||
6406 | Key_BraceRight = 0x7d, | ||
6407 | Key_AsciiTilde = 0x7e, | ||
6408 | |||
6409 | |||
6410 | |||
6411 | Key_nobreakspace = 0x0a0, | ||
6412 | Key_exclamdown = 0x0a1, | ||
6413 | Key_cent = 0x0a2, | ||
6414 | Key_sterling = 0x0a3, | ||
6415 | Key_currency = 0x0a4, | ||
6416 | Key_yen = 0x0a5, | ||
6417 | Key_brokenbar = 0x0a6, | ||
6418 | Key_section = 0x0a7, | ||
6419 | Key_diaeresis = 0x0a8, | ||
6420 | Key_copyright = 0x0a9, | ||
6421 | Key_ordfeminine = 0x0aa, | ||
6422 | Key_guillemotleft = 0x0ab, | ||
6423 | Key_notsign = 0x0ac, | ||
6424 | Key_hyphen = 0x0ad, | ||
6425 | Key_registered = 0x0ae, | ||
6426 | Key_macron = 0x0af, | ||
6427 | Key_degree = 0x0b0, | ||
6428 | Key_plusminus = 0x0b1, | ||
6429 | Key_twosuperior = 0x0b2, | ||
6430 | Key_threesuperior = 0x0b3, | ||
6431 | Key_acute = 0x0b4, | ||
6432 | Key_mu = 0x0b5, | ||
6433 | Key_paragraph = 0x0b6, | ||
6434 | Key_periodcentered = 0x0b7, | ||
6435 | Key_cedilla = 0x0b8, | ||
6436 | Key_onesuperior = 0x0b9, | ||
6437 | Key_masculine = 0x0ba, | ||
6438 | Key_guillemotright = 0x0bb, | ||
6439 | Key_onequarter = 0x0bc, | ||
6440 | Key_onehalf = 0x0bd, | ||
6441 | Key_threequarters = 0x0be, | ||
6442 | Key_questiondown = 0x0bf, | ||
6443 | Key_Agrave = 0x0c0, | ||
6444 | Key_Aacute = 0x0c1, | ||
6445 | Key_Acircumflex = 0x0c2, | ||
6446 | Key_Atilde = 0x0c3, | ||
6447 | Key_Adiaeresis = 0x0c4, | ||
6448 | Key_Aring = 0x0c5, | ||
6449 | Key_AE = 0x0c6, | ||
6450 | Key_Ccedilla = 0x0c7, | ||
6451 | Key_Egrave = 0x0c8, | ||
6452 | Key_Eacute = 0x0c9, | ||
6453 | Key_Ecircumflex = 0x0ca, | ||
6454 | Key_Ediaeresis = 0x0cb, | ||
6455 | Key_Igrave = 0x0cc, | ||
6456 | Key_Iacute = 0x0cd, | ||
6457 | Key_Icircumflex = 0x0ce, | ||
6458 | Key_Idiaeresis = 0x0cf, | ||
6459 | Key_ETH = 0x0d0, | ||
6460 | Key_Ntilde = 0x0d1, | ||
6461 | Key_Ograve = 0x0d2, | ||
6462 | Key_Oacute = 0x0d3, | ||
6463 | Key_Ocircumflex = 0x0d4, | ||
6464 | Key_Otilde = 0x0d5, | ||
6465 | Key_Odiaeresis = 0x0d6, | ||
6466 | Key_multiply = 0x0d7, | ||
6467 | Key_Ooblique = 0x0d8, | ||
6468 | Key_Ugrave = 0x0d9, | ||
6469 | Key_Uacute = 0x0da, | ||
6470 | Key_Ucircumflex = 0x0db, | ||
6471 | Key_Udiaeresis = 0x0dc, | ||
6472 | Key_Yacute = 0x0dd, | ||
6473 | Key_THORN = 0x0de, | ||
6474 | Key_ssharp = 0x0df, | ||
6475 | Key_agrave = 0x0e0, | ||
6476 | Key_aacute = 0x0e1, | ||
6477 | Key_acircumflex = 0x0e2, | ||
6478 | Key_atilde = 0x0e3, | ||
6479 | Key_adiaeresis = 0x0e4, | ||
6480 | Key_aring = 0x0e5, | ||
6481 | Key_ae = 0x0e6, | ||
6482 | Key_ccedilla = 0x0e7, | ||
6483 | Key_egrave = 0x0e8, | ||
6484 | Key_eacute = 0x0e9, | ||
6485 | Key_ecircumflex = 0x0ea, | ||
6486 | Key_ediaeresis = 0x0eb, | ||
6487 | Key_igrave = 0x0ec, | ||
6488 | Key_iacute = 0x0ed, | ||
6489 | Key_icircumflex = 0x0ee, | ||
6490 | Key_idiaeresis = 0x0ef, | ||
6491 | Key_eth = 0x0f0, | ||
6492 | Key_ntilde = 0x0f1, | ||
6493 | Key_ograve = 0x0f2, | ||
6494 | Key_oacute = 0x0f3, | ||
6495 | Key_ocircumflex = 0x0f4, | ||
6496 | Key_otilde = 0x0f5, | ||
6497 | Key_odiaeresis = 0x0f6, | ||
6498 | Key_division = 0x0f7, | ||
6499 | Key_oslash = 0x0f8, | ||
6500 | Key_ugrave = 0x0f9, | ||
6501 | Key_uacute = 0x0fa, | ||
6502 | Key_ucircumflex = 0x0fb, | ||
6503 | Key_udiaeresis = 0x0fc, | ||
6504 | Key_yacute = 0x0fd, | ||
6505 | Key_thorn = 0x0fe, | ||
6506 | Key_ydiaeresis = 0x0ff, | ||
6507 | |||
6508 | Key_unknown = 0xffff | ||
6509 | }; | ||
6510 | |||
6511 | enum ArrowType { | ||
6512 | UpArrow, | ||
6513 | DownArrow, | ||
6514 | LeftArrow, | ||
6515 | RightArrow | ||
6516 | }; | ||
6517 | |||
6518 | |||
6519 | enum RasterOp { | ||
6520 | CopyROP, | ||
6521 | OrROP, | ||
6522 | XorROP, | ||
6523 | NotAndROP, | ||
6524 | EraseROP=NotAndROP, | ||
6525 | NotCopyROP, | ||
6526 | NotOrROP, | ||
6527 | NotXorROP, | ||
6528 | AndROP,NotEraseROP=AndROP, | ||
6529 | NotROP, | ||
6530 | ClearROP, | ||
6531 | SetROP, | ||
6532 | NopROP, | ||
6533 | AndNotROP, | ||
6534 | OrNotROP, | ||
6535 | NandROP, | ||
6536 | NorROP,LastROP=NorROP | ||
6537 | }; | ||
6538 | |||
6539 | |||
6540 | enum PenStyle { | ||
6541 | NoPen, | ||
6542 | SolidLine, | ||
6543 | DashLine, | ||
6544 | DotLine, | ||
6545 | DashDotLine, | ||
6546 | DashDotDotLine, | ||
6547 | MPenStyle = 0x0f | ||
6548 | }; | ||
6549 | |||
6550 | enum PenCapStyle { | ||
6551 | FlatCap = 0x00, | ||
6552 | SquareCap = 0x10, | ||
6553 | RoundCap = 0x20, | ||
6554 | MPenCapStyle = 0x30 | ||
6555 | }; | ||
6556 | |||
6557 | enum PenJoinStyle { | ||
6558 | MiterJoin = 0x00, | ||
6559 | BevelJoin = 0x40, | ||
6560 | RoundJoin = 0x80, | ||
6561 | MPenJoinStyle = 0xc0 | ||
6562 | }; | ||
6563 | |||
6564 | enum BrushStyle { | ||
6565 | NoBrush, | ||
6566 | SolidPattern, | ||
6567 | Dense1Pattern, | ||
6568 | Dense2Pattern, | ||
6569 | Dense3Pattern, | ||
6570 | Dense4Pattern, | ||
6571 | Dense5Pattern, | ||
6572 | Dense6Pattern, | ||
6573 | Dense7Pattern, | ||
6574 | HorPattern, | ||
6575 | VerPattern, | ||
6576 | CrossPattern, | ||
6577 | BDiagPattern, | ||
6578 | FDiagPattern, | ||
6579 | DiagCrossPattern, | ||
6580 | CustomPattern=24 | ||
6581 | }; | ||
6582 | |||
6583 | enum WindowsVersion { | ||
6584 | WV_32s = 0x0001, | ||
6585 | WV_95 = 0x0002, | ||
6586 | WV_98 = 0x0003, | ||
6587 | WV_DOS_based= 0x000f, | ||
6588 | |||
6589 | WV_NT = 0x0010, | ||
6590 | WV_2000 = 0x0020, | ||
6591 | WV_NT_based= 0x00f0 | ||
6592 | }; | ||
6593 | |||
6594 | enum UIEffect { | ||
6595 | UI_General, | ||
6596 | UI_AnimateMenu, | ||
6597 | UI_FadeMenu, | ||
6598 | UI_AnimateCombo, | ||
6599 | UI_AnimateTooltip, | ||
6600 | UI_FadeTooltip | ||
6601 | }; | ||
6602 | |||
6603 | |||
6604 | |||
6605 | |||
6606 | static const QCursor & arrowCursor; | ||
6607 | static const QCursor & upArrowCursor; | ||
6608 | static const QCursor & crossCursor; | ||
6609 | static const QCursor & waitCursor; | ||
6610 | static const QCursor & ibeamCursor; | ||
6611 | static const QCursor & sizeVerCursor; | ||
6612 | static const QCursor & sizeHorCursor; | ||
6613 | static const QCursor & sizeBDiagCursor; | ||
6614 | static const QCursor & sizeFDiagCursor; | ||
6615 | static const QCursor & sizeAllCursor; | ||
6616 | static const QCursor & blankCursor; | ||
6617 | static const QCursor & splitVCursor; | ||
6618 | |||
6619 | static const QCursor & splitHCursor; | ||
6620 | |||
6621 | static const QCursor & pointingHandCursor; | ||
6622 | static const QCursor & forbiddenCursor; | ||
6623 | |||
6624 | |||
6625 | enum TextFormat { | ||
6626 | PlainText, | ||
6627 | RichText, | ||
6628 | AutoText | ||
6629 | }; | ||
6630 | }; | ||
6631 | |||
6632 | |||
6633 | class QInternal { | ||
6634 | public: | ||
6635 | enum PaintDeviceFlags { | ||
6636 | UndefinedDevice = 0x00, | ||
6637 | Widget = 0x01, | ||
6638 | Pixmap = 0x02, | ||
6639 | Printer = 0x03, | ||
6640 | Picture = 0x04, | ||
6641 | System = 0x05, | ||
6642 | DeviceTypeMask = 0x0f, | ||
6643 | ExternalDevice = 0x10 | ||
6644 | }; | ||
6645 | }; | ||
6646 | |||
6647 | |||
6648 | # 45 "/opt/Qtopia/include/qwindowdefs.h" 2 | ||
6649 | |||
6650 | |||
6651 | |||
6652 | # 1 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/limits.h" 1 3 | ||
6653 | |||
6654 | |||
6655 | |||
6656 | |||
6657 | |||
6658 | |||
6659 | |||
6660 | |||
6661 | |||
6662 | |||
6663 | # 1 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/syslimits.h" 1 3 | ||
6664 | |||
6665 | |||
6666 | |||
6667 | |||
6668 | |||
6669 | |||
6670 | # 1 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/limits.h" 1 3 | ||
6671 | |||
6672 | |||
6673 | |||
6674 | |||
6675 | |||
6676 | # 114 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/limits.h" 3 | ||
6677 | |||
6678 | |||
6679 | |||
6680 | # 1 "/usr/include/limits.h" 1 3 | ||
6681 | |||
6682 | |||
6683 | |||
6684 | |||
6685 | |||
6686 | |||
6687 | |||
6688 | |||
6689 | |||
6690 | |||
6691 | |||
6692 | |||
6693 | |||
6694 | |||
6695 | |||
6696 | |||
6697 | |||
6698 | |||
6699 | |||
6700 | |||
6701 | |||
6702 | |||
6703 | |||
6704 | |||
6705 | |||
6706 | |||
6707 | |||
6708 | |||
6709 | |||
6710 | |||
6711 | |||
6712 | |||
6713 | |||
6714 | |||
6715 | |||
6716 | |||
6717 | # 113 "/usr/include/limits.h" 3 | ||
6718 | |||
6719 | |||
6720 | |||
6721 | |||
6722 | |||
6723 | |||
6724 | |||
6725 | |||
6726 | |||
6727 | # 140 "/usr/include/limits.h" 3 | ||
6728 | |||
6729 | |||
6730 | |||
6731 | |||
6732 | # 1 "/usr/include/bits/posix1_lim.h" 1 3 | ||
6733 | |||
6734 | |||
6735 | |||
6736 | |||
6737 | |||
6738 | |||
6739 | |||
6740 | |||
6741 | |||
6742 | |||
6743 | |||
6744 | |||
6745 | |||
6746 | |||
6747 | |||
6748 | |||
6749 | |||
6750 | |||
6751 | |||
6752 | |||
6753 | |||
6754 | |||
6755 | |||
6756 | |||
6757 | |||
6758 | |||
6759 | |||
6760 | |||
6761 | |||
6762 | |||
6763 | |||
6764 | |||
6765 | |||
6766 | |||
6767 | |||
6768 | |||
6769 | |||
6770 | |||
6771 | |||
6772 | |||
6773 | |||
6774 | |||
6775 | |||
6776 | |||
6777 | |||
6778 | |||
6779 | |||
6780 | |||
6781 | |||
6782 | |||
6783 | |||
6784 | |||
6785 | |||
6786 | |||
6787 | |||
6788 | |||
6789 | |||
6790 | |||
6791 | |||
6792 | |||
6793 | |||
6794 | |||
6795 | |||
6796 | |||
6797 | |||
6798 | |||
6799 | |||
6800 | |||
6801 | |||
6802 | |||
6803 | |||
6804 | |||
6805 | |||
6806 | |||
6807 | |||
6808 | |||
6809 | |||
6810 | |||
6811 | |||
6812 | |||
6813 | |||
6814 | |||
6815 | |||
6816 | |||
6817 | |||
6818 | |||
6819 | |||
6820 | |||
6821 | |||
6822 | |||
6823 | |||
6824 | |||
6825 | |||
6826 | |||
6827 | |||
6828 | |||
6829 | |||
6830 | |||
6831 | |||
6832 | |||
6833 | |||
6834 | |||
6835 | |||
6836 | |||
6837 | |||
6838 | |||
6839 | |||
6840 | |||
6841 | |||
6842 | |||
6843 | |||
6844 | |||
6845 | |||
6846 | |||
6847 | |||
6848 | |||
6849 | |||
6850 | |||
6851 | |||
6852 | |||
6853 | |||
6854 | |||
6855 | |||
6856 | |||
6857 | |||
6858 | # 1 "/usr/include/bits/local_lim.h" 1 3 | ||
6859 | |||
6860 | |||
6861 | |||
6862 | |||
6863 | |||
6864 | |||
6865 | |||
6866 | |||
6867 | |||
6868 | |||
6869 | |||
6870 | |||
6871 | |||
6872 | |||
6873 | |||
6874 | |||
6875 | |||
6876 | |||
6877 | |||
6878 | |||
6879 | |||
6880 | |||
6881 | |||
6882 | |||
6883 | |||
6884 | |||
6885 | |||
6886 | |||
6887 | |||
6888 | |||
6889 | |||
6890 | |||
6891 | |||
6892 | |||
6893 | |||
6894 | # 1 "/usr/include/linux/limits.h" 1 3 | ||
6895 | |||
6896 | |||
6897 | |||
6898 | |||
6899 | |||
6900 | |||
6901 | |||
6902 | |||
6903 | |||
6904 | |||
6905 | |||
6906 | |||
6907 | |||
6908 | |||
6909 | |||
6910 | |||
6911 | |||
6912 | |||
6913 | |||
6914 | # 36 "/usr/include/bits/local_lim.h" 2 3 | ||
6915 | |||
6916 | |||
6917 | |||
6918 | |||
6919 | |||
6920 | |||
6921 | |||
6922 | |||
6923 | |||
6924 | |||
6925 | |||
6926 | |||
6927 | |||
6928 | |||
6929 | |||
6930 | |||
6931 | |||
6932 | |||
6933 | |||
6934 | |||
6935 | |||
6936 | |||
6937 | |||
6938 | |||
6939 | |||
6940 | |||
6941 | |||
6942 | |||
6943 | |||
6944 | |||
6945 | |||
6946 | |||
6947 | |||
6948 | |||
6949 | |||
6950 | |||
6951 | |||
6952 | |||
6953 | |||
6954 | |||
6955 | |||
6956 | |||
6957 | # 126 "/usr/include/bits/posix1_lim.h" 2 3 | ||
6958 | |||
6959 | |||
6960 | |||
6961 | |||
6962 | |||
6963 | |||
6964 | |||
6965 | |||
6966 | |||
6967 | |||
6968 | |||
6969 | |||
6970 | |||
6971 | |||
6972 | |||
6973 | |||
6974 | # 144 "/usr/include/limits.h" 2 3 | ||
6975 | |||
6976 | |||
6977 | |||
6978 | |||
6979 | # 1 "/usr/include/bits/posix2_lim.h" 1 3 | ||
6980 | |||
6981 | |||
6982 | |||
6983 | |||
6984 | |||
6985 | |||
6986 | |||
6987 | |||
6988 | |||
6989 | |||
6990 | |||
6991 | |||
6992 | |||
6993 | |||
6994 | |||
6995 | |||
6996 | |||
6997 | |||
6998 | |||
6999 | |||
7000 | |||
7001 | |||
7002 | |||
7003 | |||
7004 | |||
7005 | |||
7006 | |||
7007 | |||
7008 | |||
7009 | |||
7010 | |||
7011 | |||
7012 | |||
7013 | |||
7014 | |||
7015 | |||
7016 | |||
7017 | |||
7018 | |||
7019 | |||
7020 | |||
7021 | |||
7022 | |||
7023 | |||
7024 | |||
7025 | |||
7026 | |||
7027 | |||
7028 | |||
7029 | |||
7030 | |||
7031 | |||
7032 | |||
7033 | |||
7034 | |||
7035 | |||
7036 | |||
7037 | |||
7038 | |||
7039 | |||
7040 | |||
7041 | |||
7042 | |||
7043 | |||
7044 | |||
7045 | |||
7046 | |||
7047 | |||
7048 | |||
7049 | |||
7050 | |||
7051 | |||
7052 | |||
7053 | |||
7054 | |||
7055 | |||
7056 | |||
7057 | |||
7058 | |||
7059 | |||
7060 | |||
7061 | |||
7062 | |||
7063 | |||
7064 | |||
7065 | |||
7066 | |||
7067 | |||
7068 | |||
7069 | |||
7070 | |||
7071 | # 148 "/usr/include/limits.h" 2 3 | ||
7072 | |||
7073 | |||
7074 | |||
7075 | |||
7076 | |||
7077 | |||
7078 | # 117 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/limits.h" 2 3 | ||
7079 | |||
7080 | |||
7081 | |||
7082 | |||
7083 | # 7 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/syslimits.h" 2 3 | ||
7084 | |||
7085 | |||
7086 | # 11 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/limits.h" 2 3 | ||
7087 | |||
7088 | |||
7089 | |||
7090 | |||
7091 | |||
7092 | |||
7093 | |||
7094 | |||
7095 | |||
7096 | |||
7097 | |||
7098 | |||
7099 | |||
7100 | |||
7101 | |||
7102 | |||
7103 | |||
7104 | |||
7105 | |||
7106 | |||
7107 | |||
7108 | |||
7109 | |||
7110 | |||
7111 | |||
7112 | |||
7113 | |||
7114 | |||
7115 | |||
7116 | |||
7117 | |||
7118 | |||
7119 | |||
7120 | |||
7121 | |||
7122 | |||
7123 | |||
7124 | |||
7125 | |||
7126 | |||
7127 | |||
7128 | |||
7129 | |||
7130 | |||
7131 | |||
7132 | |||
7133 | |||
7134 | |||
7135 | |||
7136 | |||
7137 | |||
7138 | |||
7139 | |||
7140 | |||
7141 | |||
7142 | |||
7143 | |||
7144 | |||
7145 | |||
7146 | |||
7147 | |||
7148 | |||
7149 | |||
7150 | |||
7151 | |||
7152 | |||
7153 | |||
7154 | |||
7155 | |||
7156 | |||
7157 | |||
7158 | |||
7159 | |||
7160 | |||
7161 | |||
7162 | |||
7163 | |||
7164 | |||
7165 | |||
7166 | |||
7167 | |||
7168 | |||
7169 | |||
7170 | # 107 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/limits.h" 3 | ||
7171 | |||
7172 | |||
7173 | |||
7174 | |||
7175 | |||
7176 | |||
7177 | |||
7178 | |||
7179 | |||
7180 | |||
7181 | |||
7182 | |||
7183 | |||
7184 | |||
7185 | # 48 "/opt/Qtopia/include/qwindowdefs.h" 2 | ||
7186 | |||
7187 | |||
7188 | |||
7189 | |||
7190 | class QPaintDevice; | ||
7191 | class QPaintDeviceMetrics; | ||
7192 | class QWidget; | ||
7193 | class QWidgetMapper; | ||
7194 | class QDialog; | ||
7195 | class QColor; | ||
7196 | class QColorGroup; | ||
7197 | class QPalette; | ||
7198 | class QCursor; | ||
7199 | class QPoint; | ||
7200 | class QSize; | ||
7201 | class QRect; | ||
7202 | class QPointArray; | ||
7203 | class QPainter; | ||
7204 | class QRegion; | ||
7205 | class QFont; | ||
7206 | class QFontMetrics; | ||
7207 | class QFontInfo; | ||
7208 | class QPen; | ||
7209 | class QBrush; | ||
7210 | class QWMatrix; | ||
7211 | class QPixmap; | ||
7212 | class QBitmap; | ||
7213 | class QMovie; | ||
7214 | class QImage; | ||
7215 | class QImageIO; | ||
7216 | class QPicture; | ||
7217 | class QPrinter; | ||
7218 | class QAccel; | ||
7219 | class QTimer; | ||
7220 | class QTime; | ||
7221 | class QClipboard; | ||
7222 | |||
7223 | |||
7224 | |||
7225 | |||
7226 | class QWidgetList; | ||
7227 | class QWidgetListIt; | ||
7228 | |||
7229 | |||
7230 | |||
7231 | |||
7232 | |||
7233 | |||
7234 | |||
7235 | |||
7236 | |||
7237 | |||
7238 | |||
7239 | |||
7240 | |||
7241 | |||
7242 | |||
7243 | |||
7244 | |||
7245 | |||
7246 | |||
7247 | |||
7248 | |||
7249 | |||
7250 | |||
7251 | |||
7252 | |||
7253 | |||
7254 | |||
7255 | |||
7256 | |||
7257 | typedef unsigned int WId; | ||
7258 | typedef unsigned int HANDLE; | ||
7259 | |||
7260 | |||
7261 | typedef struct _XDisplay Display; | ||
7262 | typedef union _XEvent XEvent; | ||
7263 | typedef struct _XGC *GC; | ||
7264 | typedef struct _XRegion *Region; | ||
7265 | |||
7266 | Display *qt_xdisplay(); | ||
7267 | int qt_xscreen(); | ||
7268 | WId qt_xrootwin(); | ||
7269 | GC qt_xget_readonly_gc( bool monochrome=FALSE ); | ||
7270 | GC qt_xget_temp_gc( bool monochrome=FALSE ); | ||
7271 | |||
7272 | |||
7273 | |||
7274 | |||
7275 | |||
7276 | |||
7277 | |||
7278 | |||
7279 | |||
7280 | |||
7281 | |||
7282 | |||
7283 | class QApplication; | ||
7284 | |||
7285 | |||
7286 | |||
7287 | |||
7288 | |||
7289 | |||
7290 | |||
7291 | |||
7292 | typedef Q_INT32 QCOORD; | ||
7293 | const QCOORD QCOORD_MAX = 2147483647; | ||
7294 | const QCOORD QCOORD_MIN = -QCOORD_MAX - 1; | ||
7295 | |||
7296 | typedef unsigned int QRgb; | ||
7297 | |||
7298 | char *qAppName(); | ||
7299 | |||
7300 | |||
7301 | |||
7302 | |||
7303 | typedef void (*Q_CleanUpFunction)(); | ||
7304 | void qAddPostRoutine( Q_CleanUpFunction ); | ||
7305 | void qRemovePostRoutine( Q_CleanUpFunction ); | ||
7306 | |||
7307 | |||
7308 | void *qt_find_obj_child( QObject *, const char *, const char * ); | ||
7309 | |||
7310 | |||
7311 | |||
7312 | |||
7313 | |||
7314 | # 42 "/opt/Qtopia/include/qwidget.h" 2 | ||
7315 | |||
7316 | # 1 "/opt/Qtopia/include/qobject.h" 1 | ||
7317 | |||
7318 | |||
7319 | |||
7320 | |||
7321 | |||
7322 | |||
7323 | |||
7324 | |||
7325 | |||
7326 | |||
7327 | |||
7328 | |||
7329 | |||
7330 | |||
7331 | |||
7332 | |||
7333 | |||
7334 | |||
7335 | |||
7336 | |||
7337 | |||
7338 | |||
7339 | |||
7340 | |||
7341 | |||
7342 | |||
7343 | |||
7344 | |||
7345 | |||
7346 | |||
7347 | |||
7348 | |||
7349 | |||
7350 | |||
7351 | |||
7352 | |||
7353 | |||
7354 | |||
7355 | |||
7356 | |||
7357 | |||
7358 | |||
7359 | |||
7360 | |||
7361 | # 1 "/opt/Qtopia/include/qevent.h" 1 | ||
7362 | |||
7363 | |||
7364 | |||
7365 | |||
7366 | |||
7367 | |||
7368 | |||
7369 | |||
7370 | |||
7371 | |||
7372 | |||
7373 | |||
7374 | |||
7375 | |||
7376 | |||
7377 | |||
7378 | |||
7379 | |||
7380 | |||
7381 | |||
7382 | |||
7383 | |||
7384 | |||
7385 | |||
7386 | |||
7387 | |||
7388 | |||
7389 | |||
7390 | |||
7391 | |||
7392 | |||
7393 | |||
7394 | |||
7395 | |||
7396 | |||
7397 | |||
7398 | |||
7399 | |||
7400 | |||
7401 | |||
7402 | |||
7403 | |||
7404 | # 1 "/opt/Qtopia/include/qregion.h" 1 | ||
7405 | |||
7406 | |||
7407 | |||
7408 | |||
7409 | |||
7410 | |||
7411 | |||
7412 | |||
7413 | |||
7414 | |||
7415 | |||
7416 | |||
7417 | |||
7418 | |||
7419 | |||
7420 | |||
7421 | |||
7422 | |||
7423 | |||
7424 | |||
7425 | |||
7426 | |||
7427 | |||
7428 | |||
7429 | |||
7430 | |||
7431 | |||
7432 | |||
7433 | |||
7434 | |||
7435 | |||
7436 | |||
7437 | |||
7438 | |||
7439 | |||
7440 | |||
7441 | |||
7442 | |||
7443 | |||
7444 | |||
7445 | |||
7446 | |||
7447 | # 1 "/opt/Qtopia/include/qrect.h" 1 | ||
7448 | |||
7449 | |||
7450 | |||
7451 | |||
7452 | |||
7453 | |||
7454 | |||
7455 | |||
7456 | |||
7457 | |||
7458 | |||
7459 | |||
7460 | |||
7461 | |||
7462 | |||
7463 | |||
7464 | |||
7465 | |||
7466 | |||
7467 | |||
7468 | |||
7469 | |||
7470 | |||
7471 | |||
7472 | |||
7473 | |||
7474 | |||
7475 | |||
7476 | |||
7477 | |||
7478 | |||
7479 | |||
7480 | |||
7481 | |||
7482 | |||
7483 | |||
7484 | |||
7485 | |||
7486 | |||
7487 | |||
7488 | |||
7489 | # 1 "/opt/Qtopia/include/qsize.h" 1 | ||
7490 | |||
7491 | |||
7492 | |||
7493 | |||
7494 | |||
7495 | |||
7496 | |||
7497 | |||
7498 | |||
7499 | |||
7500 | |||
7501 | |||
7502 | |||
7503 | |||
7504 | |||
7505 | |||
7506 | |||
7507 | |||
7508 | |||
7509 | |||
7510 | |||
7511 | |||
7512 | |||
7513 | |||
7514 | |||
7515 | |||
7516 | |||
7517 | |||
7518 | |||
7519 | |||
7520 | |||
7521 | |||
7522 | |||
7523 | |||
7524 | |||
7525 | |||
7526 | |||
7527 | |||
7528 | |||
7529 | |||
7530 | |||
7531 | # 1 "/opt/Qtopia/include/qpoint.h" 1 | ||
7532 | |||
7533 | |||
7534 | |||
7535 | |||
7536 | |||
7537 | |||
7538 | |||
7539 | |||
7540 | |||
7541 | |||
7542 | |||
7543 | |||
7544 | |||
7545 | |||
7546 | |||
7547 | |||
7548 | |||
7549 | |||
7550 | |||
7551 | |||
7552 | |||
7553 | |||
7554 | |||
7555 | |||
7556 | |||
7557 | |||
7558 | |||
7559 | |||
7560 | |||
7561 | |||
7562 | |||
7563 | |||
7564 | |||
7565 | |||
7566 | |||
7567 | |||
7568 | |||
7569 | |||
7570 | |||
7571 | |||
7572 | |||
7573 | |||
7574 | |||
7575 | |||
7576 | |||
7577 | class QPoint | ||
7578 | { | ||
7579 | public: | ||
7580 | QPoint(); | ||
7581 | QPoint( int xpos, int ypos ); | ||
7582 | |||
7583 | bool isNull()const; | ||
7584 | |||
7585 | int x() const; | ||
7586 | int y() const; | ||
7587 | void setX( int x ); | ||
7588 | void setY( int y ); | ||
7589 | |||
7590 | int manhattanLength() const; | ||
7591 | |||
7592 | QCOORD &rx(); | ||
7593 | QCOORD &ry(); | ||
7594 | |||
7595 | QPoint &operator+=( const QPoint &p ); | ||
7596 | QPoint &operator-=( const QPoint &p ); | ||
7597 | QPoint &operator*=( int c ); | ||
7598 | QPoint &operator*=( double c ); | ||
7599 | QPoint &operator/=( int c ); | ||
7600 | QPoint &operator/=( double c ); | ||
7601 | |||
7602 | friend inline bool operator==( const QPoint &, const QPoint & ); | ||
7603 | friend inline bool operator!=( const QPoint &, const QPoint & ); | ||
7604 | friend inline QPoint operator+( const QPoint &, const QPoint & ); | ||
7605 | friend inline QPoint operator-( const QPoint &, const QPoint & ); | ||
7606 | friend inline QPoint operator*( const QPoint &, int ); | ||
7607 | friend inline QPoint operator*( int, const QPoint & ); | ||
7608 | friend inline QPoint operator*( const QPoint &, double ); | ||
7609 | friend inline QPoint operator*( double, const QPoint & ); | ||
7610 | friend inline QPoint operator-( const QPoint & ); | ||
7611 | friend inline QPoint operator/( const QPoint &, int ); | ||
7612 | friend inline QPoint operator/( const QPoint &, double ); | ||
7613 | |||
7614 | private: | ||
7615 | static void warningDivByZero(); | ||
7616 | |||
7617 | |||
7618 | |||
7619 | |||
7620 | |||
7621 | QCOORD xp; | ||
7622 | QCOORD yp; | ||
7623 | |||
7624 | }; | ||
7625 | |||
7626 | |||
7627 | |||
7628 | |||
7629 | |||
7630 | |||
7631 | QDataStream &operator<<( QDataStream &, const QPoint & ); | ||
7632 | QDataStream &operator>>( QDataStream &, QPoint & ); | ||
7633 | |||
7634 | |||
7635 | |||
7636 | |||
7637 | |||
7638 | |||
7639 | inline QPoint::QPoint() | ||
7640 | { xp=0; yp=0; } | ||
7641 | |||
7642 | inline QPoint::QPoint( int xpos, int ypos ) | ||
7643 | { xp=(QCOORD)xpos; yp=(QCOORD)ypos; } | ||
7644 | |||
7645 | inline bool QPoint::isNull() const | ||
7646 | { return xp == 0 && yp == 0; } | ||
7647 | |||
7648 | inline int QPoint::x() const | ||
7649 | { return xp; } | ||
7650 | |||
7651 | inline int QPoint::y() const | ||
7652 | { return yp; } | ||
7653 | |||
7654 | inline void QPoint::setX( int x ) | ||
7655 | { xp = (QCOORD)x; } | ||
7656 | |||
7657 | inline void QPoint::setY( int y ) | ||
7658 | { yp = (QCOORD)y; } | ||
7659 | |||
7660 | inline QCOORD &QPoint::rx() | ||
7661 | { return xp; } | ||
7662 | |||
7663 | inline QCOORD &QPoint::ry() | ||
7664 | { return yp; } | ||
7665 | |||
7666 | inline QPoint &QPoint::operator+=( const QPoint &p ) | ||
7667 | { xp+=p.xp; yp+=p.yp; return *this; } | ||
7668 | |||
7669 | inline QPoint &QPoint::operator-=( const QPoint &p ) | ||
7670 | { xp-=p.xp; yp-=p.yp; return *this; } | ||
7671 | |||
7672 | inline QPoint &QPoint::operator*=( int c ) | ||
7673 | { xp*=(QCOORD)c; yp*=(QCOORD)c; return *this; } | ||
7674 | |||
7675 | inline QPoint &QPoint::operator*=( double c ) | ||
7676 | { xp=(QCOORD)(xp*c); yp=(QCOORD)(yp*c); return *this; } | ||
7677 | |||
7678 | inline bool operator==( const QPoint &p1, const QPoint &p2 ) | ||
7679 | { return p1.xp == p2.xp && p1.yp == p2.yp; } | ||
7680 | |||
7681 | inline bool operator!=( const QPoint &p1, const QPoint &p2 ) | ||
7682 | { return p1.xp != p2.xp || p1.yp != p2.yp; } | ||
7683 | |||
7684 | inline QPoint operator+( const QPoint &p1, const QPoint &p2 ) | ||
7685 | { return QPoint(p1.xp+p2.xp, p1.yp+p2.yp); } | ||
7686 | |||
7687 | inline QPoint operator-( const QPoint &p1, const QPoint &p2 ) | ||
7688 | { return QPoint(p1.xp-p2.xp, p1.yp-p2.yp); } | ||
7689 | |||
7690 | inline QPoint operator*( const QPoint &p, int c ) | ||
7691 | { return QPoint(p.xp*c, p.yp*c); } | ||
7692 | |||
7693 | inline QPoint operator*( int c, const QPoint &p ) | ||
7694 | { return QPoint(p.xp*c, p.yp*c); } | ||
7695 | |||
7696 | inline QPoint operator*( const QPoint &p, double c ) | ||
7697 | { return QPoint((QCOORD)(p.xp*c), (QCOORD)(p.yp*c)); } | ||
7698 | |||
7699 | inline QPoint operator*( double c, const QPoint &p ) | ||
7700 | { return QPoint((QCOORD)(p.xp*c), (QCOORD)(p.yp*c)); } | ||
7701 | |||
7702 | inline QPoint operator-( const QPoint &p ) | ||
7703 | { return QPoint(-p.xp, -p.yp); } | ||
7704 | |||
7705 | inline QPoint &QPoint::operator/=( int c ) | ||
7706 | { | ||
7707 | |||
7708 | if ( c == 0 ) | ||
7709 | warningDivByZero(); | ||
7710 | |||
7711 | xp/=(QCOORD)c; | ||
7712 | yp/=(QCOORD)c; | ||
7713 | return *this; | ||
7714 | } | ||
7715 | |||
7716 | inline QPoint &QPoint::operator/=( double c ) | ||
7717 | { | ||
7718 | |||
7719 | if ( c == 0.0 ) | ||
7720 | warningDivByZero(); | ||
7721 | |||
7722 | xp=(QCOORD)(xp/c); | ||
7723 | yp=(QCOORD)(yp/c); | ||
7724 | return *this; | ||
7725 | } | ||
7726 | |||
7727 | inline QPoint operator/( const QPoint &p, int c ) | ||
7728 | { | ||
7729 | |||
7730 | if ( c == 0 ) | ||
7731 | QPoint::warningDivByZero(); | ||
7732 | |||
7733 | return QPoint(p.xp/c, p.yp/c); | ||
7734 | } | ||
7735 | |||
7736 | inline QPoint operator/( const QPoint &p, double c ) | ||
7737 | { | ||
7738 | |||
7739 | if ( c == 0.0 ) | ||
7740 | QPoint::warningDivByZero(); | ||
7741 | |||
7742 | return QPoint((QCOORD)(p.xp/c), (QCOORD)(p.yp/c)); | ||
7743 | } | ||
7744 | |||
7745 | |||
7746 | |||
7747 | # 42 "/opt/Qtopia/include/qsize.h" 2 | ||
7748 | |||
7749 | |||
7750 | |||
7751 | |||
7752 | class QSize | ||
7753 | { | ||
7754 | public: | ||
7755 | QSize(); | ||
7756 | QSize( int w, int h ); | ||
7757 | |||
7758 | bool isNull()const; | ||
7759 | bool isEmpty()const; | ||
7760 | bool isValid()const; | ||
7761 | |||
7762 | int width()const; | ||
7763 | int height()const; | ||
7764 | void setWidth( int w ); | ||
7765 | void setHeight( int h ); | ||
7766 | void transpose(); | ||
7767 | |||
7768 | QSize expandedTo( const QSize & ) const; | ||
7769 | QSize boundedTo( const QSize & ) const; | ||
7770 | |||
7771 | QCOORD &rwidth(); | ||
7772 | QCOORD &rheight(); | ||
7773 | |||
7774 | QSize &operator+=( const QSize & ); | ||
7775 | QSize &operator-=( const QSize & ); | ||
7776 | QSize &operator*=( int c ); | ||
7777 | QSize &operator*=( double c ); | ||
7778 | QSize &operator/=( int c ); | ||
7779 | QSize &operator/=( double c ); | ||
7780 | |||
7781 | friend inline booloperator==( const QSize &, const QSize & ); | ||
7782 | friend inline booloperator!=( const QSize &, const QSize & ); | ||
7783 | friend inline QSize operator+( const QSize &, const QSize & ); | ||
7784 | friend inline QSize operator-( const QSize &, const QSize & ); | ||
7785 | friend inline QSize operator*( const QSize &, int ); | ||
7786 | friend inline QSize operator*( int, const QSize & ); | ||
7787 | friend inline QSize operator*( const QSize &, double ); | ||
7788 | friend inline QSize operator*( double, const QSize & ); | ||
7789 | friend inline QSize operator/( const QSize &, int ); | ||
7790 | friend inline QSize operator/( const QSize &, double ); | ||
7791 | |||
7792 | private: | ||
7793 | static void warningDivByZero(); | ||
7794 | |||
7795 | QCOORD wd; | ||
7796 | QCOORD ht; | ||
7797 | }; | ||
7798 | |||
7799 | |||
7800 | |||
7801 | |||
7802 | |||
7803 | |||
7804 | QDataStream &operator<<( QDataStream &, const QSize & ); | ||
7805 | QDataStream &operator>>( QDataStream &, QSize & ); | ||
7806 | |||
7807 | |||
7808 | |||
7809 | |||
7810 | |||
7811 | |||
7812 | inline QSize::QSize() | ||
7813 | { wd = ht = -1; } | ||
7814 | |||
7815 | inline QSize::QSize( int w, int h ) | ||
7816 | { wd=(QCOORD)w; ht=(QCOORD)h; } | ||
7817 | |||
7818 | inline bool QSize::isNull() const | ||
7819 | { return wd==0 && ht==0; } | ||
7820 | |||
7821 | inline bool QSize::isEmpty() const | ||
7822 | { return wd<1 || ht<1; } | ||
7823 | |||
7824 | inline bool QSize::isValid() const | ||
7825 | { return wd>=0 && ht>=0; } | ||
7826 | |||
7827 | inline int QSize::width() const | ||
7828 | { return wd; } | ||
7829 | |||
7830 | inline int QSize::height() const | ||
7831 | { return ht; } | ||
7832 | |||
7833 | inline void QSize::setWidth( int w ) | ||
7834 | { wd=(QCOORD)w; } | ||
7835 | |||
7836 | inline void QSize::setHeight( int h ) | ||
7837 | { ht=(QCOORD)h; } | ||
7838 | |||
7839 | inline QCOORD &QSize::rwidth() | ||
7840 | { return wd; } | ||
7841 | |||
7842 | inline QCOORD &QSize::rheight() | ||
7843 | { return ht; } | ||
7844 | |||
7845 | inline QSize &QSize::operator+=( const QSize &s ) | ||
7846 | { wd+=s.wd; ht+=s.ht; return *this; } | ||
7847 | |||
7848 | inline QSize &QSize::operator-=( const QSize &s ) | ||
7849 | { wd-=s.wd; ht-=s.ht; return *this; } | ||
7850 | |||
7851 | inline QSize &QSize::operator*=( int c ) | ||
7852 | { wd*=(QCOORD)c; ht*=(QCOORD)c; return *this; } | ||
7853 | |||
7854 | inline QSize &QSize::operator*=( double c ) | ||
7855 | { wd=(QCOORD)(wd*c); ht=(QCOORD)(ht*c); return *this; } | ||
7856 | |||
7857 | inline bool operator==( const QSize &s1, const QSize &s2 ) | ||
7858 | { return s1.wd == s2.wd && s1.ht == s2.ht; } | ||
7859 | |||
7860 | inline bool operator!=( const QSize &s1, const QSize &s2 ) | ||
7861 | { return s1.wd != s2.wd || s1.ht != s2.ht; } | ||
7862 | |||
7863 | inline QSize operator+( const QSize & s1, const QSize & s2 ) | ||
7864 | { return QSize(s1.wd+s2.wd, s1.ht+s2.ht); } | ||
7865 | |||
7866 | inline QSize operator-( const QSize &s1, const QSize &s2 ) | ||
7867 | { return QSize(s1.wd-s2.wd, s1.ht-s2.ht); } | ||
7868 | |||
7869 | inline QSize operator*( const QSize &s, int c ) | ||
7870 | { return QSize(s.wd*c, s.ht*c); } | ||
7871 | |||
7872 | inline QSize operator*( int c, const QSize &s ) | ||
7873 | { return QSize(s.wd*c, s.ht*c); } | ||
7874 | |||
7875 | inline QSize operator*( const QSize &s, double c ) | ||
7876 | { return QSize((QCOORD)(s.wd*c), (QCOORD)(s.ht*c)); } | ||
7877 | |||
7878 | inline QSize operator*( double c, const QSize &s ) | ||
7879 | { return QSize((QCOORD)(s.wd*c), (QCOORD)(s.ht*c)); } | ||
7880 | |||
7881 | inline QSize &QSize::operator/=( int c ) | ||
7882 | { | ||
7883 | |||
7884 | if ( c == 0 ) | ||
7885 | warningDivByZero(); | ||
7886 | |||
7887 | wd/=(QCOORD)c; ht/=(QCOORD)c; | ||
7888 | return *this; | ||
7889 | } | ||
7890 | |||
7891 | inline QSize &QSize::operator/=( double c ) | ||
7892 | { | ||
7893 | |||
7894 | if ( c == 0.0 ) | ||
7895 | warningDivByZero(); | ||
7896 | |||
7897 | wd=(QCOORD)(wd/c); ht=(QCOORD)(ht/c); | ||
7898 | return *this; | ||
7899 | } | ||
7900 | |||
7901 | inline QSize operator/( const QSize &s, int c ) | ||
7902 | { | ||
7903 | |||
7904 | if ( c == 0 ) | ||
7905 | QSize::warningDivByZero(); | ||
7906 | |||
7907 | return QSize(s.wd/c, s.ht/c); | ||
7908 | } | ||
7909 | |||
7910 | inline QSize operator/( const QSize &s, double c ) | ||
7911 | { | ||
7912 | |||
7913 | if ( c == 0.0 ) | ||
7914 | QSize::warningDivByZero(); | ||
7915 | |||
7916 | return QSize((QCOORD)(s.wd/c), (QCOORD)(s.ht/c)); | ||
7917 | } | ||
7918 | |||
7919 | inline QSize QSize::expandedTo( const QSize & otherSize ) const | ||
7920 | { | ||
7921 | return QSize( (( wd ) > ( otherSize.wd ) ? ( wd ) : ( otherSize.wd )) , (( ht ) > ( otherSize.ht ) ? ( ht ) : ( otherSize.ht )) ); | ||
7922 | } | ||
7923 | |||
7924 | inline QSize QSize::boundedTo( const QSize & otherSize ) const | ||
7925 | { | ||
7926 | return QSize( (( wd ) < ( otherSize.wd ) ? ( wd ) : ( otherSize.wd )) , (( ht ) < ( otherSize.ht ) ? ( ht ) : ( otherSize.ht )) ); | ||
7927 | } | ||
7928 | |||
7929 | |||
7930 | |||
7931 | # 42 "/opt/Qtopia/include/qrect.h" 2 | ||
7932 | |||
7933 | |||
7934 | |||
7935 | |||
7936 | |||
7937 | |||
7938 | |||
7939 | |||
7940 | class QRect | ||
7941 | { | ||
7942 | public: | ||
7943 | QRect(){ x1 = y1 = 0; x2 = y2 = -1; } | ||
7944 | QRect( const QPoint &topleft, const QPoint &bottomright ); | ||
7945 | QRect( const QPoint &topleft, const QSize &size ); | ||
7946 | QRect( int left, int top, int width, int height ); | ||
7947 | |||
7948 | bool isNull()const; | ||
7949 | bool isEmpty()const; | ||
7950 | bool isValid()const; | ||
7951 | QRect normalize()const; | ||
7952 | |||
7953 | int left()const; | ||
7954 | int top()const; | ||
7955 | int right()const; | ||
7956 | int bottom()const; | ||
7957 | |||
7958 | QCOORD &rLeft(); | ||
7959 | QCOORD &rTop(); | ||
7960 | QCOORD &rRight(); | ||
7961 | QCOORD &rBottom(); | ||
7962 | |||
7963 | int x() const; | ||
7964 | int y() const; | ||
7965 | void setLeft( int pos ); | ||
7966 | void setTop( int pos ); | ||
7967 | void setRight( int pos ); | ||
7968 | void setBottom( int pos ); | ||
7969 | void setX( int x ); | ||
7970 | void setY( int y ); | ||
7971 | |||
7972 | QPoint topLeft() const; | ||
7973 | QPoint bottomRight() const; | ||
7974 | QPoint topRight() const; | ||
7975 | QPoint bottomLeft() const; | ||
7976 | QPoint center() const; | ||
7977 | |||
7978 | void rect( int *x, int *y, int *w, int *h ) const; | ||
7979 | void coords( int *x1, int *y1, int *x2, int *y2 ) const; | ||
7980 | |||
7981 | void moveTopLeft( const QPoint &p ); | ||
7982 | void moveBottomRight( const QPoint &p ); | ||
7983 | void moveTopRight( const QPoint &p ); | ||
7984 | void moveBottomLeft( const QPoint &p ); | ||
7985 | void moveCenter( const QPoint &p ); | ||
7986 | void moveBy( int dx, int dy ); | ||
7987 | |||
7988 | void setRect( int x, int y, int w, int h ); | ||
7989 | void setCoords( int x1, int y1, int x2, int y2 ); | ||
7990 | |||
7991 | QSize size()const; | ||
7992 | int width()const; | ||
7993 | int height()const; | ||
7994 | void setWidth( int w ); | ||
7995 | void setHeight( int h ); | ||
7996 | void setSize( const QSize &s ); | ||
7997 | |||
7998 | QRect operator|(const QRect &r) const; | ||
7999 | QRect operator&(const QRect &r) const; | ||
8000 | QRect& operator|=(const QRect &r); | ||
8001 | QRect& operator&=(const QRect &r); | ||
8002 | |||
8003 | bool contains( const QPoint &p, bool proper=FALSE ) const; | ||
8004 | bool contains( int x, int y, bool proper=FALSE ) const; | ||
8005 | bool contains( const QRect &r, bool proper=FALSE ) const; | ||
8006 | QRect unite( const QRect &r ) const; | ||
8007 | QRect intersect( const QRect &r ) const; | ||
8008 | bool intersects( const QRect &r ) const; | ||
8009 | |||
8010 | friend bool operator==( const QRect &, const QRect & ); | ||
8011 | friend bool operator!=( const QRect &, const QRect & ); | ||
8012 | |||
8013 | private: | ||
8014 | |||
8015 | |||
8016 | |||
8017 | |||
8018 | |||
8019 | |||
8020 | QCOORD x1; | ||
8021 | QCOORD y1; | ||
8022 | QCOORD x2; | ||
8023 | QCOORD y2; | ||
8024 | |||
8025 | }; | ||
8026 | |||
8027 | bool operator==( const QRect &, const QRect & ); | ||
8028 | bool operator!=( const QRect &, const QRect & ); | ||
8029 | |||
8030 | |||
8031 | |||
8032 | |||
8033 | |||
8034 | |||
8035 | QDataStream &operator<<( QDataStream &, const QRect & ); | ||
8036 | QDataStream &operator>>( QDataStream &, QRect & ); | ||
8037 | |||
8038 | |||
8039 | |||
8040 | |||
8041 | |||
8042 | |||
8043 | inline QRect::QRect( int left, int top, int width, int height ) | ||
8044 | { | ||
8045 | x1 = (QCOORD)left; | ||
8046 | y1 = (QCOORD)top; | ||
8047 | x2 = (QCOORD)(left+width-1); | ||
8048 | y2 = (QCOORD)(top+height-1); | ||
8049 | } | ||
8050 | |||
8051 | inline bool QRect::isNull() const | ||
8052 | { return x2 == x1-1 && y2 == y1-1; } | ||
8053 | |||
8054 | inline bool QRect::isEmpty() const | ||
8055 | { return x1 > x2 || y1 > y2; } | ||
8056 | |||
8057 | inline bool QRect::isValid() const | ||
8058 | { return x1 <= x2 && y1 <= y2; } | ||
8059 | |||
8060 | inline int QRect::left() const | ||
8061 | { return x1; } | ||
8062 | |||
8063 | inline int QRect::top() const | ||
8064 | { return y1; } | ||
8065 | |||
8066 | inline int QRect::right() const | ||
8067 | { return x2; } | ||
8068 | |||
8069 | inline int QRect::bottom() const | ||
8070 | { return y2; } | ||
8071 | |||
8072 | inline QCOORD &QRect::rLeft() | ||
8073 | { return x1; } | ||
8074 | |||
8075 | inline QCOORD & QRect::rTop() | ||
8076 | { return y1; } | ||
8077 | |||
8078 | inline QCOORD & QRect::rRight() | ||
8079 | { return x2; } | ||
8080 | |||
8081 | inline QCOORD & QRect::rBottom() | ||
8082 | { return y2; } | ||
8083 | |||
8084 | inline int QRect::x() const | ||
8085 | { return x1; } | ||
8086 | |||
8087 | inline int QRect::y() const | ||
8088 | { return y1; } | ||
8089 | |||
8090 | inline void QRect::setLeft( int pos ) | ||
8091 | { x1 = (QCOORD)pos; } | ||
8092 | |||
8093 | inline void QRect::setTop( int pos ) | ||
8094 | { y1 = (QCOORD)pos; } | ||
8095 | |||
8096 | inline void QRect::setRight( int pos ) | ||
8097 | { x2 = (QCOORD)pos; } | ||
8098 | |||
8099 | inline void QRect::setBottom( int pos ) | ||
8100 | { y2 = (QCOORD)pos; } | ||
8101 | |||
8102 | inline void QRect::setX( int x ) | ||
8103 | { x1 = (QCOORD)x; } | ||
8104 | |||
8105 | inline void QRect::setY( int y ) | ||
8106 | { y1 = (QCOORD)y; } | ||
8107 | |||
8108 | inline QPoint QRect::topLeft() const | ||
8109 | { return QPoint(x1, y1); } | ||
8110 | |||
8111 | inline QPoint QRect::bottomRight() const | ||
8112 | { return QPoint(x2, y2); } | ||
8113 | |||
8114 | inline QPoint QRect::topRight() const | ||
8115 | { return QPoint(x2, y1); } | ||
8116 | |||
8117 | inline QPoint QRect::bottomLeft() const | ||
8118 | { return QPoint(x1, y2); } | ||
8119 | |||
8120 | inline QPoint QRect::center() const | ||
8121 | { return QPoint((x1+x2)/2, (y1+y2)/2); } | ||
8122 | |||
8123 | inline int QRect::width() const | ||
8124 | { return x2 - x1 + 1; } | ||
8125 | |||
8126 | inline int QRect::height() const | ||
8127 | { return y2 - y1 + 1; } | ||
8128 | |||
8129 | inline QSize QRect::size() const | ||
8130 | { return QSize(x2-x1+1, y2-y1+1); } | ||
8131 | |||
8132 | inline bool QRect::contains( int x, int y, bool proper ) const | ||
8133 | { | ||
8134 | if ( proper ) | ||
8135 | return x > x1 && x < x2 && | ||
8136 | y > y1 && y < y2; | ||
8137 | else | ||
8138 | return x >= x1 && x <= x2 && | ||
8139 | y >= y1 && y <= y2; | ||
8140 | } | ||
8141 | |||
8142 | |||
8143 | # 43 "/opt/Qtopia/include/qregion.h" 2 | ||
8144 | |||
8145 | |||
8146 | |||
8147 | |||
8148 | |||
8149 | class QRegion | ||
8150 | { | ||
8151 | public: | ||
8152 | enum RegionType { Rectangle, Ellipse }; | ||
8153 | |||
8154 | QRegion(); | ||
8155 | QRegion( int x, int y, int w, int h, RegionType = Rectangle ); | ||
8156 | QRegion( const QRect &, RegionType = Rectangle ); | ||
8157 | QRegion( const QPointArray &, bool winding=FALSE ); | ||
8158 | QRegion( const QRegion & ); | ||
8159 | QRegion( const QBitmap & ); | ||
8160 | ~QRegion(); | ||
8161 | QRegion &operator=( const QRegion & ); | ||
8162 | |||
8163 | bool isNull() const; | ||
8164 | bool isEmpty() const; | ||
8165 | |||
8166 | bool contains( const QPoint &p ) const; | ||
8167 | bool contains( const QRect &r )const; | ||
8168 | |||
8169 | void translate( int dx, int dy ); | ||
8170 | |||
8171 | QRegion unite( const QRegion & )const; | ||
8172 | QRegion intersect( const QRegion &) const; | ||
8173 | QRegion subtract( const QRegion & ) const; | ||
8174 | QRegion eor( const QRegion & )const; | ||
8175 | |||
8176 | QRect boundingRect() const; | ||
8177 | QArray<QRect> rects() const; | ||
8178 | void setRects( const QRect *, int ); | ||
8179 | |||
8180 | QRegion operator|( const QRegion & ) const; | ||
8181 | QRegion operator+( const QRegion & ) const; | ||
8182 | QRegion operator&( const QRegion & ) const; | ||
8183 | QRegion operator-( const QRegion & ) const; | ||
8184 | QRegion operator^( const QRegion & ) const; | ||
8185 | QRegion& operator|=( const QRegion & ); | ||
8186 | QRegion& operator+=( const QRegion & ); | ||
8187 | QRegion& operator&=( const QRegion & ); | ||
8188 | QRegion& operator-=( const QRegion & ); | ||
8189 | QRegion& operator^=( const QRegion & ); | ||
8190 | |||
8191 | bool operator==( const QRegion & ) const; | ||
8192 | bool operator!=( const QRegion &r ) const | ||
8193 | { return !(operator==(r)); } | ||
8194 | |||
8195 | |||
8196 | |||
8197 | |||
8198 | Region handle() const { return data->rgn; } | ||
8199 | |||
8200 | |||
8201 | |||
8202 | |||
8203 | |||
8204 | |||
8205 | |||
8206 | |||
8207 | friend QDataStream &operator<<( QDataStream &, const QRegion & ); | ||
8208 | friend QDataStream &operator>>( QDataStream &, QRegion & ); | ||
8209 | |||
8210 | private: | ||
8211 | QRegion( bool ); | ||
8212 | QRegion copy() const; | ||
8213 | void detach(); | ||
8214 | |||
8215 | |||
8216 | |||
8217 | void exec( const QByteArray &, int ver = 0 ); | ||
8218 | struct QRegionData : public QShared { | ||
8219 | |||
8220 | |||
8221 | |||
8222 | Region rgn; | ||
8223 | QRect br; | ||
8224 | |||
8225 | |||
8226 | |||
8227 | |||
8228 | |||
8229 | bool is_null; | ||
8230 | } *data; | ||
8231 | }; | ||
8232 | |||
8233 | |||
8234 | |||
8235 | |||
8236 | |||
8237 | |||
8238 | |||
8239 | |||
8240 | |||
8241 | |||
8242 | |||
8243 | |||
8244 | |||
8245 | |||
8246 | |||
8247 | |||
8248 | |||
8249 | |||
8250 | |||
8251 | QDataStream &operator<<( QDataStream &, const QRegion & ); | ||
8252 | QDataStream &operator>>( QDataStream &, QRegion & ); | ||
8253 | |||
8254 | |||
8255 | |||
8256 | |||
8257 | # 43 "/opt/Qtopia/include/qevent.h" 2 | ||
8258 | |||
8259 | |||
8260 | # 1 "/opt/Qtopia/include/qmime.h" 1 | ||
8261 | |||
8262 | |||
8263 | |||
8264 | |||
8265 | |||
8266 | |||
8267 | |||
8268 | |||
8269 | |||
8270 | |||
8271 | |||
8272 | |||
8273 | |||
8274 | |||
8275 | |||
8276 | |||
8277 | |||
8278 | |||
8279 | |||
8280 | |||
8281 | |||
8282 | |||
8283 | |||
8284 | |||
8285 | |||
8286 | |||
8287 | |||
8288 | |||
8289 | |||
8290 | |||
8291 | |||
8292 | |||
8293 | |||
8294 | |||
8295 | |||
8296 | |||
8297 | |||
8298 | |||
8299 | |||
8300 | |||
8301 | |||
8302 | |||
8303 | |||
8304 | |||
8305 | |||
8306 | |||
8307 | class QMimeSource { | ||
8308 | public: | ||
8309 | virtual ~QMimeSource(); | ||
8310 | virtual const char* format( int n = 0 ) const = 0; | ||
8311 | virtual bool provides( const char* ) const; | ||
8312 | virtual QByteArray encodedData( const char* ) const = 0; | ||
8313 | }; | ||
8314 | |||
8315 | class QMimeSourceFactoryData; | ||
8316 | class QStringList; | ||
8317 | |||
8318 | class QMimeSourceFactory { | ||
8319 | public: | ||
8320 | QMimeSourceFactory(); | ||
8321 | virtual ~QMimeSourceFactory(); | ||
8322 | |||
8323 | static QMimeSourceFactory* defaultFactory(); | ||
8324 | static void setDefaultFactory( QMimeSourceFactory* ); | ||
8325 | |||
8326 | virtual const QMimeSource* data(const QString& abs_name) const; | ||
8327 | virtual QString makeAbsolute(const QString& abs_or_rel_name, const QString& context) const; | ||
8328 | const QMimeSource* data(const QString& abs_or_rel_name, const QString& context) const; | ||
8329 | |||
8330 | virtual void setText( const QString& abs_name, const QString& text ); | ||
8331 | virtual void setImage( const QString& abs_name, const QImage& im ); | ||
8332 | virtual void setPixmap( const QString& abs_name, const QPixmap& pm ); | ||
8333 | virtual void setData( const QString& abs_name, QMimeSource* data ); | ||
8334 | virtual void setFilePath( const QStringList& ); | ||
8335 | virtual QStringList filePath() const; | ||
8336 | void addFilePath( const QString& ); | ||
8337 | virtual void setExtensionType( const QString& ext, const char* mimetype ); | ||
8338 | |||
8339 | private: | ||
8340 | QMimeSourceFactoryData* d; | ||
8341 | }; | ||
8342 | |||
8343 | # 119 "/opt/Qtopia/include/qmime.h" | ||
8344 | |||
8345 | |||
8346 | |||
8347 | |||
8348 | |||
8349 | # 45 "/opt/Qtopia/include/qevent.h" 2 | ||
8350 | |||
8351 | |||
8352 | |||
8353 | |||
8354 | class QEvent: public Qt | ||
8355 | { | ||
8356 | public: | ||
8357 | enum Type { | ||
8358 | |||
8359 | |||
8360 | |||
8361 | |||
8362 | |||
8363 | |||
8364 | None = 0, | ||
8365 | |||
8366 | |||
8367 | Timer = 1, | ||
8368 | MouseButtonPress = 2, | ||
8369 | MouseButtonRelease = 3, | ||
8370 | MouseButtonDblClick= 4, | ||
8371 | MouseMove = 5, | ||
8372 | KeyPress = 6, | ||
8373 | KeyRelease = 7, | ||
8374 | FocusIn = 8, | ||
8375 | FocusOut = 9, | ||
8376 | Enter = 10, | ||
8377 | Leave = 11, | ||
8378 | Paint = 12, | ||
8379 | Move = 13, | ||
8380 | Resize = 14, | ||
8381 | Create = 15, | ||
8382 | Destroy = 16, | ||
8383 | Show = 17, | ||
8384 | Hide = 18, | ||
8385 | Close = 19, | ||
8386 | Quit = 20, | ||
8387 | Reparent = 21, | ||
8388 | ShowMinimized = 22, | ||
8389 | ShowNormal = 23, | ||
8390 | WindowActivate = 24, | ||
8391 | WindowDeactivate = 25, | ||
8392 | ShowToParent = 26, | ||
8393 | HideToParent = 27, | ||
8394 | ShowMaximized = 28, | ||
8395 | Accel = 30, | ||
8396 | Wheel = 31, | ||
8397 | AccelAvailable = 32, | ||
8398 | CaptionChange = 33, | ||
8399 | IconChange = 34, | ||
8400 | ParentFontChange = 35, | ||
8401 | ApplicationFontChange = 36, | ||
8402 | ParentPaletteChange = 37, | ||
8403 | ApplicationPaletteChange = 38, | ||
8404 | Clipboard = 40, | ||
8405 | Speech = 42, | ||
8406 | SockAct = 50, | ||
8407 | AccelOverride = 51, | ||
8408 | DragEnter = 60, | ||
8409 | DragMove = 61, | ||
8410 | DragLeave = 62, | ||
8411 | Drop = 63, | ||
8412 | DragResponse = 64, | ||
8413 | ChildInserted = 70, | ||
8414 | ChildRemoved = 71, | ||
8415 | LayoutHint = 72, | ||
8416 | ShowWindowRequest = 73, | ||
8417 | ActivateControl = 80, | ||
8418 | DeactivateControl = 81, | ||
8419 | User = 1000 | ||
8420 | }; | ||
8421 | |||
8422 | QEvent( Type type ) : t(type), posted(FALSE) {} | ||
8423 | virtual ~QEvent(); | ||
8424 | Type type() const{ return t; } | ||
8425 | protected: | ||
8426 | Type t; | ||
8427 | private: | ||
8428 | bool posted; | ||
8429 | |||
8430 | |||
8431 | |||
8432 | |||
8433 | friend class QApplication; | ||
8434 | friend class QBaseApplication; | ||
8435 | }; | ||
8436 | |||
8437 | |||
8438 | class QTimerEvent : public QEvent | ||
8439 | { | ||
8440 | public: | ||
8441 | QTimerEvent( int timerId ) | ||
8442 | : QEvent(Timer), id(timerId) {} | ||
8443 | int timerId() const{ return id; } | ||
8444 | protected: | ||
8445 | int id; | ||
8446 | }; | ||
8447 | |||
8448 | |||
8449 | class QMouseEvent : public QEvent | ||
8450 | { | ||
8451 | public: | ||
8452 | QMouseEvent( Type type, const QPoint &pos, int button, int state ); | ||
8453 | |||
8454 | QMouseEvent( Type type, const QPoint &pos, const QPoint&globalPos, | ||
8455 | int button, int state ) | ||
8456 | : QEvent(type), p(pos), g(globalPos), b(button),s((ushort)state) {}; | ||
8457 | |||
8458 | const QPoint &pos() const{ return p; } | ||
8459 | const QPoint &globalPos() const { return g; } | ||
8460 | int x() const{ return p.x(); } | ||
8461 | int y() const{ return p.y(); } | ||
8462 | int globalX() const{ return g.x(); } | ||
8463 | int globalY() const{ return g.y(); } | ||
8464 | ButtonState button() const{ return (ButtonState) b; } | ||
8465 | ButtonState state() const{ return (ButtonState) s; } | ||
8466 | ButtonState stateAfter() const; | ||
8467 | protected: | ||
8468 | QPoint p; | ||
8469 | QPoint g; | ||
8470 | int b; | ||
8471 | ushort s; | ||
8472 | }; | ||
8473 | |||
8474 | |||
8475 | |||
8476 | class QWheelEvent : public QEvent | ||
8477 | { | ||
8478 | public: | ||
8479 | QWheelEvent( const QPoint &pos, int delta, int state ); | ||
8480 | QWheelEvent( const QPoint &pos, const QPoint& globalPos, int delta, int state ) | ||
8481 | : QEvent(Wheel), p(pos), g(globalPos), d(delta), s((ushort)state), | ||
8482 | accpt(TRUE) {} | ||
8483 | int delta() const{ return d; } | ||
8484 | const QPoint &pos() const{ return p; } | ||
8485 | const QPoint &globalPos() const{ return g; } | ||
8486 | int x() const{ return p.x(); } | ||
8487 | int y() const{ return p.y(); } | ||
8488 | int globalX() const{ return g.x(); } | ||
8489 | int globalY() const{ return g.y(); } | ||
8490 | ButtonState state() const{ return ButtonState(s); } | ||
8491 | bool isAccepted() const{ return accpt; } | ||
8492 | void accept() { accpt = TRUE; } | ||
8493 | void ignore() { accpt = FALSE; } | ||
8494 | protected: | ||
8495 | QPoint p; | ||
8496 | QPoint g; | ||
8497 | int d; | ||
8498 | ushort s; | ||
8499 | bool accpt; | ||
8500 | }; | ||
8501 | |||
8502 | |||
8503 | class QKeyEvent : public QEvent | ||
8504 | { | ||
8505 | public: | ||
8506 | QKeyEvent( Type type, int key, int ascii, int state, | ||
8507 | const QString& text=QString::null, bool autorep=FALSE, ushort count=1 ) | ||
8508 | : QEvent(type), txt(text), k((ushort)key), s((ushort)state), | ||
8509 | a((uchar)ascii), accpt(TRUE), autor(autorep), c(count) {} | ||
8510 | int key() const{ return k; } | ||
8511 | int ascii() const{ return a; } | ||
8512 | ButtonState state() const{ return ButtonState(s); } | ||
8513 | ButtonState stateAfter() const; | ||
8514 | bool isAccepted() const{ return accpt; } | ||
8515 | QString text() const { return txt; } | ||
8516 | bool isAutoRepeat() const{ return autor; } | ||
8517 | int count() const{ return int(c); } | ||
8518 | void accept() { accpt = TRUE; } | ||
8519 | void ignore() { accpt = FALSE; } | ||
8520 | |||
8521 | protected: | ||
8522 | QString txt; | ||
8523 | ushort k, s; | ||
8524 | uchar a; | ||
8525 | uint accpt:1; | ||
8526 | uint autor:1; | ||
8527 | ushort c; | ||
8528 | }; | ||
8529 | |||
8530 | |||
8531 | class QFocusEvent : public QEvent | ||
8532 | { | ||
8533 | public: | ||
8534 | |||
8535 | QFocusEvent( Type type ) | ||
8536 | : QEvent(type) {} | ||
8537 | |||
8538 | bool gotFocus()const { return type() == FocusIn; } | ||
8539 | bool lostFocus()const { return type() == FocusOut; } | ||
8540 | |||
8541 | enum Reason { Mouse, Tab, ActiveWindow, Popup, Shortcut, Other }; | ||
8542 | static Reason reason(); | ||
8543 | static void setReason( Reason reason ); | ||
8544 | static void resetReason(); | ||
8545 | |||
8546 | private: | ||
8547 | static Reason m_reason; | ||
8548 | static Reason prev_reason; | ||
8549 | }; | ||
8550 | |||
8551 | |||
8552 | class QPaintEvent : public QEvent | ||
8553 | { | ||
8554 | public: | ||
8555 | QPaintEvent( const QRegion& paintRegion, bool erased = TRUE) | ||
8556 | : QEvent(Paint), | ||
8557 | rec(paintRegion.boundingRect()), | ||
8558 | reg(paintRegion), | ||
8559 | erase(erased){} | ||
8560 | QPaintEvent( const QRect &paintRect, bool erased = TRUE ) | ||
8561 | : QEvent(Paint), | ||
8562 | rec(paintRect), | ||
8563 | reg(paintRect), | ||
8564 | erase(erased){} | ||
8565 | const QRect &rect() const { return rec; } | ||
8566 | const QRegion ®ion() const { return reg; } | ||
8567 | bool erased() const { return erase; } | ||
8568 | protected: | ||
8569 | friend class QApplication; | ||
8570 | friend class QBaseApplication; | ||
8571 | QRect rec; | ||
8572 | QRegion reg; | ||
8573 | bool erase; | ||
8574 | }; | ||
8575 | |||
8576 | |||
8577 | class QMoveEvent : public QEvent | ||
8578 | { | ||
8579 | public: | ||
8580 | QMoveEvent( const QPoint &pos, const QPoint &oldPos ) | ||
8581 | : QEvent(Move), p(pos), oldp(oldPos) {} | ||
8582 | const QPoint &pos() const { return p; } | ||
8583 | const QPoint &oldPos()const { return oldp;} | ||
8584 | protected: | ||
8585 | QPoint p, oldp; | ||
8586 | friend class QApplication; | ||
8587 | friend class QBaseApplication; | ||
8588 | }; | ||
8589 | |||
8590 | |||
8591 | class QResizeEvent : public QEvent | ||
8592 | { | ||
8593 | public: | ||
8594 | QResizeEvent( const QSize &size, const QSize &oldSize ) | ||
8595 | : QEvent(Resize), s(size), olds(oldSize) {} | ||
8596 | const QSize &size() const { return s; } | ||
8597 | const QSize &oldSize()const { return olds;} | ||
8598 | protected: | ||
8599 | QSize s, olds; | ||
8600 | friend class QApplication; | ||
8601 | friend class QBaseApplication; | ||
8602 | }; | ||
8603 | |||
8604 | |||
8605 | class QCloseEvent : public QEvent | ||
8606 | { | ||
8607 | public: | ||
8608 | QCloseEvent() | ||
8609 | : QEvent(Close), accpt(FALSE) {} | ||
8610 | bool isAccepted() const{ return accpt; } | ||
8611 | void accept() { accpt = TRUE; } | ||
8612 | void ignore() { accpt = FALSE; } | ||
8613 | protected: | ||
8614 | bool accpt; | ||
8615 | }; | ||
8616 | |||
8617 | |||
8618 | class QShowEvent : public QEvent | ||
8619 | { | ||
8620 | public: | ||
8621 | QShowEvent(bool spontaneous) | ||
8622 | : QEvent(Show), spont(spontaneous) {} | ||
8623 | bool spontaneous() const { return spont; } | ||
8624 | protected: | ||
8625 | bool spont; | ||
8626 | }; | ||
8627 | |||
8628 | |||
8629 | class QHideEvent : public QEvent | ||
8630 | { | ||
8631 | public: | ||
8632 | QHideEvent(bool spontaneous) | ||
8633 | : QEvent(Hide), spont(spontaneous) {} | ||
8634 | bool spontaneous() const { return spont; } | ||
8635 | protected: | ||
8636 | bool spont; | ||
8637 | }; | ||
8638 | |||
8639 | # 423 "/opt/Qtopia/include/qevent.h" | ||
8640 | |||
8641 | |||
8642 | class QChildEvent : public QEvent | ||
8643 | { | ||
8644 | public: | ||
8645 | QChildEvent( Type type, QObject *child ) | ||
8646 | : QEvent(type), c(child) {} | ||
8647 | QObject *child() const{ return c; } | ||
8648 | bool inserted() const { return t == ChildInserted; } | ||
8649 | bool removed() const { return t == ChildRemoved; } | ||
8650 | protected: | ||
8651 | QObject *c; | ||
8652 | }; | ||
8653 | |||
8654 | |||
8655 | class QCustomEvent : public QEvent | ||
8656 | { | ||
8657 | public: | ||
8658 | QCustomEvent( int type ); | ||
8659 | QCustomEvent( Type type, void *data ) | ||
8660 | : QEvent(type), d(data) {}; | ||
8661 | void *data() const{ return d; } | ||
8662 | void setData( void* data ){ d = data; } | ||
8663 | private: | ||
8664 | void *d; | ||
8665 | }; | ||
8666 | |||
8667 | |||
8668 | # 45 "/opt/Qtopia/include/qobject.h" 2 | ||
8669 | |||
8670 | |||
8671 | |||
8672 | |||
8673 | |||
8674 | |||
8675 | |||
8676 | |||
8677 | class QMetaObject; | ||
8678 | class QVariant; | ||
8679 | |||
8680 | |||
8681 | |||
8682 | class QObject: public Qt | ||
8683 | { | ||
8684 | |||
8685 | |||
8686 | public: | ||
8687 | QObject( QObject *parent=0, const char *name=0 ); | ||
8688 | virtual ~QObject(); | ||
8689 | |||
8690 | static QString tr( const char * ); | ||
8691 | static QString tr( const char *, const char * ); | ||
8692 | |||
8693 | virtual bool event( QEvent * ); | ||
8694 | virtual bool eventFilter( QObject *, QEvent * ); | ||
8695 | |||
8696 | virtual QMetaObject *metaObject() const { return staticMetaObject(); } | ||
8697 | virtual const char*className() const; | ||
8698 | |||
8699 | bool isA( const char * ) const; | ||
8700 | bool inherits( const char * ) const; | ||
8701 | |||
8702 | const char *name() const; | ||
8703 | const char *name( const char * defaultName ) const; | ||
8704 | |||
8705 | virtual void setName( const char *name ); | ||
8706 | bool isWidgetType() const { return isWidget; } | ||
8707 | bool highPriority() const { return FALSE; } | ||
8708 | |||
8709 | bool signalsBlocked() const { return blockSig; } | ||
8710 | void blockSignals( bool b ); | ||
8711 | |||
8712 | int startTimer( int interval ); | ||
8713 | void killTimer( int id ); | ||
8714 | void killTimers(); | ||
8715 | |||
8716 | QObject *child( const char *name, const char *type = 0 ); | ||
8717 | const QObjectList *children() const { return childObjects; } | ||
8718 | |||
8719 | static const QObjectList *objectTrees(); | ||
8720 | |||
8721 | |||
8722 | QObjectList *queryList( const char *inheritsClass = 0, | ||
8723 | const char *objName = 0, | ||
8724 | bool regexpMatch = TRUE, | ||
8725 | bool recursiveSearch = TRUE ); | ||
8726 | |||
8727 | virtual void insertChild( QObject * ); | ||
8728 | virtual void removeChild( QObject * ); | ||
8729 | |||
8730 | void installEventFilter( const QObject * ); | ||
8731 | void removeEventFilter( const QObject * ); | ||
8732 | |||
8733 | static bool connect( const QObject *sender, const char *signal, | ||
8734 | const QObject *receiver, const char *member ); | ||
8735 | bool connect( const QObject *sender, const char *signal, | ||
8736 | const char *member ) const; | ||
8737 | static bool disconnect( const QObject *sender, const char *signal, | ||
8738 | const QObject *receiver, const char *member ); | ||
8739 | bool disconnect( const char *signal=0, | ||
8740 | const QObject *receiver=0, const char *member=0 ); | ||
8741 | bool disconnect( const QObject *receiver, const char *member=0 ); | ||
8742 | |||
8743 | void dumpObjectTree(); | ||
8744 | void dumpObjectInfo(); | ||
8745 | |||
8746 | |||
8747 | |||
8748 | |||
8749 | |||
8750 | |||
8751 | protected : | ||
8752 | void destroyed(); | ||
8753 | |||
8754 | public: | ||
8755 | QObject*parent() const { return parentObj; } | ||
8756 | |||
8757 | private : | ||
8758 | void cleanupEventFilter(); | ||
8759 | |||
8760 | protected: | ||
8761 | bool activate_filters( QEvent * ); | ||
8762 | QConnectionList *receivers( const char *signal ) const; | ||
8763 | void activate_signal( const char *signal ); | ||
8764 | void activate_signal( const char *signal, short ); | ||
8765 | void activate_signal( const char *signal, int ); | ||
8766 | void activate_signal( const char *signal, long ); | ||
8767 | void activate_signal( const char *signal, const char * ); | ||
8768 | void activate_signal_bool( const char *signal, bool ); | ||
8769 | void activate_signal_string( const char *signal, QString ); | ||
8770 | void activate_signal_strref( const char *signal, const QString & ); | ||
8771 | |||
8772 | const QObject *sender(); | ||
8773 | |||
8774 | |||
8775 | virtual void initMetaObject(); | ||
8776 | static QMetaObject* staticMetaObject(); | ||
8777 | |||
8778 | virtual void timerEvent( QTimerEvent * ); | ||
8779 | virtual void childEvent( QChildEvent * ); | ||
8780 | |||
8781 | virtual void connectNotify( const char *signal ); | ||
8782 | virtual void disconnectNotify( const char *signal ); | ||
8783 | virtual bool checkConnectArgs( const char *signal, const QObject *receiver, | ||
8784 | const char *member ); | ||
8785 | static QCString normalizeSignalSlot( const char *signalSlot ); | ||
8786 | |||
8787 | static void badSuperclassWarning( const char *className, | ||
8788 | const char *superclassName ); | ||
8789 | |||
8790 | private: | ||
8791 | uintisSignal : 1; | ||
8792 | uintisWidget : 1; | ||
8793 | uintpendTimer : 1; | ||
8794 | uintpendEvent : 1; | ||
8795 | uintblockSig : 1; | ||
8796 | uintwasDeleted : 1; | ||
8797 | uintisTree : 1; | ||
8798 | |||
8799 | QMetaObject *queryMetaObject() const; | ||
8800 | static QMetaObject *metaObj; | ||
8801 | const char*objname; | ||
8802 | QObject*parentObj; | ||
8803 | QObjectList *childObjects; | ||
8804 | QSignalDict *connections; | ||
8805 | QObjectList *senderObjects; | ||
8806 | QObjectList *eventFilters; | ||
8807 | |||
8808 | |||
8809 | QObject*sigSender; | ||
8810 | |||
8811 | friend class QApplication; | ||
8812 | friend class QBaseApplication; | ||
8813 | friend class QWidget; | ||
8814 | friend class QSignal; | ||
8815 | friend class QSenderObject; | ||
8816 | |||
8817 | private: | ||
8818 | |||
8819 | QObject( const QObject & ); | ||
8820 | QObject &operator=( const QObject & ); | ||
8821 | |||
8822 | |||
8823 | public: | ||
8824 | |||
8825 | |||
8826 | QStringList superClasses( bool includeThis = FALSE ) const; | ||
8827 | |||
8828 | }; | ||
8829 | |||
8830 | |||
8831 | |||
8832 | inline bool QObject::connect( const QObject *sender, const char *signal, | ||
8833 | const char *member ) const | ||
8834 | { | ||
8835 | return connect( sender, signal, this, member ); | ||
8836 | } | ||
8837 | |||
8838 | inline bool QObject::disconnect( const char *signal, | ||
8839 | const QObject *receiver, const char *member ) | ||
8840 | { | ||
8841 | return disconnect( this, signal, receiver, member ); | ||
8842 | } | ||
8843 | |||
8844 | inline bool QObject::disconnect( const QObject *receiver, const char *member ) | ||
8845 | { | ||
8846 | return disconnect( this, 0, receiver, member ); | ||
8847 | } | ||
8848 | |||
8849 | inline const QObject *QObject::sender() | ||
8850 | { | ||
8851 | return sigSender; | ||
8852 | } | ||
8853 | |||
8854 | |||
8855 | class QSenderObject : public QObject | ||
8856 | { | ||
8857 | public: | ||
8858 | void setSender( QObject *s ) { sigSender=s; } | ||
8859 | }; | ||
8860 | |||
8861 | |||
8862 | |||
8863 | |||
8864 | |||
8865 | |||
8866 | |||
8867 | |||
8868 | |||
8869 | |||
8870 | |||
8871 | |||
8872 | # 43 "/opt/Qtopia/include/qwidget.h" 2 | ||
8873 | |||
8874 | # 1 "/opt/Qtopia/include/qpaintdevice.h" 1 | ||
8875 | |||
8876 | |||
8877 | |||
8878 | |||
8879 | |||
8880 | |||
8881 | |||
8882 | |||
8883 | |||
8884 | |||
8885 | |||
8886 | |||
8887 | |||
8888 | |||
8889 | |||
8890 | |||
8891 | |||
8892 | |||
8893 | |||
8894 | |||
8895 | |||
8896 | |||
8897 | |||
8898 | |||
8899 | |||
8900 | |||
8901 | |||
8902 | |||
8903 | |||
8904 | |||
8905 | |||
8906 | |||
8907 | |||
8908 | |||
8909 | |||
8910 | |||
8911 | |||
8912 | |||
8913 | |||
8914 | |||
8915 | |||
8916 | |||
8917 | |||
8918 | |||
8919 | |||
8920 | |||
8921 | |||
8922 | |||
8923 | |||
8924 | |||
8925 | class QIODevice; | ||
8926 | class QString; | ||
8927 | |||
8928 | |||
8929 | |||
8930 | struct QPaintDeviceX11Data; | ||
8931 | |||
8932 | |||
8933 | union QPDevCmdParam { | ||
8934 | int ival; | ||
8935 | int *ivec; | ||
8936 | QString *str; | ||
8937 | const QPoint*point; | ||
8938 | const QRect *rect; | ||
8939 | const QPointArray*ptarr; | ||
8940 | const QPixmap*pixmap; | ||
8941 | const QImage*image; | ||
8942 | const QColor*color; | ||
8943 | const QFont *font; | ||
8944 | const QPen *pen; | ||
8945 | const QBrush*brush; | ||
8946 | const QRegion*rgn; | ||
8947 | const QWMatrix*matrix; | ||
8948 | QIODevice *device; | ||
8949 | }; | ||
8950 | |||
8951 | |||
8952 | |||
8953 | class QPaintDevice | ||
8954 | { | ||
8955 | public: | ||
8956 | virtual ~QPaintDevice(); | ||
8957 | |||
8958 | int devType() const; | ||
8959 | boolisExtDev() const; | ||
8960 | boolpaintingActive() const; | ||
8961 | |||
8962 | |||
8963 | |||
8964 | |||
8965 | |||
8966 | |||
8967 | HANDLEhandle() const; | ||
8968 | |||
8969 | |||
8970 | |||
8971 | |||
8972 | |||
8973 | |||
8974 | |||
8975 | Display *x11Display() const; | ||
8976 | int x11Screen() const; | ||
8977 | int x11Depth() const; | ||
8978 | int x11Cells() const; | ||
8979 | HANDLE x11Colormap() const; | ||
8980 | bool x11DefaultColormap() const; | ||
8981 | void *x11Visual() const; | ||
8982 | bool x11DefaultVisual() const; | ||
8983 | |||
8984 | static Display *x11AppDisplay(); | ||
8985 | static int x11AppScreen(); | ||
8986 | static int x11AppDepth(); | ||
8987 | static int x11AppCells(); | ||
8988 | static int x11AppDpiX(); | ||
8989 | static int x11AppDpiY(); | ||
8990 | static HANDLE x11AppColormap(); | ||
8991 | static bool x11AppDefaultColormap(); | ||
8992 | static void *x11AppVisual(); | ||
8993 | static bool x11AppDefaultVisual(); | ||
8994 | static void x11SetAppDpiX(int); | ||
8995 | static void x11SetAppDpiY(int); | ||
8996 | |||
8997 | |||
8998 | |||
8999 | |||
9000 | |||
9001 | |||
9002 | |||
9003 | |||
9004 | |||
9005 | enum PDevCmd { | ||
9006 | PdcNOP = 0, | ||
9007 | PdcDrawPoint = 1, | ||
9008 | PdcDrawFirst = PdcDrawPoint, | ||
9009 | PdcMoveTo = 2, | ||
9010 | PdcLineTo = 3, | ||
9011 | PdcDrawLine = 4, | ||
9012 | PdcDrawRect = 5, | ||
9013 | PdcDrawRoundRect = 6, | ||
9014 | PdcDrawEllipse = 7, | ||
9015 | PdcDrawArc = 8, | ||
9016 | PdcDrawPie = 9, | ||
9017 | PdcDrawChord = 10, | ||
9018 | PdcDrawLineSegments = 11, | ||
9019 | PdcDrawPolyline = 12, | ||
9020 | PdcDrawPolygon = 13, | ||
9021 | PdcDrawQuadBezier = 14, | ||
9022 | PdcDrawText = 15, | ||
9023 | PdcDrawTextFormatted = 16, | ||
9024 | PdcDrawPixmap = 17, | ||
9025 | PdcDrawImage = 18, | ||
9026 | PdcDrawText2 = 19, | ||
9027 | PdcDrawText2Formatted = 20, | ||
9028 | PdcDrawLast = PdcDrawText2Formatted, | ||
9029 | |||
9030 | |||
9031 | |||
9032 | PdcBegin = 30, | ||
9033 | PdcEnd = 31, | ||
9034 | PdcSave = 32, | ||
9035 | PdcRestore = 33, | ||
9036 | PdcSetdev = 34, | ||
9037 | PdcSetBkColor = 40, | ||
9038 | PdcSetBkMode = 41, | ||
9039 | PdcSetROP = 42, | ||
9040 | PdcSetBrushOrigin = 43, | ||
9041 | PdcSetFont = 45, | ||
9042 | PdcSetPen = 46, | ||
9043 | PdcSetBrush = 47, | ||
9044 | PdcSetTabStops = 48, | ||
9045 | PdcSetTabArray = 49, | ||
9046 | PdcSetUnit = 50, | ||
9047 | PdcSetVXform = 51, | ||
9048 | PdcSetWindow = 52, | ||
9049 | PdcSetViewport = 53, | ||
9050 | PdcSetWXform = 54, | ||
9051 | PdcSetWMatrix = 55, | ||
9052 | PdcSaveWMatrix = 56, | ||
9053 | PdcRestoreWMatrix = 57, | ||
9054 | PdcSetClip = 60, | ||
9055 | PdcSetClipRegion = 61, | ||
9056 | |||
9057 | PdcReservedStart = 0, | ||
9058 | PdcReservedStop = 199 | ||
9059 | }; | ||
9060 | |||
9061 | protected: | ||
9062 | QPaintDevice( uint devflags ); | ||
9063 | |||
9064 | |||
9065 | |||
9066 | |||
9067 | HANDLE hd; | ||
9068 | void copyX11Data( const QPaintDevice * ); | ||
9069 | virtual void setX11Data( const QPaintDeviceX11Data* ); | ||
9070 | QPaintDeviceX11Data* getX11Data( bool def=FALSE ) const; | ||
9071 | |||
9072 | |||
9073 | |||
9074 | |||
9075 | |||
9076 | |||
9077 | |||
9078 | virtual bool cmd( int, QPainter *, QPDevCmdParam * ); | ||
9079 | virtual int metric( int ) const; | ||
9080 | virtual int fontMet( QFont *, int, const char * = 0, int = 0 ) const; | ||
9081 | virtual int fontInf( QFont *, int ) const; | ||
9082 | |||
9083 | ushort devFlags; | ||
9084 | ushort painters; | ||
9085 | |||
9086 | friend class QPainter; | ||
9087 | friend class QPaintDeviceMetrics; | ||
9088 | friend void bitBlt( QPaintDevice *, int, int, | ||
9089 | const QPaintDevice *, | ||
9090 | int, int, int, int, Qt::RasterOp, bool ); | ||
9091 | |||
9092 | friend void qt_init_internal( int *, char **, Display * ); | ||
9093 | |||
9094 | |||
9095 | private: | ||
9096 | |||
9097 | static Display *x_appdisplay; | ||
9098 | static int x_appscreen; | ||
9099 | static int x_appdepth; | ||
9100 | static int x_appcells; | ||
9101 | static HANDLE x_appcolormap; | ||
9102 | static bool x_appdefcolormap; | ||
9103 | static void *x_appvisual; | ||
9104 | static bool x_appdefvisual; | ||
9105 | |||
9106 | QPaintDeviceX11Data* x11Data; | ||
9107 | |||
9108 | |||
9109 | private: | ||
9110 | |||
9111 | QPaintDevice( const QPaintDevice & ); | ||
9112 | QPaintDevice &operator=( const QPaintDevice & ); | ||
9113 | |||
9114 | }; | ||
9115 | |||
9116 | |||
9117 | |||
9118 | void bitBlt( QPaintDevice *dst, int dx, int dy, | ||
9119 | const QPaintDevice *src, int sx=0, int sy=0, int sw=-1, int sh=-1, | ||
9120 | Qt::RasterOp = Qt::CopyROP, bool ignoreMask=FALSE ); | ||
9121 | |||
9122 | |||
9123 | void bitBlt( QPaintDevice *dst, int dx, int dy, | ||
9124 | const QImage *src, int sx=0, int sy=0, int sw=-1, int sh=-1, | ||
9125 | int conversion_flags=0 ); | ||
9126 | |||
9127 | |||
9128 | |||
9129 | |||
9130 | struct QPaintDeviceX11Data { | ||
9131 | Display*x_display; | ||
9132 | int x_screen; | ||
9133 | int x_depth; | ||
9134 | int x_cells; | ||
9135 | HANDLEx_colormap; | ||
9136 | boolx_defcolormap; | ||
9137 | void*x_visual; | ||
9138 | boolx_defvisual; | ||
9139 | }; | ||
9140 | |||
9141 | |||
9142 | |||
9143 | |||
9144 | |||
9145 | |||
9146 | |||
9147 | inline int QPaintDevice::devType() const | ||
9148 | { return devFlags & QInternal::DeviceTypeMask; } | ||
9149 | |||
9150 | inline bool QPaintDevice::isExtDev() const | ||
9151 | { return (devFlags & QInternal::ExternalDevice) != 0; } | ||
9152 | |||
9153 | inline bool QPaintDevice::paintingActive() const | ||
9154 | { return painters != 0; } | ||
9155 | |||
9156 | |||
9157 | |||
9158 | |||
9159 | inline HANDLE QPaintDevice::handle() const { return hd; } | ||
9160 | |||
9161 | |||
9162 | |||
9163 | inline Display *QPaintDevice::x11Display() const | ||
9164 | { return x11Data ? x11Data->x_display : x_appdisplay; } | ||
9165 | |||
9166 | inline int QPaintDevice::x11Screen() const | ||
9167 | { return x11Data ? x11Data->x_screen : x_appscreen; } | ||
9168 | |||
9169 | inline int QPaintDevice::x11Depth() const | ||
9170 | { return x11Data ? x11Data->x_depth : x_appdepth; } | ||
9171 | |||
9172 | inline int QPaintDevice::x11Cells() const | ||
9173 | { return x11Data ? x11Data->x_cells : x_appcells; } | ||
9174 | |||
9175 | inline HANDLE QPaintDevice::x11Colormap() const | ||
9176 | { return x11Data ? x11Data->x_colormap : x_appcolormap; } | ||
9177 | |||
9178 | inline bool QPaintDevice::x11DefaultColormap() const | ||
9179 | { return x11Data ? x11Data->x_defcolormap : x_appdefcolormap; } | ||
9180 | |||
9181 | inline void *QPaintDevice::x11Visual() const | ||
9182 | { return x11Data ? x11Data->x_visual : x_appvisual; } | ||
9183 | |||
9184 | inline bool QPaintDevice::x11DefaultVisual() const | ||
9185 | { return x11Data ? x11Data->x_defvisual : x_appdefvisual; } | ||
9186 | |||
9187 | inline Display *QPaintDevice::x11AppDisplay() | ||
9188 | { return x_appdisplay; } | ||
9189 | |||
9190 | inline int QPaintDevice::x11AppScreen() | ||
9191 | { return x_appscreen; } | ||
9192 | |||
9193 | inline int QPaintDevice::x11AppDepth() | ||
9194 | { return x_appdepth; } | ||
9195 | |||
9196 | inline int QPaintDevice::x11AppCells() | ||
9197 | { return x_appcells; } | ||
9198 | |||
9199 | inline HANDLE QPaintDevice::x11AppColormap() | ||
9200 | { return x_appcolormap; } | ||
9201 | |||
9202 | inline bool QPaintDevice::x11AppDefaultColormap() | ||
9203 | { return x_appdefcolormap; } | ||
9204 | |||
9205 | inline void *QPaintDevice::x11AppVisual() | ||
9206 | { return x_appvisual; } | ||
9207 | |||
9208 | inline bool QPaintDevice::x11AppDefaultVisual() | ||
9209 | { return x_appdefvisual; } | ||
9210 | |||
9211 | |||
9212 | |||
9213 | |||
9214 | inline void bitBlt( QPaintDevice *dst, const QPoint &dp, | ||
9215 | const QPaintDevice *src, const QRect &sr =QRect(0,0,-1,-1), | ||
9216 | Qt::RasterOp rop=Qt::CopyROP, bool ignoreMask=FALSE ) | ||
9217 | { | ||
9218 | bitBlt( dst, dp.x(), dp.y(), src, sr.x(), sr.y(), sr.width(), sr.height(), | ||
9219 | rop, ignoreMask ); | ||
9220 | } | ||
9221 | |||
9222 | |||
9223 | |||
9224 | |||
9225 | |||
9226 | # 44 "/opt/Qtopia/include/qwidget.h" 2 | ||
9227 | |||
9228 | # 1 "/opt/Qtopia/include/qpalette.h" 1 | ||
9229 | |||
9230 | |||
9231 | |||
9232 | |||
9233 | |||
9234 | |||
9235 | |||
9236 | |||
9237 | |||
9238 | |||
9239 | |||
9240 | |||
9241 | |||
9242 | |||
9243 | |||
9244 | |||
9245 | |||
9246 | |||
9247 | |||
9248 | |||
9249 | |||
9250 | |||
9251 | |||
9252 | |||
9253 | |||
9254 | |||
9255 | |||
9256 | |||
9257 | |||
9258 | |||
9259 | |||
9260 | |||
9261 | |||
9262 | |||
9263 | |||
9264 | |||
9265 | |||
9266 | |||
9267 | |||
9268 | |||
9269 | |||
9270 | |||
9271 | # 1 "/opt/Qtopia/include/qcolor.h" 1 | ||
9272 | |||
9273 | |||
9274 | |||
9275 | |||
9276 | |||
9277 | |||
9278 | |||
9279 | |||
9280 | |||
9281 | |||
9282 | |||
9283 | |||
9284 | |||
9285 | |||
9286 | |||
9287 | |||
9288 | |||
9289 | |||
9290 | |||
9291 | |||
9292 | |||
9293 | |||
9294 | |||
9295 | |||
9296 | |||
9297 | |||
9298 | |||
9299 | |||
9300 | |||
9301 | |||
9302 | |||
9303 | |||
9304 | |||
9305 | |||
9306 | |||
9307 | |||
9308 | |||
9309 | |||
9310 | |||
9311 | |||
9312 | |||
9313 | |||
9314 | |||
9315 | |||
9316 | const QRgb RGB_DIRTY = 0x80000000; | ||
9317 | const QRgb RGB_INVALID = 0x40000000; | ||
9318 | const QRgb RGB_DIRECT = 0x20000000; | ||
9319 | const QRgb RGB_MASK = 0x00ffffff; | ||
9320 | |||
9321 | |||
9322 | inline int qRed( QRgb rgb ) | ||
9323 | { return (int)((rgb >> 16) & 0xff); } | ||
9324 | |||
9325 | inline int qGreen( QRgb rgb ) | ||
9326 | { return (int)((rgb >> 8) & 0xff); } | ||
9327 | |||
9328 | inline int qBlue( QRgb rgb ) | ||
9329 | { return (int)(rgb & 0xff); } | ||
9330 | |||
9331 | inline int qAlpha( QRgb rgb ) | ||
9332 | { return (int)((rgb >> 24) & 0xff); } | ||
9333 | |||
9334 | inline QRgb qRgb( int r, int g, int b ) | ||
9335 | { return (0xff << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff); } | ||
9336 | |||
9337 | inline QRgb qRgba( int r, int g, int b, int a ) | ||
9338 | { return ((a & 0xff) << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff); } | ||
9339 | |||
9340 | inline int qGray( int r, int g, int b ) | ||
9341 | { return (r*11+g*16+b*5)/32; } | ||
9342 | |||
9343 | inline int qGray( QRgb rgb ) | ||
9344 | { return qGray( qRed(rgb), qGreen(rgb), qBlue(rgb) ); } | ||
9345 | |||
9346 | |||
9347 | class QColor | ||
9348 | { | ||
9349 | public: | ||
9350 | enum Spec { Rgb, Hsv }; | ||
9351 | |||
9352 | QColor(); | ||
9353 | QColor( int r, int g, int b ); | ||
9354 | QColor( int x, int y, int z, Spec ); | ||
9355 | QColor( QRgb rgb, uint pixel=0xffffffff); | ||
9356 | QColor( const QString& name ); | ||
9357 | QColor( const char *name ); | ||
9358 | QColor( const QColor & ); | ||
9359 | QColor &operator=( const QColor & ); | ||
9360 | |||
9361 | bool isValid() const; | ||
9362 | bool isDirty() const; | ||
9363 | |||
9364 | QString name() const; | ||
9365 | void setNamedColor( const QString& name ); | ||
9366 | |||
9367 | void rgb( int *r, int *g, int *b ) const; | ||
9368 | QRgb rgb() const; | ||
9369 | void setRgb( int r, int g, int b ); | ||
9370 | void setRgb( QRgb rgb ); | ||
9371 | |||
9372 | int red() const; | ||
9373 | int green() const; | ||
9374 | int blue() const; | ||
9375 | |||
9376 | void hsv( int *h, int *s, int *v ) const; | ||
9377 | void getHsv( int &h, int &s, int &v ) const; | ||
9378 | void setHsv( int h, int s, int v ); | ||
9379 | |||
9380 | QColor light( int f = 150 ) const; | ||
9381 | QColor dark( int f = 200 )const; | ||
9382 | |||
9383 | bool operator==( const QColor &c ) const; | ||
9384 | bool operator!=( const QColor &c ) const; | ||
9385 | |||
9386 | static bool lazyAlloc(); | ||
9387 | static void setLazyAlloc( bool ); | ||
9388 | uint alloc(); | ||
9389 | uint pixel() const; | ||
9390 | |||
9391 | static int maxColors(); | ||
9392 | static int numBitPlanes(); | ||
9393 | |||
9394 | static int enterAllocContext(); | ||
9395 | static void leaveAllocContext(); | ||
9396 | static int currentAllocContext(); | ||
9397 | static void destroyAllocContext( int ); | ||
9398 | |||
9399 | |||
9400 | |||
9401 | |||
9402 | |||
9403 | |||
9404 | static void initialize(); | ||
9405 | static void cleanup(); | ||
9406 | |||
9407 | private: | ||
9408 | void setSystemNamedColor( const QString& name ); | ||
9409 | static void initGlobalColors(); | ||
9410 | static QColor* globalColors(); | ||
9411 | static bool color_init; | ||
9412 | static bool globals_init; | ||
9413 | static bool lazy_alloc; | ||
9414 | |||
9415 | |||
9416 | |||
9417 | uint pix; | ||
9418 | QRgb rgbVal; | ||
9419 | }; | ||
9420 | |||
9421 | |||
9422 | inline QColor::QColor() | ||
9423 | { rgbVal = RGB_INVALID; pix = 0; } | ||
9424 | |||
9425 | inline QColor::QColor( int r, int g, int b ) | ||
9426 | { setRgb( r, g, b ); } | ||
9427 | |||
9428 | inline bool QColor::isValid() const | ||
9429 | { return (rgbVal & RGB_INVALID) == 0; } | ||
9430 | |||
9431 | inline bool QColor::isDirty() const | ||
9432 | { return (rgbVal & RGB_DIRTY) != 0; } | ||
9433 | |||
9434 | inline QRgb QColor::rgb() const | ||
9435 | { return rgbVal | ~RGB_MASK; } | ||
9436 | |||
9437 | inline int QColor::red() const | ||
9438 | { return qRed(rgbVal); } | ||
9439 | |||
9440 | inline int QColor::green() const | ||
9441 | { return qGreen(rgbVal); } | ||
9442 | |||
9443 | inline int QColor::blue() const | ||
9444 | { return qBlue(rgbVal); } | ||
9445 | |||
9446 | inline uint QColor::pixel() const | ||
9447 | { return (rgbVal & RGB_DIRTY) == 0 ? pix : ((QColor*)this)->alloc(); } | ||
9448 | |||
9449 | inline bool QColor::lazyAlloc() | ||
9450 | { return lazy_alloc; } | ||
9451 | |||
9452 | |||
9453 | inline bool QColor::operator==( const QColor &c ) const | ||
9454 | { | ||
9455 | return isValid()==c.isValid() && | ||
9456 | ((((rgbVal | c.rgbVal) & RGB_DIRECT) == 0 && | ||
9457 | (rgbVal & RGB_MASK) == (c.rgbVal & RGB_MASK)) || | ||
9458 | ((rgbVal & c.rgbVal & RGB_DIRECT) != 0 && | ||
9459 | (rgbVal & RGB_MASK) == (c.rgbVal & RGB_MASK) && pix == c.pix)); | ||
9460 | } | ||
9461 | |||
9462 | inline bool QColor::operator!=( const QColor &c ) const | ||
9463 | { | ||
9464 | return !operator==(c); | ||
9465 | } | ||
9466 | |||
9467 | |||
9468 | |||
9469 | |||
9470 | |||
9471 | |||
9472 | |||
9473 | QDataStream &operator<<( QDataStream &, const QColor & ); | ||
9474 | QDataStream &operator>>( QDataStream &, QColor & ); | ||
9475 | |||
9476 | |||
9477 | |||
9478 | # 43 "/opt/Qtopia/include/qpalette.h" 2 | ||
9479 | |||
9480 | |||
9481 | # 1 "/opt/Qtopia/include/qbrush.h" 1 | ||
9482 | |||
9483 | |||
9484 | |||
9485 | |||
9486 | |||
9487 | |||
9488 | |||
9489 | |||
9490 | |||
9491 | |||
9492 | |||
9493 | |||
9494 | |||
9495 | |||
9496 | |||
9497 | |||
9498 | |||
9499 | |||
9500 | |||
9501 | |||
9502 | |||
9503 | |||
9504 | |||
9505 | |||
9506 | |||
9507 | |||
9508 | |||
9509 | |||
9510 | |||
9511 | |||
9512 | |||
9513 | |||
9514 | |||
9515 | |||
9516 | |||
9517 | |||
9518 | |||
9519 | |||
9520 | |||
9521 | |||
9522 | |||
9523 | |||
9524 | |||
9525 | |||
9526 | |||
9527 | |||
9528 | class QBrush: public Qt | ||
9529 | { | ||
9530 | friend class QPainter; | ||
9531 | public: | ||
9532 | QBrush(); | ||
9533 | QBrush( BrushStyle ); | ||
9534 | QBrush( const QColor &, BrushStyle=SolidPattern ); | ||
9535 | QBrush( const QColor &, const QPixmap & ); | ||
9536 | QBrush( const QBrush & ); | ||
9537 | ~QBrush(); | ||
9538 | QBrush &operator=( const QBrush & ); | ||
9539 | |||
9540 | BrushStyle style() const { return data->style; } | ||
9541 | voidsetStyle( BrushStyle ); | ||
9542 | const QColor &color()const { return data->color; } | ||
9543 | voidsetColor( const QColor & ); | ||
9544 | QPixmap *pixmap() const { return data->pixmap; } | ||
9545 | voidsetPixmap( const QPixmap & ); | ||
9546 | |||
9547 | booloperator==( const QBrush &p ) const; | ||
9548 | booloperator!=( const QBrush &b ) const | ||
9549 | { return !(operator==(b)); } | ||
9550 | |||
9551 | private: | ||
9552 | QBrush copy()const; | ||
9553 | voiddetach(); | ||
9554 | voidinit( const QColor &, BrushStyle ); | ||
9555 | struct QBrushData : public QShared { | ||
9556 | BrushStyle style; | ||
9557 | QColor color; | ||
9558 | QPixmap *pixmap; | ||
9559 | } *data; | ||
9560 | }; | ||
9561 | |||
9562 | |||
9563 | |||
9564 | |||
9565 | |||
9566 | |||
9567 | |||
9568 | QDataStream &operator<<( QDataStream &, const QBrush & ); | ||
9569 | QDataStream &operator>>( QDataStream &, QBrush & ); | ||
9570 | |||
9571 | |||
9572 | |||
9573 | # 45 "/opt/Qtopia/include/qpalette.h" 2 | ||
9574 | |||
9575 | |||
9576 | |||
9577 | |||
9578 | class QColorGroupPrivate; | ||
9579 | |||
9580 | |||
9581 | class QColorGroup | ||
9582 | { | ||
9583 | public: | ||
9584 | QColorGroup(); | ||
9585 | QColorGroup( const QColor &foreground, const QColor &button, | ||
9586 | const QColor &light, const QColor &dark, const QColor &mid, | ||
9587 | const QColor &text, const QColor &base ); | ||
9588 | QColorGroup( const QBrush &foreground, const QBrush &button, | ||
9589 | const QBrush &light, const QBrush &dark, const QBrush &mid, | ||
9590 | const QBrush &text, const QBrush &bright_text, | ||
9591 | const QBrush &base, const QBrush &background); | ||
9592 | QColorGroup( const QColorGroup & ); | ||
9593 | |||
9594 | ~QColorGroup(); | ||
9595 | |||
9596 | QColorGroup& operator =(const QColorGroup&); | ||
9597 | |||
9598 | |||
9599 | enum ColorRole { Foreground, Button, Light, Midlight, Dark, Mid, | ||
9600 | Text, BrightText, ButtonText, Base, Background, Shadow, | ||
9601 | Highlight, HighlightedText, | ||
9602 | NColorRoles }; | ||
9603 | |||
9604 | const QColor &color( ColorRole ) const; | ||
9605 | const QBrush &brush( ColorRole ) const; | ||
9606 | void setColor( ColorRole, const QColor & ); | ||
9607 | void setBrush( ColorRole, const QBrush & ); | ||
9608 | |||
9609 | const QColor &foreground() const{ return br[Foreground].color(); } | ||
9610 | const QColor &button() const{ return br[Button].color(); } | ||
9611 | const QColor &light() const{ return br[Light].color(); } | ||
9612 | const QColor &dark() const{ return br[Dark].color(); } | ||
9613 | const QColor &mid() const{ return br[Mid].color(); } | ||
9614 | const QColor &text() const{ return br[Text].color(); } | ||
9615 | const QColor &base() const{ return br[Base].color(); } | ||
9616 | const QColor &background() const{ return br[Background].color(); } | ||
9617 | |||
9618 | const QColor &midlight() const{ return br[Midlight].color(); } | ||
9619 | const QColor &brightText() const{ return br[BrightText].color(); } | ||
9620 | const QColor &buttonText() const{ return br[ButtonText].color(); } | ||
9621 | const QColor &shadow() const{ return br[Shadow].color(); } | ||
9622 | const QColor &highlight() const{ return br[Highlight].color(); } | ||
9623 | const QColor &highlightedText() const{return br[HighlightedText].color(); } | ||
9624 | |||
9625 | booloperator==( const QColorGroup &g ) const; | ||
9626 | booloperator!=( const QColorGroup &g ) const | ||
9627 | { return !(operator==(g)); } | ||
9628 | |||
9629 | private: | ||
9630 | QBrush *br; | ||
9631 | QColorGroupPrivate * d; | ||
9632 | |||
9633 | friend class QPalette; | ||
9634 | }; | ||
9635 | |||
9636 | |||
9637 | class QPalette | ||
9638 | { | ||
9639 | public: | ||
9640 | QPalette(); | ||
9641 | QPalette( const QColor &button ); | ||
9642 | QPalette( const QColor &button, const QColor &background ); | ||
9643 | QPalette( const QColorGroup &active, const QColorGroup &disabled, | ||
9644 | const QColorGroup &inactive ); | ||
9645 | QPalette( const QPalette & ); | ||
9646 | ~QPalette(); | ||
9647 | QPalette &operator=( const QPalette & ); | ||
9648 | |||
9649 | enum ColorGroup { Normal, Disabled, Active, Inactive, NColorGroups }; | ||
9650 | |||
9651 | const QColor &color( ColorGroup, QColorGroup::ColorRole ) const; | ||
9652 | const QBrush &brush( ColorGroup, QColorGroup::ColorRole ) const; | ||
9653 | void setColor( ColorGroup, QColorGroup::ColorRole, const QColor & ); | ||
9654 | void setBrush( ColorGroup, QColorGroup::ColorRole, const QBrush & ); | ||
9655 | |||
9656 | void setColor( QColorGroup::ColorRole, const QColor & ); | ||
9657 | void setBrush( QColorGroup::ColorRole, const QBrush & ); | ||
9658 | |||
9659 | QPalettecopy() const; | ||
9660 | |||
9661 | const QColorGroup &active() const { return data->active; } | ||
9662 | const QColorGroup &disabled() const { return data->disabled; } | ||
9663 | const QColorGroup &inactive() const { return data->inactive; } | ||
9664 | const QColorGroup &normal() const { return data->normal; } | ||
9665 | |||
9666 | voidsetActive( const QColorGroup & ); | ||
9667 | voidsetDisabled( const QColorGroup & ); | ||
9668 | voidsetInactive( const QColorGroup & ); | ||
9669 | voidsetNormal( const QColorGroup & ); | ||
9670 | |||
9671 | booloperator==( const QPalette &p ) const; | ||
9672 | booloperator!=( const QPalette &p ) const | ||
9673 | { return !(operator==(p)); } | ||
9674 | boolisCopyOf( const QPalette & ); | ||
9675 | |||
9676 | int serialNumber() const{ return data->ser_no; } | ||
9677 | |||
9678 | private: | ||
9679 | voiddetach(); | ||
9680 | QBrush &directBrush( ColorGroup, QColorGroup::ColorRole ) const; | ||
9681 | |||
9682 | struct QPalData : public QShared { | ||
9683 | QColorGroup normal; | ||
9684 | QColorGroup disabled; | ||
9685 | QColorGroup active; | ||
9686 | int ser_no; | ||
9687 | QColorGroup inactive; | ||
9688 | } *data; | ||
9689 | static QPalData *defPalData; | ||
9690 | static void cleanupDefPal(); | ||
9691 | }; | ||
9692 | |||
9693 | |||
9694 | |||
9695 | |||
9696 | |||
9697 | |||
9698 | |||
9699 | QDataStream &operator<<( QDataStream &, const QColorGroup & ); | ||
9700 | QDataStream &operator>>( QDataStream &, QColorGroup & ); | ||
9701 | |||
9702 | QDataStream &operator<<( QDataStream &, const QPalette & ); | ||
9703 | QDataStream &operator>>( QDataStream &, QPalette & ); | ||
9704 | |||
9705 | |||
9706 | |||
9707 | |||
9708 | # 45 "/opt/Qtopia/include/qwidget.h" 2 | ||
9709 | |||
9710 | # 1 "/opt/Qtopia/include/qcursor.h" 1 | ||
9711 | |||
9712 | |||
9713 | |||
9714 | |||
9715 | |||
9716 | |||
9717 | |||
9718 | |||
9719 | |||
9720 | |||
9721 | |||
9722 | |||
9723 | |||
9724 | |||
9725 | |||
9726 | |||
9727 | |||
9728 | |||
9729 | |||
9730 | |||
9731 | |||
9732 | |||
9733 | |||
9734 | |||
9735 | |||
9736 | |||
9737 | |||
9738 | |||
9739 | |||
9740 | |||
9741 | |||
9742 | |||
9743 | |||
9744 | |||
9745 | |||
9746 | |||
9747 | |||
9748 | |||
9749 | |||
9750 | |||
9751 | |||
9752 | |||
9753 | |||
9754 | |||
9755 | |||
9756 | |||
9757 | |||
9758 | |||
9759 | |||
9760 | # 62 "/opt/Qtopia/include/qcursor.h" | ||
9761 | |||
9762 | |||
9763 | |||
9764 | |||
9765 | struct QCursorData; | ||
9766 | |||
9767 | |||
9768 | class QCursor | ||
9769 | { | ||
9770 | public: | ||
9771 | QCursor(); | ||
9772 | QCursor( int shape ); | ||
9773 | QCursor( const QBitmap &bitmap, const QBitmap &mask, | ||
9774 | int hotX=-1, int hotY=-1 ); | ||
9775 | QCursor( const QPixmap &pixmap, | ||
9776 | int hotX=-1, int hotY=-1 ); | ||
9777 | QCursor( const QCursor & ); | ||
9778 | ~QCursor(); | ||
9779 | QCursor &operator=( const QCursor & ); | ||
9780 | |||
9781 | int shape() const; | ||
9782 | void setShape( int ); | ||
9783 | |||
9784 | const QBitmap *bitmap() const; | ||
9785 | const QBitmap *mask() const; | ||
9786 | QPoint hotSpot() const; | ||
9787 | |||
9788 | |||
9789 | |||
9790 | |||
9791 | HANDLE handle() const; | ||
9792 | |||
9793 | |||
9794 | |||
9795 | |||
9796 | |||
9797 | |||
9798 | static QPoint pos(); | ||
9799 | static void setPos( int x, int y ); | ||
9800 | static void setPos( const QPoint & ); | ||
9801 | |||
9802 | static void initialize(); | ||
9803 | static void cleanup(); | ||
9804 | |||
9805 | private: | ||
9806 | void setBitmap( const QBitmap &bitmap, const QBitmap &mask, | ||
9807 | int hotX, int hotY ); | ||
9808 | void update() const; | ||
9809 | QCursorData *data; | ||
9810 | QCursor *find_cur(int); | ||
9811 | }; | ||
9812 | |||
9813 | |||
9814 | |||
9815 | |||
9816 | |||
9817 | |||
9818 | |||
9819 | |||
9820 | enum QCursorShape { | ||
9821 | ArrowCursor, UpArrowCursor, CrossCursor, WaitCursor, IbeamCursor, | ||
9822 | SizeVerCursor, SizeHorCursor, SizeBDiagCursor, SizeFDiagCursor, | ||
9823 | SizeAllCursor, BlankCursor, SplitVCursor, SplitHCursor, PointingHandCursor, | ||
9824 | ForbiddenCursor, LastCursor = ForbiddenCursor, BitmapCursor=24 }; | ||
9825 | |||
9826 | |||
9827 | |||
9828 | |||
9829 | |||
9830 | |||
9831 | QDataStream &operator<<( QDataStream &, const QCursor & ); | ||
9832 | QDataStream &operator>>( QDataStream &, QCursor & ); | ||
9833 | |||
9834 | |||
9835 | |||
9836 | |||
9837 | inline void QCursor::setPos( const QPoint &p ) | ||
9838 | { | ||
9839 | setPos( p.x(), p.y() ); | ||
9840 | } | ||
9841 | |||
9842 | |||
9843 | # 46 "/opt/Qtopia/include/qwidget.h" 2 | ||
9844 | |||
9845 | # 1 "/opt/Qtopia/include/qfont.h" 1 | ||
9846 | |||
9847 | |||
9848 | |||
9849 | |||
9850 | |||
9851 | |||
9852 | |||
9853 | |||
9854 | |||
9855 | |||
9856 | |||
9857 | |||
9858 | |||
9859 | |||
9860 | |||
9861 | |||
9862 | |||
9863 | |||
9864 | |||
9865 | |||
9866 | |||
9867 | |||
9868 | |||
9869 | |||
9870 | |||
9871 | |||
9872 | |||
9873 | |||
9874 | |||
9875 | |||
9876 | |||
9877 | |||
9878 | |||
9879 | |||
9880 | |||
9881 | |||
9882 | |||
9883 | |||
9884 | |||
9885 | |||
9886 | |||
9887 | |||
9888 | |||
9889 | |||
9890 | |||
9891 | |||
9892 | class QStringList; | ||
9893 | struct QFontDef; | ||
9894 | struct QFontData; | ||
9895 | class QFontInternal; | ||
9896 | class QRenderedFont; | ||
9897 | |||
9898 | class QFont | ||
9899 | { | ||
9900 | public: | ||
9901 | enum CharSet { ISO_8859_1, Latin1 = ISO_8859_1, AnyCharSet, | ||
9902 | ISO_8859_2, Latin2 = ISO_8859_2, | ||
9903 | ISO_8859_3, Latin3 = ISO_8859_3, | ||
9904 | ISO_8859_4, Latin4 = ISO_8859_4, | ||
9905 | ISO_8859_5, | ||
9906 | ISO_8859_6, | ||
9907 | ISO_8859_7, | ||
9908 | ISO_8859_8, | ||
9909 | ISO_8859_9, Latin5 = ISO_8859_9, | ||
9910 | ISO_8859_10, Latin6 = ISO_8859_10, | ||
9911 | ISO_8859_11, TIS620 = ISO_8859_11, | ||
9912 | ISO_8859_12, | ||
9913 | ISO_8859_13, Latin7 = ISO_8859_13, | ||
9914 | ISO_8859_14, Latin8 = ISO_8859_14, | ||
9915 | ISO_8859_15, Latin9 = ISO_8859_15, | ||
9916 | KOI8R, | ||
9917 | Set_Ja, Set_1 = Set_Ja, | ||
9918 | Set_Ko, | ||
9919 | Set_Th_TH, | ||
9920 | Set_Zh, | ||
9921 | Set_Zh_TW, | ||
9922 | Set_N = Set_Zh_TW, | ||
9923 | Unicode, | ||
9924 | |||
9925 | |||
9926 | |||
9927 | |||
9928 | |||
9929 | |||
9930 | Set_GBK, | ||
9931 | Set_Big5, | ||
9932 | |||
9933 | TSCII, | ||
9934 | KOI8U, | ||
9935 | CP1251, | ||
9936 | PT154, | ||
9937 | |||
9938 | |||
9939 | |||
9940 | |||
9941 | JIS_X_0201 = 0xa0, | ||
9942 | |||
9943 | JIS_X_0208 = 0xc0, Enc16 = JIS_X_0208, | ||
9944 | KSC_5601, | ||
9945 | GB_2312, | ||
9946 | Big5 | ||
9947 | }; | ||
9948 | enum StyleHint { Helvetica, Times, Courier, OldEnglish, System, AnyStyle, | ||
9949 | SansSerif= Helvetica, | ||
9950 | Serif= Times, | ||
9951 | TypeWriter = Courier, | ||
9952 | Decorative = OldEnglish}; | ||
9953 | enum StyleStrategy { PreferDefault = 0x0001, | ||
9954 | PreferBitmap = 0x0002, | ||
9955 | PreferDevice = 0x0004, | ||
9956 | PreferOutline = 0x0008, | ||
9957 | ForceOutline = 0x0010, | ||
9958 | PreferMatch = 0x0020, | ||
9959 | PreferQuality = 0x0040 }; | ||
9960 | enum Weight { Light = 25, Normal = 50, DemiBold = 63, | ||
9961 | Bold = 75, Black= 87 }; | ||
9962 | QFont(); | ||
9963 | QFont( const QString &family, int pointSize = 12, | ||
9964 | int weight = Normal, bool italic = FALSE ); | ||
9965 | QFont( const QString &family, int pointSize, | ||
9966 | int weight, bool italic, CharSet charSet ); | ||
9967 | QFont( const QFont & ); | ||
9968 | ~QFont(); | ||
9969 | QFont &operator=( const QFont & ); | ||
9970 | |||
9971 | QString family()const; | ||
9972 | voidsetFamily( const QString &); | ||
9973 | int pointSize()const; | ||
9974 | float pointSizeFloat()const; | ||
9975 | voidsetPointSize( int ); | ||
9976 | voidsetPointSizeFloat( float ); | ||
9977 | int pixelSize() const; | ||
9978 | voidsetPixelSize( int ); | ||
9979 | voidsetPixelSizeFloat( float ); | ||
9980 | int weight()const; | ||
9981 | voidsetWeight( int ); | ||
9982 | bool bold() const; | ||
9983 | voidsetBold( bool ); | ||
9984 | bool italic()const; | ||
9985 | voidsetItalic( bool ); | ||
9986 | bool underline()const; | ||
9987 | voidsetUnderline( bool ); | ||
9988 | bool strikeOut()const; | ||
9989 | voidsetStrikeOut( bool ); | ||
9990 | bool fixedPitch()const; | ||
9991 | voidsetFixedPitch( bool ); | ||
9992 | StyleHint styleHint()const; | ||
9993 | voidsetStyleHint( StyleHint ); | ||
9994 | StyleStrategy styleStrategy() const; | ||
9995 | voidsetStyleHint( StyleHint, StyleStrategy ); | ||
9996 | CharSet charSet()const; | ||
9997 | voidsetCharSet( CharSet ); | ||
9998 | |||
9999 | static CharSet charSetForLocale(); | ||
10000 | |||
10001 | boolrawMode() const; | ||
10002 | voidsetRawMode( bool ); | ||
10003 | |||
10004 | bool exactMatch()const; | ||
10005 | |||
10006 | booloperator==( const QFont & ) const; | ||
10007 | booloperator!=( const QFont & ) const; | ||
10008 | boolisCopyOf( const QFont & ) const; | ||
10009 | |||
10010 | |||
10011 | |||
10012 | |||
10013 | |||
10014 | |||
10015 | HANDLEhandle() const; | ||
10016 | |||
10017 | |||
10018 | |||
10019 | |||
10020 | voidsetRawName( const QString & ); | ||
10021 | QStringrawName() const; | ||
10022 | |||
10023 | QStringkey() const; | ||
10024 | |||
10025 | static QString encodingName( CharSet ); | ||
10026 | |||
10027 | static QFont defaultFont(); | ||
10028 | static void setDefaultFont( const QFont & ); | ||
10029 | |||
10030 | static QString substitute( const QString &familyName ); | ||
10031 | static void insertSubstitution( const QString&, const QString &); | ||
10032 | static void removeSubstitution( const QString &); | ||
10033 | static QStringList substitutions(); | ||
10034 | |||
10035 | static void initialize(); | ||
10036 | static void locale_init(); | ||
10037 | static void cleanup(); | ||
10038 | static void cacheStatistics(); | ||
10039 | |||
10040 | |||
10041 | |||
10042 | |||
10043 | |||
10044 | protected: | ||
10045 | bool dirty() const; | ||
10046 | |||
10047 | QString defaultFamily() const; | ||
10048 | QString lastResortFamily()const; | ||
10049 | QString lastResortFont()const; | ||
10050 | int deciPointSize() const; | ||
10051 | |||
10052 | private: | ||
10053 | QFont( QFontData * ); | ||
10054 | voidinit(); | ||
10055 | voiddetach(); | ||
10056 | voidinitFontInfo() const; | ||
10057 | voidload() const; | ||
10058 | |||
10059 | |||
10060 | |||
10061 | |||
10062 | |||
10063 | |||
10064 | |||
10065 | |||
10066 | friend class QFont_Private; | ||
10067 | friend class QFontInternal; | ||
10068 | friend class QFontMetrics; | ||
10069 | friend class QFontInfo; | ||
10070 | friend class QPainter; | ||
10071 | |||
10072 | |||
10073 | |||
10074 | |||
10075 | |||
10076 | friend QDataStream &operator<<( QDataStream &, const QFont & ); | ||
10077 | friend QDataStream &operator>>( QDataStream &, QFont & ); | ||
10078 | |||
10079 | QFontData *d; | ||
10080 | static CharSet defaultCharSet; | ||
10081 | }; | ||
10082 | |||
10083 | inline bool QFont::bold() const | ||
10084 | { return weight() > Normal; } | ||
10085 | |||
10086 | inline void QFont::setBold( bool enable ) | ||
10087 | { setWeight( enable ? Bold : Normal ); } | ||
10088 | |||
10089 | |||
10090 | |||
10091 | |||
10092 | |||
10093 | |||
10094 | |||
10095 | QDataStream &operator<<( QDataStream &, const QFont & ); | ||
10096 | QDataStream &operator>>( QDataStream &, QFont & ); | ||
10097 | |||
10098 | |||
10099 | |||
10100 | # 47 "/opt/Qtopia/include/qwidget.h" 2 | ||
10101 | |||
10102 | # 1 "/opt/Qtopia/include/qfontmetrics.h" 1 | ||
10103 | |||
10104 | |||
10105 | |||
10106 | |||
10107 | |||
10108 | |||
10109 | |||
10110 | |||
10111 | |||
10112 | |||
10113 | |||
10114 | |||
10115 | |||
10116 | |||
10117 | |||
10118 | |||
10119 | |||
10120 | |||
10121 | |||
10122 | |||
10123 | |||
10124 | |||
10125 | |||
10126 | |||
10127 | |||
10128 | |||
10129 | |||
10130 | |||
10131 | |||
10132 | |||
10133 | |||
10134 | |||
10135 | |||
10136 | |||
10137 | |||
10138 | |||
10139 | |||
10140 | |||
10141 | |||
10142 | |||
10143 | |||
10144 | |||
10145 | |||
10146 | |||
10147 | |||
10148 | class QTextCodec; | ||
10149 | |||
10150 | |||
10151 | class QFontMetrics | ||
10152 | { | ||
10153 | public: | ||
10154 | QFontMetrics( const QFont & ); | ||
10155 | QFontMetrics( const QFontMetrics & ); | ||
10156 | ~QFontMetrics(); | ||
10157 | |||
10158 | QFontMetrics &operator=( const QFontMetrics & ); | ||
10159 | |||
10160 | int ascent()const; | ||
10161 | int descent()const; | ||
10162 | int height()const; | ||
10163 | int leading()const; | ||
10164 | int lineSpacing()const; | ||
10165 | int minLeftBearing() const; | ||
10166 | int minRightBearing() const; | ||
10167 | int maxWidth()const; | ||
10168 | |||
10169 | bool inFont(QChar)const; | ||
10170 | |||
10171 | int leftBearing(QChar) const; | ||
10172 | int rightBearing(QChar) const; | ||
10173 | int width( const QString &, int len = -1 ) const; | ||
10174 | int width( QChar ) const; | ||
10175 | int width( char c ) const { return width( (QChar) c ); } | ||
10176 | QRectboundingRect( const QString &, int len = -1 ) const; | ||
10177 | QRectboundingRect( QChar ) const; | ||
10178 | QRectboundingRect( int x, int y, int w, int h, int flags, | ||
10179 | const QString& str, int len=-1, int tabstops=0, | ||
10180 | int *tabarray=0, char **intern=0 ) const; | ||
10181 | QSizesize( int flags, | ||
10182 | const QString& str, int len=-1, int tabstops=0, | ||
10183 | int *tabarray=0, char **intern=0 ) const; | ||
10184 | |||
10185 | int underlinePos()const; | ||
10186 | int strikeOutPos()const; | ||
10187 | int lineWidth()const; | ||
10188 | |||
10189 | private: | ||
10190 | QFontMetrics( const QPainter * ); | ||
10191 | static void reset( const QPainter * ); | ||
10192 | const QFontDef *spec() const; | ||
10193 | |||
10194 | |||
10195 | |||
10196 | |||
10197 | |||
10198 | void *fontStruct() const; | ||
10199 | void *fontSet() const; | ||
10200 | const QTextCodec *mapper() const; | ||
10201 | int printerAdjusted(int) const; | ||
10202 | |||
10203 | |||
10204 | |||
10205 | |||
10206 | friend class QWidget; | ||
10207 | friend class QPainter; | ||
10208 | |||
10209 | QFontInternal *fin; | ||
10210 | QPainter *painter; | ||
10211 | int flags; | ||
10212 | |||
10213 | bool underlineFlag() const { return (flags & 0x1) != 0; } | ||
10214 | bool strikeOutFlag() const { return (flags & 0x2) != 0; } | ||
10215 | void setUnderlineFlag() { flags |= 0x1; } | ||
10216 | void setStrikeOutFlag() { flags |= 0x2; } | ||
10217 | }; | ||
10218 | |||
10219 | |||
10220 | |||
10221 | # 48 "/opt/Qtopia/include/qwidget.h" 2 | ||
10222 | |||
10223 | # 1 "/opt/Qtopia/include/qfontinfo.h" 1 | ||
10224 | |||
10225 | |||
10226 | |||
10227 | |||
10228 | |||
10229 | |||
10230 | |||
10231 | |||
10232 | |||
10233 | |||
10234 | |||
10235 | |||
10236 | |||
10237 | |||
10238 | |||
10239 | |||
10240 | |||
10241 | |||
10242 | |||
10243 | |||
10244 | |||
10245 | |||
10246 | |||
10247 | |||
10248 | |||
10249 | |||
10250 | |||
10251 | |||
10252 | |||
10253 | |||
10254 | |||
10255 | |||
10256 | |||
10257 | |||
10258 | |||
10259 | |||
10260 | |||
10261 | |||
10262 | |||
10263 | |||
10264 | |||
10265 | |||
10266 | |||
10267 | |||
10268 | |||
10269 | class QFontInfo | ||
10270 | { | ||
10271 | public: | ||
10272 | QFontInfo( const QFont & ); | ||
10273 | QFontInfo( const QFontInfo & ); | ||
10274 | ~QFontInfo(); | ||
10275 | |||
10276 | QFontInfo &operator=( const QFontInfo & ); | ||
10277 | |||
10278 | QString family()const; | ||
10279 | int pointSize()const; | ||
10280 | bool italic()const; | ||
10281 | int weight()const; | ||
10282 | bool bold() const; | ||
10283 | bool underline()const; | ||
10284 | bool strikeOut()const; | ||
10285 | bool fixedPitch()const; | ||
10286 | QFont::StyleHint styleHint()const; | ||
10287 | QFont::CharSet charSet()const; | ||
10288 | bool rawMode()const; | ||
10289 | |||
10290 | bool exactMatch()const; | ||
10291 | |||
10292 | |||
10293 | const QFont &font() const; | ||
10294 | |||
10295 | |||
10296 | private: | ||
10297 | QFontInfo( const QPainter * ); | ||
10298 | static void reset( const QPainter * ); | ||
10299 | const QFontDef *spec() const; | ||
10300 | |||
10301 | QFontInternal *fin; | ||
10302 | QPainter *painter; | ||
10303 | int flags; | ||
10304 | |||
10305 | bool underlineFlag() const { return (flags & 0x1) != 0; } | ||
10306 | bool strikeOutFlag() const { return (flags & 0x2) != 0; } | ||
10307 | bool exactMatchFlag() const { return (flags & 0x4) != 0; } | ||
10308 | void setUnderlineFlag() { flags |= 0x1; } | ||
10309 | void setStrikeOutFlag() { flags |= 0x2; } | ||
10310 | void setExactMatchFlag() { flags |= 0x4; } | ||
10311 | |||
10312 | friend class QWidget; | ||
10313 | friend class QPainter; | ||
10314 | }; | ||
10315 | |||
10316 | |||
10317 | inline bool QFontInfo::bold() const | ||
10318 | { return weight() > QFont::Normal; } | ||
10319 | |||
10320 | |||
10321 | |||
10322 | # 49 "/opt/Qtopia/include/qwidget.h" 2 | ||
10323 | |||
10324 | # 1 "/opt/Qtopia/include/qstyle.h" 1 | ||
10325 | |||
10326 | |||
10327 | |||
10328 | |||
10329 | |||
10330 | |||
10331 | |||
10332 | |||
10333 | |||
10334 | |||
10335 | |||
10336 | |||
10337 | |||
10338 | |||
10339 | |||
10340 | |||
10341 | |||
10342 | |||
10343 | |||
10344 | |||
10345 | |||
10346 | |||
10347 | |||
10348 | |||
10349 | |||
10350 | |||
10351 | |||
10352 | |||
10353 | |||
10354 | |||
10355 | |||
10356 | |||
10357 | |||
10358 | |||
10359 | |||
10360 | |||
10361 | |||
10362 | |||
10363 | |||
10364 | |||
10365 | |||
10366 | |||
10367 | |||
10368 | |||
10369 | |||
10370 | class QButton; | ||
10371 | class QPushButton; | ||
10372 | class QScrollBar; | ||
10373 | class QTabBar; | ||
10374 | class QTab; | ||
10375 | class QPopupMenu; | ||
10376 | class QMenuItem; | ||
10377 | class QToolButton; | ||
10378 | |||
10379 | class QStyle: public QObject | ||
10380 | { | ||
10381 | public: QMetaObject *metaObject() const { return staticMetaObject(); } const char *className() const; static QMetaObject* staticMetaObject(); static QString tr(const char*); static QString tr(const char*, const char*); protected: void initMetaObject(); private:static QMetaObject *metaObj; | ||
10382 | GUIStyle gs; | ||
10383 | |||
10384 | private: | ||
10385 | QStyle(GUIStyle); | ||
10386 | QStyle(); | ||
10387 | friend class QCommonStyle; | ||
10388 | |||
10389 | public: | ||
10390 | virtual ~QStyle(); | ||
10391 | |||
10392 | |||
10393 | operator GUIStyle() const { return gs; } | ||
10394 | int operator==(GUIStyle s) const { return gs==s; } | ||
10395 | int operator!=(GUIStyle s) const { return gs!=s; } | ||
10396 | |||
10397 | |||
10398 | GUIStyle guiStyle() const { return gs; } | ||
10399 | |||
10400 | |||
10401 | |||
10402 | virtual void polish( QWidget* ); | ||
10403 | virtual void unPolish( QWidget* ); | ||
10404 | |||
10405 | virtual void polish( QApplication*); | ||
10406 | virtual void unPolish( QApplication*); | ||
10407 | |||
10408 | virtual void polish( QPalette&); | ||
10409 | |||
10410 | virtual QRect itemRect( QPainter *p, int x, int y, int w, int h, | ||
10411 | int flags, bool enabled, | ||
10412 | const QPixmap *pixmap, | ||
10413 | const QString& text, int len=-1 ); | ||
10414 | |||
10415 | virtual void drawItem( QPainter *p, int x, int y, int w, int h, | ||
10416 | int flags, const QColorGroup &g, bool enabled, | ||
10417 | const QPixmap *pixmap, const QString& text, | ||
10418 | int len=-1, const QColor* penColor = 0 ); | ||
10419 | |||
10420 | |||
10421 | virtual void drawSeparator( QPainter *p, int x1, int y1, int x2, int y2, | ||
10422 | const QColorGroup &g, bool sunken = TRUE, | ||
10423 | int lineWidth = 1, int midLineWidth = 0 ); | ||
10424 | |||
10425 | virtual void drawRect( QPainter *p, int x, int y, int w, int h, | ||
10426 | const QColor &, int lineWidth = 1, | ||
10427 | const QBrush *fill = 0 ); | ||
10428 | |||
10429 | virtual void drawRectStrong( QPainter *p, int x, int y, int w, int h, | ||
10430 | const QColorGroup &, bool sunken=FALSE, | ||
10431 | int lineWidth = 1, int midLineWidth = 0, | ||
10432 | const QBrush *fill = 0 ); | ||
10433 | |||
10434 | virtual void drawButton( QPainter *p, int x, int y, int w, int h, | ||
10435 | const QColorGroup &g, bool sunken = FALSE, | ||
10436 | const QBrush *fill = 0 ) = 0; | ||
10437 | |||
10438 | virtual QRect buttonRect( int x, int y, int w, int h); | ||
10439 | |||
10440 | virtual void drawButtonMask( QPainter *p, int x, int y, int w, int h); | ||
10441 | |||
10442 | virtual void drawBevelButton( QPainter *p, int x, int y, int w, int h, | ||
10443 | const QColorGroup &g, bool sunken = FALSE, | ||
10444 | const QBrush *fill = 0 ) = 0; | ||
10445 | |||
10446 | QRect bevelButtonRect( int x, int y, int w, int h); | ||
10447 | |||
10448 | virtual void drawToolButton( QPainter *p, int x, int y, int w, int h, | ||
10449 | const QColorGroup &g, bool sunken = FALSE, | ||
10450 | const QBrush *fill = 0 ); | ||
10451 | void drawToolButton( QToolButton* btn, QPainter *p); | ||
10452 | |||
10453 | QRect toolButtonRect( int x, int y, int w, int h); | ||
10454 | |||
10455 | virtual void drawPanel( QPainter *p, int x, int y, int w, int h, | ||
10456 | const QColorGroup &, bool sunken=FALSE, | ||
10457 | int lineWidth = 1, const QBrush *fill = 0 ); | ||
10458 | |||
10459 | virtual void drawPopupPanel( QPainter *p, int x, int y, int w, int h, | ||
10460 | const QColorGroup &, int lineWidth = 2, | ||
10461 | const QBrush *fill = 0 ); | ||
10462 | |||
10463 | virtual void drawArrow( QPainter *p, Qt::ArrowType type, bool down, | ||
10464 | int x, int y, int w, int h, | ||
10465 | const QColorGroup &g, bool enabled, const QBrush *fill = 0 ) = 0; | ||
10466 | |||
10467 | |||
10468 | virtual QSize exclusiveIndicatorSize() const = 0; | ||
10469 | virtual void drawExclusiveIndicator( QPainter* p, int x, int y, int w, int h, | ||
10470 | const QColorGroup &g, bool on, bool down = FALSE, bool enabled = TRUE ) = 0; | ||
10471 | virtual void drawExclusiveIndicatorMask( QPainter *p, int x, int y, int w, int h, bool on); | ||
10472 | |||
10473 | |||
10474 | virtual QSize indicatorSize() const = 0; | ||
10475 | virtual void drawIndicator( QPainter* p, int x, int y, int w, int h, const QColorGroup &g, | ||
10476 | int state, bool down = FALSE, bool enabled = TRUE ) = 0; | ||
10477 | virtual void drawIndicatorMask( QPainter *p, int x, int y, int w, int h, int state); | ||
10478 | |||
10479 | |||
10480 | |||
10481 | virtual void drawFocusRect( QPainter*, const QRect &, | ||
10482 | const QColorGroup &, const QColor* bg = 0, | ||
10483 | bool = FALSE ) = 0; | ||
10484 | |||
10485 | |||
10486 | |||
10487 | |||
10488 | |||
10489 | virtual void drawComboButton( QPainter *p, int x, int y, int w, int h, | ||
10490 | const QColorGroup &g, bool sunken = FALSE, | ||
10491 | bool editable = FALSE, | ||
10492 | bool enabled = TRUE, | ||
10493 | const QBrush *fill = 0 ) = 0; | ||
10494 | virtual QRect comboButtonRect( int x, int y, | ||
10495 | int w, int h) = 0; | ||
10496 | virtual QRect comboButtonFocusRect( int x, int y, | ||
10497 | int w, int h) = 0; | ||
10498 | |||
10499 | virtual void drawComboButtonMask( QPainter *p, int x, int y, int w, int h) = 0; | ||
10500 | |||
10501 | |||
10502 | virtual void drawPushButton( QPushButton* btn, QPainter *p) = 0; | ||
10503 | |||
10504 | virtual void drawPushButtonLabel( QPushButton* btn, QPainter *p) = 0; | ||
10505 | QRect pushButtonContentsRect( QPushButton* btn ); | ||
10506 | int menuButtonIndicatorWidth( int h ); | ||
10507 | virtual void getButtonShift( int &x, int &y) = 0; | ||
10508 | |||
10509 | |||
10510 | virtual int defaultFrameWidth() const = 0; | ||
10511 | |||
10512 | |||
10513 | virtual void tabbarMetrics( const QTabBar*, | ||
10514 | int&, int&, int& ) = 0; | ||
10515 | virtual void drawTab( QPainter*, const QTabBar*, QTab*, bool selected ) = 0; | ||
10516 | virtual void drawTabMask( QPainter*, const QTabBar*, QTab*, bool selected ) = 0; | ||
10517 | |||
10518 | |||
10519 | enum ScrollControl { AddLine = 0x1 , SubLine = 0x2 , AddPage = 0x4, | ||
10520 | SubPage = 0x8 , First = 0x10, Last = 0x20, | ||
10521 | Slider = 0x40, NoScroll = 0x80 }; | ||
10522 | |||
10523 | virtual void scrollBarMetrics( const QScrollBar*, | ||
10524 | int&, int&, int&, int&) = 0; | ||
10525 | virtual void drawScrollBarControls( QPainter*, const QScrollBar*, | ||
10526 | int sliderStart, uint controls, | ||
10527 | uint activeControl ) = 0; | ||
10528 | virtual ScrollControl scrollBarPointOver( const QScrollBar*, | ||
10529 | int sliderStart, const QPoint& ) = 0; | ||
10530 | |||
10531 | |||
10532 | virtual int sliderLength() const = 0; | ||
10533 | virtual void drawSlider( QPainter *p, | ||
10534 | int x, int y, int w, int h, | ||
10535 | const QColorGroup &g, | ||
10536 | Orientation, bool tickAbove, bool tickBelow) = 0; | ||
10537 | |||
10538 | virtual void drawSliderMask( QPainter *p, | ||
10539 | int x, int y, int w, int h, | ||
10540 | Orientation, bool tickAbove, bool tickBelow) = 0; | ||
10541 | virtual void drawSliderGroove( QPainter *p, | ||
10542 | int x, int y, int w, int h, | ||
10543 | const QColorGroup& g, QCOORD c, | ||
10544 | Orientation ) = 0; | ||
10545 | virtual void drawSliderGrooveMask( QPainter *p, | ||
10546 | int x, int y, int w, int h, | ||
10547 | QCOORD c, | ||
10548 | Orientation ) = 0; | ||
10549 | virtual int maximumSliderDragDistance() const = 0; | ||
10550 | |||
10551 | virtual int splitterWidth() const = 0; | ||
10552 | virtual void drawSplitter( QPainter *p, | ||
10553 | int x, int y, int w, int h, | ||
10554 | const QColorGroup &g, | ||
10555 | Orientation) = 0; | ||
10556 | |||
10557 | virtual void drawCheckMark( QPainter *p, int x, int y, int w, int h, | ||
10558 | const QColorGroup &g, | ||
10559 | bool act, bool dis ) = 0; | ||
10560 | virtual void polishPopupMenu( QPopupMenu* ) = 0; | ||
10561 | |||
10562 | virtual int extraPopupMenuItemWidth( bool checkable, int maxpmw, | ||
10563 | QMenuItem* mi, | ||
10564 | const QFontMetrics& fm ) = 0; | ||
10565 | virtual int popupSubmenuIndicatorWidth( | ||
10566 | const QFontMetrics& fm ) = 0; | ||
10567 | virtual int popupMenuItemHeight( bool checkable, | ||
10568 | QMenuItem* mi, | ||
10569 | const QFontMetrics& fm ) = 0; | ||
10570 | virtual void drawPopupMenuItem( QPainter* p, bool checkable, | ||
10571 | int maxpmw, int tab, QMenuItem* mi, | ||
10572 | const QPalette& pal, | ||
10573 | bool act, bool enabled, | ||
10574 | int x, int y, int w, int h) = 0; | ||
10575 | void drawMenuBarItem( QPainter* p, int x, int y, int w, int h, | ||
10576 | QMenuItem* mi, QColorGroup& g, | ||
10577 | bool enabled, bool active ); | ||
10578 | |||
10579 | |||
10580 | QSize scrollBarExtent(); | ||
10581 | int buttonDefaultIndicatorWidth() const; | ||
10582 | int buttonMargin() const; | ||
10583 | int toolBarHandleExtent() const; | ||
10584 | int toolBarHandleExtend() const; | ||
10585 | int sliderThickness() const ; | ||
10586 | void drawToolBarHandle( QPainter *p, const QRect &r, | ||
10587 | Qt::Orientation orientation, | ||
10588 | bool highlight, const QColorGroup &cg, | ||
10589 | bool drawBorder = FALSE ); | ||
10590 | |||
10591 | protected: | ||
10592 | void setScrollBarExtent( int w, int h=-1 ); | ||
10593 | void setButtonDefaultIndicatorWidth( int w ); | ||
10594 | void setButtonMargin( int w ); | ||
10595 | void setSliderThickness(int t); | ||
10596 | |||
10597 | |||
10598 | private: | ||
10599 | |||
10600 | QStyle( const QStyle & ); | ||
10601 | QStyle& operator=( const QStyle & ); | ||
10602 | |||
10603 | }; | ||
10604 | |||
10605 | |||
10606 | |||
10607 | # 50 "/opt/Qtopia/include/qwidget.h" 2 | ||
10608 | |||
10609 | # 1 "/opt/Qtopia/include/qsizepolicy.h" 1 | ||
10610 | |||
10611 | |||
10612 | |||
10613 | |||
10614 | |||
10615 | |||
10616 | |||
10617 | |||
10618 | |||
10619 | |||
10620 | |||
10621 | |||
10622 | |||
10623 | |||
10624 | |||
10625 | |||
10626 | |||
10627 | |||
10628 | |||
10629 | |||
10630 | |||
10631 | |||
10632 | |||
10633 | |||
10634 | |||
10635 | |||
10636 | |||
10637 | |||
10638 | |||
10639 | |||
10640 | |||
10641 | |||
10642 | |||
10643 | |||
10644 | |||
10645 | |||
10646 | |||
10647 | |||
10648 | |||
10649 | |||
10650 | |||
10651 | |||
10652 | |||
10653 | |||
10654 | class QSizePolicy | ||
10655 | { | ||
10656 | private: | ||
10657 | enum { HSize = 6, HMask = 0x3f, VMask = HMask << HSize, | ||
10658 | MayGrow = 1, ExpMask = 2, MayShrink = 4 }; | ||
10659 | public: | ||
10660 | enum SizeType { Fixed = 0, | ||
10661 | Minimum = MayGrow, | ||
10662 | Maximum = MayShrink, | ||
10663 | Preferred = MayGrow|MayShrink , | ||
10664 | MinimumExpanding = Minimum|ExpMask, | ||
10665 | Expanding = MinimumExpanding|MayShrink }; | ||
10666 | |||
10667 | enum ExpandData { NoDirection = 0, | ||
10668 | Horizontal = 1, | ||
10669 | Vertical = 2, | ||
10670 | BothDirections = Horizontal | Vertical }; | ||
10671 | |||
10672 | QSizePolicy() { data = 0; } | ||
10673 | |||
10674 | QSizePolicy( SizeType hor, SizeType ver, bool hfw = FALSE ); | ||
10675 | |||
10676 | SizeType horData() const { return (SizeType)( data & HMask ); } | ||
10677 | SizeType verData() const { return (SizeType)(( data & VMask ) >> HSize); } | ||
10678 | |||
10679 | bool mayShrinkHorizontally() const { return horData() & MayShrink; } | ||
10680 | bool mayShrinkVertically() const { return verData() & MayShrink; } | ||
10681 | bool mayGrowHorizontally() const { return horData() & MayGrow; } | ||
10682 | bool mayGrowVertically() const { return verData() & MayGrow; } | ||
10683 | |||
10684 | ExpandData expanding() const | ||
10685 | { | ||
10686 | return (ExpandData)( (int)(verData()&ExpMask ? Vertical : 0)+ | ||
10687 | (int)(horData()&ExpMask ? Horizontal : 0) ); | ||
10688 | } | ||
10689 | |||
10690 | void setHorData( SizeType d ) { data = (data & ~HMask) | d; } | ||
10691 | void setVerData( SizeType d ) { data = (data & ~(HMask<<HSize)) | | ||
10692 | (d<<HSize); } | ||
10693 | |||
10694 | void setHeightForWidth( bool b ) { data = b ? ( data | ( 1 << 2*HSize ) ) | ||
10695 | : ( data & ~( 1 << 2*HSize ) ); } | ||
10696 | bool hasHeightForWidth() const { return data & ( 1 << 2*HSize ); } | ||
10697 | |||
10698 | bool operator==( const QSizePolicy& s ) const { return data == s.data; } | ||
10699 | bool operator!=( const QSizePolicy& s ) const { return data != s.data; } | ||
10700 | |||
10701 | private: | ||
10702 | QSizePolicy( int i ): data( i ) {} | ||
10703 | |||
10704 | Q_UINT16 data; | ||
10705 | }; | ||
10706 | |||
10707 | inline QSizePolicy::QSizePolicy( SizeType hor, SizeType ver, bool hfw ) | ||
10708 | : data( hor | (ver<<HSize) | (hfw ? (1<<2*HSize) : 0) ) {} | ||
10709 | |||
10710 | |||
10711 | # 51 "/opt/Qtopia/include/qwidget.h" 2 | ||
10712 | |||
10713 | |||
10714 | |||
10715 | class QLayout; | ||
10716 | struct QWExtra; | ||
10717 | struct QTLWExtra; | ||
10718 | class QFocusData; | ||
10719 | class QStyle; | ||
10720 | class QWSRegionManager; | ||
10721 | |||
10722 | class QWidget : public QObject, public QPaintDevice | ||
10723 | { | ||
10724 | public: QMetaObject *metaObject() const { return staticMetaObject(); } const char *className() const; static QMetaObject* staticMetaObject(); static QString tr(const char*); static QString tr(const char*, const char*); protected: void initMetaObject(); private:static QMetaObject *metaObj; | ||
10725 | |||
10726 | |||
10727 | |||
10728 | |||
10729 | |||
10730 | |||
10731 | |||
10732 | |||
10733 | |||
10734 | |||
10735 | |||
10736 | |||
10737 | |||
10738 | |||
10739 | |||
10740 | |||
10741 | |||
10742 | |||
10743 | |||
10744 | |||
10745 | |||
10746 | |||
10747 | |||
10748 | |||
10749 | |||
10750 | |||
10751 | |||
10752 | |||
10753 | |||
10754 | |||
10755 | |||
10756 | |||
10757 | |||
10758 | |||
10759 | |||
10760 | |||
10761 | |||
10762 | |||
10763 | |||
10764 | |||
10765 | |||
10766 | |||
10767 | |||
10768 | |||
10769 | |||
10770 | |||
10771 | |||
10772 | |||
10773 | |||
10774 | |||
10775 | |||
10776 | |||
10777 | |||
10778 | |||
10779 | |||
10780 | |||
10781 | |||
10782 | |||
10783 | |||
10784 | |||
10785 | |||
10786 | public: | ||
10787 | QWidget( QWidget *parent=0, const char *name=0, WFlags f=0 ); | ||
10788 | ~QWidget(); | ||
10789 | |||
10790 | WId winId() const; | ||
10791 | void setName( const char *name ); | ||
10792 | |||
10793 | |||
10794 | |||
10795 | QStyle &style() const; | ||
10796 | void setStyle( QStyle * ); | ||
10797 | |||
10798 | |||
10799 | |||
10800 | bool isTopLevel()const; | ||
10801 | bool isModal()const; | ||
10802 | bool isPopup()const; | ||
10803 | bool isDesktop()const; | ||
10804 | |||
10805 | bool isEnabled()const; | ||
10806 | bool isEnabledTo(QWidget*) const; | ||
10807 | bool isEnabledToTLW() const; | ||
10808 | |||
10809 | public : | ||
10810 | virtual void setEnabled( bool ); | ||
10811 | void setDisabled( bool ); | ||
10812 | |||
10813 | |||
10814 | |||
10815 | public: | ||
10816 | QRect frameGeometry() const; | ||
10817 | const QRect &geometry()const; | ||
10818 | int x() const; | ||
10819 | int y() const; | ||
10820 | QPoint pos() const; | ||
10821 | QSize frameSize() const; | ||
10822 | QSize size() const; | ||
10823 | int width()const; | ||
10824 | int height()const; | ||
10825 | QRect rect() const; | ||
10826 | QRect childrenRect() const; | ||
10827 | QRegion childrenRegion() const; | ||
10828 | |||
10829 | QSize minimumSize() const; | ||
10830 | QSize maximumSize() const; | ||
10831 | int minimumWidth() const; | ||
10832 | int minimumHeight() const; | ||
10833 | int maximumWidth() const; | ||
10834 | int maximumHeight() const; | ||
10835 | void setMinimumSize( const QSize & ); | ||
10836 | virtual void setMinimumSize( int minw, int minh ); | ||
10837 | void setMaximumSize( const QSize & ); | ||
10838 | virtual void setMaximumSize( int maxw, int maxh ); | ||
10839 | void setMinimumWidth( int minw ); | ||
10840 | void setMinimumHeight( int minh ); | ||
10841 | void setMaximumWidth( int maxw ); | ||
10842 | void setMaximumHeight( int maxh ); | ||
10843 | |||
10844 | QSize sizeIncrement() const; | ||
10845 | void setSizeIncrement( const QSize & ); | ||
10846 | virtual void setSizeIncrement( int w, int h ); | ||
10847 | QSize baseSize() const; | ||
10848 | void setBaseSize( const QSize & ); | ||
10849 | void setBaseSize( int basew, int baseh ); | ||
10850 | |||
10851 | voidsetFixedSize( const QSize & ); | ||
10852 | voidsetFixedSize( int w, int h ); | ||
10853 | voidsetFixedWidth( int w ); | ||
10854 | voidsetFixedHeight( int h ); | ||
10855 | |||
10856 | |||
10857 | |||
10858 | QPoint mapToGlobal( const QPoint & ) const; | ||
10859 | QPoint mapFromGlobal( const QPoint & ) const; | ||
10860 | QPoint mapToParent( const QPoint & ) const; | ||
10861 | QPoint mapFromParent( const QPoint & ) const; | ||
10862 | QPoint mapTo( QWidget *, const QPoint & ) const; | ||
10863 | QPoint mapFrom( QWidget *, const QPoint & ) const; | ||
10864 | |||
10865 | QWidget*topLevelWidget() const; | ||
10866 | |||
10867 | |||
10868 | |||
10869 | enum BackgroundMode { FixedColor, FixedPixmap, NoBackground, | ||
10870 | PaletteForeground, PaletteButton, PaletteLight, | ||
10871 | PaletteMidlight, PaletteDark, PaletteMid, | ||
10872 | PaletteText, PaletteBrightText, PaletteBase, | ||
10873 | PaletteBackground, PaletteShadow, PaletteHighlight, | ||
10874 | PaletteHighlightedText, PaletteButtonText, | ||
10875 | X11ParentRelative }; | ||
10876 | |||
10877 | BackgroundModebackgroundMode() const; | ||
10878 | virtual voidsetBackgroundMode( BackgroundMode ); | ||
10879 | |||
10880 | const QColor &backgroundColor() const; | ||
10881 | const QColor &foregroundColor() const; | ||
10882 | virtual voidsetBackgroundColor( const QColor & ); | ||
10883 | |||
10884 | const QPixmap *backgroundPixmap() const; | ||
10885 | virtual voidsetBackgroundPixmap( const QPixmap & ); | ||
10886 | |||
10887 | |||
10888 | const QColorGroup & colorGroup() const; | ||
10889 | const QPalette &palette() const; | ||
10890 | bool ownPalette() const; | ||
10891 | virtual voidsetPalette( const QPalette & ); | ||
10892 | void unsetPalette(); | ||
10893 | |||
10894 | QFont font() const; | ||
10895 | bool ownFont() const; | ||
10896 | virtual voidsetFont( const QFont & ); | ||
10897 | void unsetFont(); | ||
10898 | QFontMetricsfontMetrics() const; | ||
10899 | QFontInfo fontInfo() const; | ||
10900 | |||
10901 | enum PropagationMode { NoChildren, AllChildren, | ||
10902 | SameFont, SamePalette = SameFont }; | ||
10903 | |||
10904 | PropagationModefontPropagation() const; | ||
10905 | virtual voidsetFontPropagation( PropagationMode ); | ||
10906 | |||
10907 | PropagationModepalettePropagation() const; | ||
10908 | virtual voidsetPalettePropagation( PropagationMode ); | ||
10909 | |||
10910 | const QCursor &cursor() const; | ||
10911 | bool ownCursor() const; | ||
10912 | virtual voidsetCursor( const QCursor & ); | ||
10913 | virtual voidunsetCursor(); | ||
10914 | |||
10915 | QString caption() const; | ||
10916 | const QPixmap *icon() const; | ||
10917 | QString iconText() const; | ||
10918 | bool hasMouseTracking() const; | ||
10919 | |||
10920 | virtual voidsetMask( const QBitmap & ); | ||
10921 | virtual voidsetMask( const QRegion & ); | ||
10922 | void clearMask(); | ||
10923 | |||
10924 | public : | ||
10925 | virtual voidsetCaption( const QString &); | ||
10926 | virtual voidsetIcon( const QPixmap & ); | ||
10927 | virtual voidsetIconText( const QString &); | ||
10928 | virtual voidsetMouseTracking( bool enable ); | ||
10929 | |||
10930 | |||
10931 | |||
10932 | virtual voidsetFocus(); | ||
10933 | void clearFocus(); | ||
10934 | |||
10935 | public: | ||
10936 | enum FocusPolicy { | ||
10937 | NoFocus = 0, | ||
10938 | TabFocus = 0x1, | ||
10939 | ClickFocus = 0x2, | ||
10940 | StrongFocus = 0x3, | ||
10941 | WheelFocus = 0x7 | ||
10942 | }; | ||
10943 | |||
10944 | bool isActiveWindow() const; | ||
10945 | virtual voidsetActiveWindow(); | ||
10946 | bool isFocusEnabled() const; | ||
10947 | |||
10948 | FocusPolicy focusPolicy() const; | ||
10949 | virtual voidsetFocusPolicy( FocusPolicy ); | ||
10950 | bool hasFocus() const; | ||
10951 | static void setTabOrder( QWidget *, QWidget * ); | ||
10952 | virtual voidsetFocusProxy( QWidget * ); | ||
10953 | QWidget * focusProxy() const; | ||
10954 | |||
10955 | |||
10956 | |||
10957 | void grabMouse(); | ||
10958 | |||
10959 | void grabMouse( const QCursor & ); | ||
10960 | |||
10961 | void releaseMouse(); | ||
10962 | void grabKeyboard(); | ||
10963 | void releaseKeyboard(); | ||
10964 | static QWidget *mouseGrabber(); | ||
10965 | static QWidget *keyboardGrabber(); | ||
10966 | |||
10967 | |||
10968 | |||
10969 | bool isUpdatesEnabled() const; | ||
10970 | |||
10971 | |||
10972 | |||
10973 | |||
10974 | public : | ||
10975 | virtual voidsetUpdatesEnabled( bool enable ); | ||
10976 | void update(); | ||
10977 | void update( int x, int y, int w, int h ); | ||
10978 | void update( const QRect& ); | ||
10979 | void repaint(); | ||
10980 | void repaint( bool erase ); | ||
10981 | void repaint( int x, int y, int w, int h, bool erase=TRUE ); | ||
10982 | void repaint( const QRect &, bool erase=TRUE ); | ||
10983 | void repaint( const QRegion &, bool erase=TRUE ); | ||
10984 | |||
10985 | |||
10986 | |||
10987 | virtual voidshow(); | ||
10988 | virtual voidhide(); | ||
10989 | |||
10990 | void iconify(){ showMinimized(); } | ||
10991 | |||
10992 | virtual voidshowMinimized(); | ||
10993 | virtual voidshowMaximized(); | ||
10994 | void showFullScreen(); | ||
10995 | virtual voidshowNormal(); | ||
10996 | virtual voidpolish(); | ||
10997 | void constPolish() const; | ||
10998 | bool close(); | ||
10999 | |||
11000 | void raise(); | ||
11001 | void lower(); | ||
11002 | void stackUnder( QWidget* ); | ||
11003 | virtual voidmove( int x, int y ); | ||
11004 | void move( const QPoint & ); | ||
11005 | virtual voidresize( int w, int h ); | ||
11006 | void resize( const QSize & ); | ||
11007 | virtual voidsetGeometry( int x, int y, int w, int h ); | ||
11008 | virtual voidsetGeometry( const QRect & ); | ||
11009 | |||
11010 | public: | ||
11011 | virtual boolclose( bool alsoDelete ); | ||
11012 | bool isVisible()const; | ||
11013 | bool isVisibleTo(QWidget*) const; | ||
11014 | bool isVisibleToTLW() const; | ||
11015 | QRect visibleRect() const; | ||
11016 | bool isHidden() const; | ||
11017 | bool isMinimized() const; | ||
11018 | bool isMaximized() const; | ||
11019 | |||
11020 | virtual QSizesizeHint() const; | ||
11021 | virtual QSizeminimumSizeHint() const; | ||
11022 | virtual QSizePolicysizePolicy() const; | ||
11023 | void setSizePolicy( QSizePolicy ); | ||
11024 | virtual int heightForWidth(int) const; | ||
11025 | |||
11026 | virtual void adjustSize(); | ||
11027 | |||
11028 | QLayout * layout() const { return lay_out; } | ||
11029 | |||
11030 | void updateGeometry(); | ||
11031 | virtual void reparent( QWidget *parent, WFlags, const QPoint &, | ||
11032 | bool showIt=FALSE ); | ||
11033 | void reparent( QWidget *parent, const QPoint &, | ||
11034 | bool showIt=FALSE ); | ||
11035 | |||
11036 | void recreate( QWidget *parent, WFlags f, const QPoint & p, | ||
11037 | bool showIt=FALSE ) | ||
11038 | { reparent(parent,f,p,showIt); } | ||
11039 | |||
11040 | |||
11041 | void erase(); | ||
11042 | void erase( int x, int y, int w, int h ); | ||
11043 | void erase( const QRect & ); | ||
11044 | void erase( const QRegion & ); | ||
11045 | void scroll( int dx, int dy ); | ||
11046 | void scroll( int dx, int dy, const QRect& ); | ||
11047 | |||
11048 | void drawText( int x, int y, const QString &); | ||
11049 | void drawText( const QPoint &, const QString &); | ||
11050 | |||
11051 | |||
11052 | |||
11053 | QWidget * focusWidget() const; | ||
11054 | QRect microFocusHint() const; | ||
11055 | |||
11056 | |||
11057 | |||
11058 | bool acceptDrops() const; | ||
11059 | virtual voidsetAcceptDrops( bool on ); | ||
11060 | |||
11061 | |||
11062 | |||
11063 | virtual voidsetAutoMask(bool); | ||
11064 | bool autoMask() const; | ||
11065 | |||
11066 | enum BackgroundOrigin { WidgetOrigin, ParentOrigin }; | ||
11067 | |||
11068 | void setBackgroundOrigin( BackgroundOrigin ); | ||
11069 | BackgroundOrigin backgroundOrigin() const; | ||
11070 | |||
11071 | |||
11072 | |||
11073 | virtual bool customWhatsThis() const; | ||
11074 | |||
11075 | QWidget * parentWidget() const; | ||
11076 | bool testWState( uint n ) const; | ||
11077 | bool testWFlags( WFlags f ) const; | ||
11078 | static QWidget *find( WId ); | ||
11079 | static QWidgetMapper *wmapper(); | ||
11080 | |||
11081 | |||
11082 | |||
11083 | |||
11084 | |||
11085 | protected: | ||
11086 | |||
11087 | bool event( QEvent * ); | ||
11088 | virtual void mousePressEvent( QMouseEvent * ); | ||
11089 | virtual void mouseReleaseEvent( QMouseEvent * ); | ||
11090 | virtual void mouseDoubleClickEvent( QMouseEvent * ); | ||
11091 | virtual void mouseMoveEvent( QMouseEvent * ); | ||
11092 | virtual void wheelEvent( QWheelEvent * ); | ||
11093 | virtual void keyPressEvent( QKeyEvent * ); | ||
11094 | virtual void keyReleaseEvent( QKeyEvent * ); | ||
11095 | virtual void focusInEvent( QFocusEvent * ); | ||
11096 | virtual void focusOutEvent( QFocusEvent * ); | ||
11097 | virtual void enterEvent( QEvent * ); | ||
11098 | virtual void leaveEvent( QEvent * ); | ||
11099 | virtual void paintEvent( QPaintEvent * ); | ||
11100 | virtual void moveEvent( QMoveEvent * ); | ||
11101 | virtual void resizeEvent( QResizeEvent * ); | ||
11102 | virtual void closeEvent( QCloseEvent * ); | ||
11103 | |||
11104 | |||
11105 | |||
11106 | |||
11107 | |||
11108 | |||
11109 | |||
11110 | |||
11111 | virtual void showEvent( QShowEvent * ); | ||
11112 | virtual void hideEvent( QHideEvent * ); | ||
11113 | virtual void customEvent( QCustomEvent * ); | ||
11114 | |||
11115 | # 463 "/opt/Qtopia/include/qwidget.h" | ||
11116 | |||
11117 | virtual bool x11Event( XEvent * ); | ||
11118 | |||
11119 | |||
11120 | |||
11121 | |||
11122 | |||
11123 | |||
11124 | virtual void updateMask(); | ||
11125 | |||
11126 | |||
11127 | |||
11128 | protected: | ||
11129 | |||
11130 | virtual void styleChange( QStyle& ); | ||
11131 | |||
11132 | virtual void enabledChange( bool ); | ||
11133 | virtual void backgroundColorChange( const QColor & ); | ||
11134 | virtual void backgroundPixmapChange( const QPixmap & ); | ||
11135 | |||
11136 | virtual void paletteChange( const QPalette & ); | ||
11137 | |||
11138 | virtual void fontChange( const QFont & ); | ||
11139 | |||
11140 | int metric( int )const; | ||
11141 | |||
11142 | virtual void create( WId = 0, bool initializeWindow = TRUE, | ||
11143 | bool destroyOldWindow = TRUE ); | ||
11144 | virtual void destroy( bool destroyWindow = TRUE, | ||
11145 | bool destroySubWindows = TRUE ); | ||
11146 | uint getWState() const; | ||
11147 | virtual void setWState( uint ); | ||
11148 | void clearWState( uint n ); | ||
11149 | WFlags getWFlags() const; | ||
11150 | virtual void setWFlags( WFlags ); | ||
11151 | void clearWFlags( WFlags n ); | ||
11152 | |||
11153 | virtual void setFRect( const QRect & ); | ||
11154 | virtual void setCRect( const QRect & ); | ||
11155 | |||
11156 | virtual bool focusNextPrevChild( bool next ); | ||
11157 | |||
11158 | QWExtra*extraData(); | ||
11159 | QTLWExtra*topData(); | ||
11160 | QFocusData*focusData(); | ||
11161 | |||
11162 | virtual void setKeyCompression(bool); | ||
11163 | virtual void setMicroFocusHint(int x, int y, int w, int h, bool text=TRUE); | ||
11164 | |||
11165 | private : | ||
11166 | void focusProxyDestroyed(); | ||
11167 | |||
11168 | private: | ||
11169 | void setFontSys(); | ||
11170 | |||
11171 | void setLayout( QLayout *l ); | ||
11172 | |||
11173 | void setWinId( WId ); | ||
11174 | void showWindow(); | ||
11175 | void hideWindow(); | ||
11176 | void sendShowEventsToChildren( bool spontaneous ); | ||
11177 | void sendHideEventsToChildren( bool spontaneous ); | ||
11178 | void createTLExtra(); | ||
11179 | void createExtra(); | ||
11180 | void deleteExtra(); | ||
11181 | void createSysExtra(); | ||
11182 | void deleteSysExtra(); | ||
11183 | void createTLSysExtra(); | ||
11184 | void deleteTLSysExtra(); | ||
11185 | void deactivateWidgetCleanup(); | ||
11186 | void internalSetGeometry( int, int, int, int, bool ); | ||
11187 | void reparentFocusWidgets( QWidget * ); | ||
11188 | QFocusData*focusData( bool create ); | ||
11189 | void setBackgroundFromMode(); | ||
11190 | void setBackgroundColorDirect( const QColor & ); | ||
11191 | void setBackgroundPixmapDirect( const QPixmap & ); | ||
11192 | void setBackgroundModeDirect( BackgroundMode ); | ||
11193 | void setBackgroundEmpty(); | ||
11194 | |||
11195 | void setBackgroundX11Relative(); | ||
11196 | void checkChildrenDnd(); | ||
11197 | |||
11198 | |||
11199 | WId winid; | ||
11200 | uint widget_state; | ||
11201 | uint widget_flags; | ||
11202 | uint propagate_font : 2; | ||
11203 | uint propagate_palette : 2; | ||
11204 | uint focus_policy : 4; | ||
11205 | uint own_font :1; | ||
11206 | uint own_palette :1; | ||
11207 | uint sizehint_forced :1; | ||
11208 | uint is_closing :1; | ||
11209 | uint in_show : 1; | ||
11210 | uint in_show_maximized : 1; | ||
11211 | QPoint fpos; | ||
11212 | QRect crect; | ||
11213 | QColor bg_col; | ||
11214 | |||
11215 | QPalette pal; | ||
11216 | |||
11217 | QFont fnt; | ||
11218 | |||
11219 | QLayout *lay_out; | ||
11220 | |||
11221 | QWExtra*extra; | ||
11222 | # 593 "/opt/Qtopia/include/qwidget.h" | ||
11223 | |||
11224 | |||
11225 | static void createMapper(); | ||
11226 | static void destroyMapper(); | ||
11227 | static QWidgetList *wList(); | ||
11228 | static QWidgetList *tlwList(); | ||
11229 | static QWidgetMapper *mapper; | ||
11230 | friend class QApplication; | ||
11231 | friend class QBaseApplication; | ||
11232 | friend class QPainter; | ||
11233 | friend class QFontMetrics; | ||
11234 | friend class QFontInfo; | ||
11235 | friend class QETWidget; | ||
11236 | |||
11237 | friend class QLayout; | ||
11238 | |||
11239 | |||
11240 | |||
11241 | private: | ||
11242 | |||
11243 | QWidget( const QWidget & ); | ||
11244 | QWidget &operator=( const QWidget & ); | ||
11245 | |||
11246 | |||
11247 | public: | ||
11248 | |||
11249 | void setPalette( const QPalette &, bool iReallyMeanIt ); | ||
11250 | |||
11251 | void setFont( const QFont &, bool iReallyMeanIt ); | ||
11252 | }; | ||
11253 | |||
11254 | |||
11255 | inline bool QWidget::testWState( uint f ) const | ||
11256 | { return (widget_state & f) != 0; } | ||
11257 | |||
11258 | inline bool QWidget::testWFlags( WFlags f ) const | ||
11259 | { return (widget_flags & f) != 0; } | ||
11260 | |||
11261 | |||
11262 | inline WId QWidget::winId() const | ||
11263 | { return winid; } | ||
11264 | |||
11265 | inline bool QWidget::isTopLevel() const | ||
11266 | { return testWFlags(WType_TopLevel); } | ||
11267 | |||
11268 | inline bool QWidget::isModal() const | ||
11269 | { return testWFlags(WType_Modal); } | ||
11270 | |||
11271 | inline bool QWidget::isPopup() const | ||
11272 | { return testWFlags(WType_Popup); } | ||
11273 | |||
11274 | inline bool QWidget::isDesktop() const | ||
11275 | { return testWFlags(WType_Desktop); } | ||
11276 | |||
11277 | inline bool QWidget::isEnabled() const | ||
11278 | { return !testWState(WState_Disabled); } | ||
11279 | |||
11280 | inline const QRect &QWidget::geometry() const | ||
11281 | { return crect; } | ||
11282 | |||
11283 | inline int QWidget::x() const | ||
11284 | { return fpos.x(); } | ||
11285 | |||
11286 | inline int QWidget::y() const | ||
11287 | { return fpos.y(); } | ||
11288 | |||
11289 | inline QPoint QWidget::pos() const | ||
11290 | { return fpos; } | ||
11291 | |||
11292 | inline QSize QWidget::size() const | ||
11293 | { return crect.size(); } | ||
11294 | |||
11295 | inline int QWidget::width() const | ||
11296 | { return crect.width(); } | ||
11297 | |||
11298 | inline int QWidget::height() const | ||
11299 | { return crect.height(); } | ||
11300 | |||
11301 | inline QRect QWidget::rect() const | ||
11302 | { return QRect(0,0,crect.width(),crect.height()); } | ||
11303 | |||
11304 | inline int QWidget::minimumWidth() const | ||
11305 | { return minimumSize().width(); } | ||
11306 | |||
11307 | inline int QWidget::minimumHeight() const | ||
11308 | { return minimumSize().height(); } | ||
11309 | |||
11310 | inline int QWidget::maximumWidth() const | ||
11311 | { return maximumSize().width(); } | ||
11312 | |||
11313 | inline int QWidget::maximumHeight() const | ||
11314 | { return maximumSize().height(); } | ||
11315 | |||
11316 | inline void QWidget::setMinimumSize( const QSize &s ) | ||
11317 | { setMinimumSize(s.width(),s.height()); } | ||
11318 | |||
11319 | inline void QWidget::setMaximumSize( const QSize &s ) | ||
11320 | { setMaximumSize(s.width(),s.height()); } | ||
11321 | |||
11322 | inline void QWidget::setSizeIncrement( const QSize &s ) | ||
11323 | { setSizeIncrement(s.width(),s.height()); } | ||
11324 | |||
11325 | inline void QWidget::setBaseSize( const QSize &s ) | ||
11326 | { setBaseSize(s.width(),s.height()); } | ||
11327 | |||
11328 | inline const QColor &QWidget::backgroundColor() const | ||
11329 | { return bg_col; } | ||
11330 | |||
11331 | |||
11332 | inline const QPalette &QWidget::palette() const | ||
11333 | { return pal; } | ||
11334 | |||
11335 | |||
11336 | inline QFont QWidget::font() const | ||
11337 | { return fnt; } | ||
11338 | |||
11339 | inline QFontMetrics QWidget::fontMetrics() const | ||
11340 | { return QFontMetrics(font()); } | ||
11341 | |||
11342 | inline QFontInfo QWidget::fontInfo() const | ||
11343 | { return QFontInfo(font()); } | ||
11344 | |||
11345 | inline bool QWidget::hasMouseTracking() const | ||
11346 | { return testWState(WState_MouseTracking); } | ||
11347 | |||
11348 | inline bool QWidget::isFocusEnabled() const | ||
11349 | { return (FocusPolicy)focus_policy != NoFocus; } | ||
11350 | |||
11351 | inline QWidget::FocusPolicy QWidget::focusPolicy() const | ||
11352 | { return (FocusPolicy)focus_policy; } | ||
11353 | |||
11354 | inline bool QWidget::isUpdatesEnabled() const | ||
11355 | { return !testWState(WState_BlockUpdates); } | ||
11356 | |||
11357 | inline void QWidget::update( const QRect &r ) | ||
11358 | { update( r.x(), r.y(), r.width(), r.height() ); } | ||
11359 | |||
11360 | inline void QWidget::repaint() | ||
11361 | { repaint( 0, 0, crect.width(), crect.height(), TRUE ); } | ||
11362 | |||
11363 | inline void QWidget::repaint( bool erase ) | ||
11364 | { repaint( 0, 0, crect.width(), crect.height(), erase ); } | ||
11365 | |||
11366 | inline void QWidget::repaint( const QRect &r, bool erase ) | ||
11367 | { repaint( r.x(), r.y(), r.width(), r.height(), erase ); } | ||
11368 | |||
11369 | inline void QWidget::erase() | ||
11370 | { erase( 0, 0, crect.width(), crect.height() ); } | ||
11371 | |||
11372 | inline void QWidget::erase( const QRect &r ) | ||
11373 | { erase( r.x(), r.y(), r.width(), r.height() ); } | ||
11374 | |||
11375 | inline bool QWidget::close() | ||
11376 | { return close( FALSE ); } | ||
11377 | |||
11378 | inline bool QWidget::isVisible() const | ||
11379 | { return testWState(WState_Visible); } | ||
11380 | |||
11381 | inline bool QWidget::isHidden() const | ||
11382 | { return testWState(WState_ForceHide); } | ||
11383 | |||
11384 | inline void QWidget::move( const QPoint &p ) | ||
11385 | { move( p.x(), p.y() ); } | ||
11386 | |||
11387 | inline void QWidget::resize( const QSize &s ) | ||
11388 | { resize( s.width(), s.height()); } | ||
11389 | |||
11390 | inline void QWidget::setGeometry( const QRect &r ) | ||
11391 | { setGeometry( r.left(), r.top(), r.width(), r.height() ); } | ||
11392 | |||
11393 | inline void QWidget::drawText( const QPoint &p, const QString &s ) | ||
11394 | { drawText( p.x(), p.y(), s ); } | ||
11395 | |||
11396 | inline QWidget *QWidget::parentWidget() const | ||
11397 | { return (QWidget *)QObject::parent(); } | ||
11398 | |||
11399 | inline QWidgetMapper *QWidget::wmapper() | ||
11400 | { return mapper; } | ||
11401 | |||
11402 | inline uint QWidget::getWState() const | ||
11403 | { return widget_state; } | ||
11404 | |||
11405 | inline void QWidget::setWState( uint f ) | ||
11406 | { widget_state |= f; } | ||
11407 | |||
11408 | inline void QWidget::clearWState( uint f ) | ||
11409 | { widget_state &= ~f; } | ||
11410 | |||
11411 | inline Qt::WFlags QWidget::getWFlags() const | ||
11412 | { return widget_flags; } | ||
11413 | |||
11414 | inline void QWidget::setWFlags( WFlags f ) | ||
11415 | { widget_flags |= f; } | ||
11416 | |||
11417 | inline void QWidget::clearWFlags( WFlags f ) | ||
11418 | { widget_flags &= ~f; } | ||
11419 | |||
11420 | inline void QWidget::constPolish() const | ||
11421 | { | ||
11422 | if ( !testWState(WState_Polished) ) { | ||
11423 | QWidget* that = (QWidget*) this; | ||
11424 | that->polish(); | ||
11425 | that->setWState(WState_Polished); | ||
11426 | } | ||
11427 | } | ||
11428 | |||
11429 | inline bool QWidget::ownCursor() const | ||
11430 | { | ||
11431 | return testWState( WState_OwnCursor ); | ||
11432 | } | ||
11433 | |||
11434 | inline bool QWidget::ownFont() const | ||
11435 | { | ||
11436 | return own_font; | ||
11437 | } | ||
11438 | |||
11439 | inline bool QWidget::ownPalette() const | ||
11440 | { | ||
11441 | return own_palette; | ||
11442 | } | ||
11443 | |||
11444 | |||
11445 | |||
11446 | |||
11447 | |||
11448 | |||
11449 | class QFocusData; | ||
11450 | class QWSManager; | ||
11451 | |||
11452 | |||
11453 | |||
11454 | |||
11455 | struct QTLWExtra { | ||
11456 | QString caption; | ||
11457 | QString iconText; | ||
11458 | QPixmap *icon; | ||
11459 | QFocusData *focusData; | ||
11460 | QSize fsize; | ||
11461 | short incw, inch; | ||
11462 | uint iconic: 1; | ||
11463 | uint fullscreen : 1; | ||
11464 | uint showMode: 2; | ||
11465 | short basew, baseh; | ||
11466 | |||
11467 | WId parentWinId; | ||
11468 | uint embedded : 1; | ||
11469 | uint reserved: 2; | ||
11470 | uint dnd : 1; | ||
11471 | uint uspos : 1; | ||
11472 | uint ussize : 1; | ||
11473 | void *xic; | ||
11474 | |||
11475 | |||
11476 | |||
11477 | |||
11478 | |||
11479 | |||
11480 | |||
11481 | |||
11482 | QRect normalGeometry; | ||
11483 | }; | ||
11484 | |||
11485 | |||
11486 | |||
11487 | |||
11488 | |||
11489 | |||
11490 | struct QWExtra { | ||
11491 | Q_INT16 minw, minh; | ||
11492 | Q_INT16 maxw, maxh; | ||
11493 | QPixmap *bg_pix; | ||
11494 | QWidget *focus_proxy; | ||
11495 | |||
11496 | QCursor *curs; | ||
11497 | |||
11498 | QTLWExtra *topextra; | ||
11499 | |||
11500 | |||
11501 | |||
11502 | |||
11503 | WId xDndProxy; | ||
11504 | |||
11505 | |||
11506 | |||
11507 | |||
11508 | char bg_mode; | ||
11509 | |||
11510 | QStyle* style; | ||
11511 | |||
11512 | QRect micro_focus_hint; | ||
11513 | QSizePolicy size_policy; | ||
11514 | void * posted_events; | ||
11515 | |||
11516 | uint children_use_dnd : 1; | ||
11517 | |||
11518 | }; | ||
11519 | |||
11520 | |||
11521 | |||
11522 | # 13 "todaybase.h" 2 | ||
11523 | |||
11524 | class QVBoxLayout; | ||
11525 | class QHBoxLayout; | ||
11526 | class QGridLayout; | ||
11527 | class QFrame; | ||
11528 | class QLabel; | ||
11529 | |||
11530 | class TodayBase : public QWidget | ||
11531 | { | ||
11532 | public: QMetaObject *metaObject() const { return staticMetaObject(); } const char *className() const; static QMetaObject* staticMetaObject(); static QString tr(const char*); static QString tr(const char*, const char*); protected: void initMetaObject(); private:static QMetaObject *metaObj; | ||
11533 | |||
11534 | public: | ||
11535 | TodayBase( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | ||
11536 | ~TodayBase(); | ||
11537 | |||
11538 | QFrame* Frame; | ||
11539 | QLabel* TextLabel1; | ||
11540 | QFrame* Line2; | ||
11541 | QLabel* PixmapLabel1; | ||
11542 | QLabel* PixmapLabel7; | ||
11543 | QLabel* DatesField; | ||
11544 | QLabel* TodoField; | ||
11545 | |||
11546 | protected: | ||
11547 | bool event( QEvent* ); | ||
11548 | }; | ||
11549 | |||
11550 | |||
11551 | # 4 "today.h" 2 | ||
11552 | |||
11553 | |||
11554 | # 1 "/opt/Qtopia/include/qpe/datebookdb.h" 1 | ||
11555 | |||
11556 | |||
11557 | |||
11558 | |||
11559 | |||
11560 | |||
11561 | |||
11562 | |||
11563 | |||
11564 | |||
11565 | |||
11566 | |||
11567 | |||
11568 | |||
11569 | |||
11570 | |||
11571 | |||
11572 | |||
11573 | |||
11574 | |||
11575 | |||
11576 | |||
11577 | |||
11578 | |||
11579 | # 1 "/opt/Qtopia/include/qdatetime.h" 1 | ||
11580 | |||
11581 | |||
11582 | |||
11583 | |||
11584 | |||
11585 | |||
11586 | |||
11587 | |||
11588 | |||
11589 | |||
11590 | |||
11591 | |||
11592 | |||
11593 | |||
11594 | |||
11595 | |||
11596 | |||
11597 | |||
11598 | |||
11599 | |||
11600 | |||
11601 | |||
11602 | |||
11603 | |||
11604 | |||
11605 | |||
11606 | |||
11607 | |||
11608 | |||
11609 | |||
11610 | |||
11611 | |||
11612 | |||
11613 | |||
11614 | |||
11615 | |||
11616 | |||
11617 | |||
11618 | |||
11619 | |||
11620 | |||
11621 | |||
11622 | |||
11623 | |||
11624 | |||
11625 | |||
11626 | |||
11627 | |||
11628 | |||
11629 | class QDate | ||
11630 | { | ||
11631 | public: | ||
11632 | QDate() { jd=0; } | ||
11633 | QDate( int y, int m, int d ); | ||
11634 | |||
11635 | bool isNull() const { return jd == 0; } | ||
11636 | bool isValid() const; | ||
11637 | |||
11638 | int year() const; | ||
11639 | int month() const; | ||
11640 | int day() const; | ||
11641 | int dayOfWeek() const; | ||
11642 | int dayOfYear() const; | ||
11643 | int daysInMonth() const; | ||
11644 | int daysInYear() const; | ||
11645 | |||
11646 | virtual QString monthName( int month ) const; | ||
11647 | virtual QString dayName( int weekday ) const; | ||
11648 | |||
11649 | QString toString() const; | ||
11650 | |||
11651 | bool setYMD( int y, int m, int d ); | ||
11652 | |||
11653 | QDate addDays( int days ) const; | ||
11654 | int daysTo( const QDate & )const; | ||
11655 | |||
11656 | bool operator==( const QDate &d ) const { return jd == d.jd; } | ||
11657 | bool operator!=( const QDate &d ) const { return jd != d.jd; } | ||
11658 | bool operator<( const QDate &d )const { return jd < d.jd; } | ||
11659 | bool operator<=( const QDate &d ) const { return jd <= d.jd; } | ||
11660 | bool operator>( const QDate &d )const { return jd > d.jd; } | ||
11661 | bool operator>=( const QDate &d ) const { return jd >= d.jd; } | ||
11662 | |||
11663 | static QDate currentDate(); | ||
11664 | static bool isValid( int y, int m, int d ); | ||
11665 | static bool leapYear( int year ); | ||
11666 | |||
11667 | protected: | ||
11668 | static uint greg2jul( int y, int m, int d ); | ||
11669 | static void jul2greg( uint jd, int &y, int &m, int &d ); | ||
11670 | private: | ||
11671 | static const char * const monthNames[]; | ||
11672 | static const char * const weekdayNames[]; | ||
11673 | uint jd; | ||
11674 | friend class QDateTime; | ||
11675 | |||
11676 | friend QDataStream &operator<<( QDataStream &, const QDate & ); | ||
11677 | friend QDataStream &operator>>( QDataStream &, QDate & ); | ||
11678 | |||
11679 | }; | ||
11680 | |||
11681 | |||
11682 | |||
11683 | |||
11684 | |||
11685 | |||
11686 | class QTime | ||
11687 | { | ||
11688 | public: | ||
11689 | QTime() { ds=0; } | ||
11690 | QTime( int h, int m, int s=0, int ms=0 ); | ||
11691 | |||
11692 | bool isNull() const { return ds == 0; } | ||
11693 | bool isValid() const; | ||
11694 | |||
11695 | int hour() const; | ||
11696 | int minute() const; | ||
11697 | int second() const; | ||
11698 | int msec() const; | ||
11699 | |||
11700 | QString toString() const; | ||
11701 | |||
11702 | bool setHMS( int h, int m, int s, int ms=0 ); | ||
11703 | |||
11704 | QTime addSecs( int secs ) const; | ||
11705 | int secsTo( const QTime & )const; | ||
11706 | QTime addMSecs( int ms ) const; | ||
11707 | int msecsTo( const QTime & )const; | ||
11708 | |||
11709 | bool operator==( const QTime &d ) const { return ds == d.ds; } | ||
11710 | bool operator!=( const QTime &d ) const { return ds != d.ds; } | ||
11711 | bool operator<( const QTime &d )const { return ds < d.ds; } | ||
11712 | bool operator<=( const QTime &d ) const { return ds <= d.ds; } | ||
11713 | bool operator>( const QTime &d )const { return ds > d.ds; } | ||
11714 | bool operator>=( const QTime &d ) const { return ds >= d.ds; } | ||
11715 | |||
11716 | static QTime currentTime(); | ||
11717 | static bool isValid( int h, int m, int s, int ms=0 ); | ||
11718 | |||
11719 | void start(); | ||
11720 | int restart(); | ||
11721 | int elapsed(); | ||
11722 | |||
11723 | private: | ||
11724 | static bool currentTime( QTime * ); | ||
11725 | |||
11726 | uint ds; | ||
11727 | friend class QDateTime; | ||
11728 | |||
11729 | friend QDataStream &operator<<( QDataStream &, const QTime & ); | ||
11730 | friend QDataStream &operator>>( QDataStream &, QTime & ); | ||
11731 | |||
11732 | }; | ||
11733 | |||
11734 | |||
11735 | |||
11736 | |||
11737 | |||
11738 | |||
11739 | class QDateTime | ||
11740 | { | ||
11741 | public: | ||
11742 | QDateTime() {} | ||
11743 | QDateTime( const QDate & ); | ||
11744 | QDateTime( const QDate &, const QTime & ); | ||
11745 | |||
11746 | bool isNull() const { return d.isNull() && t.isNull(); } | ||
11747 | bool isValid() const { return d.isValid() && t.isValid(); } | ||
11748 | |||
11749 | QDate date() const { return d; } | ||
11750 | QTime time() const { return t; } | ||
11751 | void setDate( const QDate &date ) { d=date; } | ||
11752 | void setTime( const QTime &time ) { t=time; } | ||
11753 | void setTime_t( uint secsSince1Jan1970UTC ); | ||
11754 | |||
11755 | QString toString()const; | ||
11756 | |||
11757 | QDateTime addDays( int days )const; | ||
11758 | QDateTime addSecs( int secs )const; | ||
11759 | int daysTo( const QDateTime & )const; | ||
11760 | int secsTo( const QDateTime & )const; | ||
11761 | |||
11762 | bool operator==( const QDateTime &dt ) const; | ||
11763 | bool operator!=( const QDateTime &dt ) const; | ||
11764 | bool operator<( const QDateTime &dt ) const; | ||
11765 | bool operator<=( const QDateTime &dt ) const; | ||
11766 | bool operator>( const QDateTime &dt ) const; | ||
11767 | bool operator>=( const QDateTime &dt ) const; | ||
11768 | |||
11769 | static QDateTime currentDateTime(); | ||
11770 | |||
11771 | private: | ||
11772 | QDate d; | ||
11773 | QTime t; | ||
11774 | |||
11775 | friend QDataStream &operator<<( QDataStream &, const QDateTime &); | ||
11776 | friend QDataStream &operator>>( QDataStream &, QDateTime & ); | ||
11777 | |||
11778 | }; | ||
11779 | |||
11780 | |||
11781 | |||
11782 | |||
11783 | |||
11784 | |||
11785 | |||
11786 | QDataStream &operator<<( QDataStream &, const QDate & ); | ||
11787 | QDataStream &operator>>( QDataStream &, QDate & ); | ||
11788 | QDataStream &operator<<( QDataStream &, const QTime & ); | ||
11789 | QDataStream &operator>>( QDataStream &, QTime & ); | ||
11790 | QDataStream &operator<<( QDataStream &, const QDateTime & ); | ||
11791 | QDataStream &operator>>( QDataStream &, QDateTime & ); | ||
11792 | |||
11793 | |||
11794 | |||
11795 | # 25 "/opt/Qtopia/include/qpe/datebookdb.h" 2 | ||
11796 | |||
11797 | # 1 "/opt/Qtopia/include/qfile.h" 1 | ||
11798 | |||
11799 | |||
11800 | |||
11801 | |||
11802 | |||
11803 | |||
11804 | |||
11805 | |||
11806 | |||
11807 | |||
11808 | |||
11809 | |||
11810 | |||
11811 | |||
11812 | |||
11813 | |||
11814 | |||
11815 | |||
11816 | |||
11817 | |||
11818 | |||
11819 | |||
11820 | |||
11821 | |||
11822 | |||
11823 | |||
11824 | |||
11825 | |||
11826 | |||
11827 | |||
11828 | |||
11829 | |||
11830 | |||
11831 | |||
11832 | |||
11833 | |||
11834 | |||
11835 | |||
11836 | |||
11837 | |||
11838 | |||
11839 | |||
11840 | |||
11841 | # 1 "/usr/include/stdio.h" 1 3 | ||
11842 | |||
11843 | |||
11844 | |||
11845 | |||
11846 | |||
11847 | |||
11848 | |||
11849 | |||
11850 | |||
11851 | |||
11852 | |||
11853 | |||
11854 | |||
11855 | |||
11856 | |||
11857 | |||
11858 | |||
11859 | |||
11860 | |||
11861 | |||
11862 | |||
11863 | |||
11864 | |||
11865 | |||
11866 | |||
11867 | |||
11868 | |||
11869 | |||
11870 | |||
11871 | extern "C" { | ||
11872 | |||
11873 | |||
11874 | |||
11875 | # 1 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 1 3 | ||
11876 | |||
11877 | |||
11878 | |||
11879 | |||
11880 | |||
11881 | |||
11882 | |||
11883 | |||
11884 | |||
11885 | # 19 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
11886 | |||
11887 | |||
11888 | |||
11889 | |||
11890 | |||
11891 | |||
11892 | |||
11893 | |||
11894 | |||
11895 | |||
11896 | |||
11897 | |||
11898 | |||
11899 | |||
11900 | |||
11901 | # 61 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
11902 | |||
11903 | |||
11904 | |||
11905 | |||
11906 | |||
11907 | |||
11908 | |||
11909 | |||
11910 | |||
11911 | |||
11912 | |||
11913 | |||
11914 | |||
11915 | |||
11916 | |||
11917 | |||
11918 | |||
11919 | |||
11920 | |||
11921 | |||
11922 | |||
11923 | |||
11924 | |||
11925 | |||
11926 | |||
11927 | |||
11928 | |||
11929 | |||
11930 | |||
11931 | |||
11932 | |||
11933 | |||
11934 | |||
11935 | |||
11936 | |||
11937 | |||
11938 | |||
11939 | # 131 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
11940 | |||
11941 | |||
11942 | |||
11943 | |||
11944 | |||
11945 | |||
11946 | |||
11947 | # 188 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
11948 | |||
11949 | |||
11950 | |||
11951 | |||
11952 | |||
11953 | |||
11954 | |||
11955 | |||
11956 | |||
11957 | |||
11958 | |||
11959 | |||
11960 | # 271 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
11961 | |||
11962 | |||
11963 | # 283 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
11964 | |||
11965 | |||
11966 | |||
11967 | |||
11968 | |||
11969 | |||
11970 | # 317 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
11971 | |||
11972 | |||
11973 | |||
11974 | |||
11975 | |||
11976 | |||
11977 | |||
11978 | |||
11979 | |||
11980 | |||
11981 | |||
11982 | |||
11983 | |||
11984 | |||
11985 | |||
11986 | |||
11987 | |||
11988 | |||
11989 | |||
11990 | |||
11991 | |||
11992 | |||
11993 | |||
11994 | |||
11995 | |||
11996 | |||
11997 | # 34 "/usr/include/stdio.h" 2 3 | ||
11998 | |||
11999 | |||
12000 | # 1 "/usr/include/bits/types.h" 1 3 | ||
12001 | |||
12002 | |||
12003 | |||
12004 | |||
12005 | |||
12006 | |||
12007 | |||
12008 | |||
12009 | |||
12010 | |||
12011 | |||
12012 | |||
12013 | |||
12014 | |||
12015 | |||
12016 | |||
12017 | |||
12018 | |||
12019 | |||
12020 | |||
12021 | |||
12022 | |||
12023 | |||
12024 | |||
12025 | |||
12026 | |||
12027 | |||
12028 | |||
12029 | # 1 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 1 3 | ||
12030 | |||
12031 | |||
12032 | |||
12033 | |||
12034 | |||
12035 | |||
12036 | |||
12037 | |||
12038 | |||
12039 | # 19 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
12040 | |||
12041 | |||
12042 | |||
12043 | |||
12044 | |||
12045 | |||
12046 | |||
12047 | |||
12048 | |||
12049 | |||
12050 | |||
12051 | |||
12052 | |||
12053 | |||
12054 | |||
12055 | # 61 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
12056 | |||
12057 | |||
12058 | |||
12059 | |||
12060 | |||
12061 | |||
12062 | |||
12063 | |||
12064 | |||
12065 | |||
12066 | |||
12067 | |||
12068 | |||
12069 | |||
12070 | |||
12071 | |||
12072 | |||
12073 | |||
12074 | |||
12075 | |||
12076 | |||
12077 | |||
12078 | |||
12079 | |||
12080 | |||
12081 | |||
12082 | |||
12083 | |||
12084 | |||
12085 | |||
12086 | |||
12087 | |||
12088 | |||
12089 | |||
12090 | |||
12091 | |||
12092 | |||
12093 | # 131 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
12094 | |||
12095 | |||
12096 | |||
12097 | |||
12098 | |||
12099 | |||
12100 | |||
12101 | # 188 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
12102 | |||
12103 | |||
12104 | |||
12105 | |||
12106 | |||
12107 | |||
12108 | |||
12109 | |||
12110 | |||
12111 | |||
12112 | |||
12113 | |||
12114 | # 271 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
12115 | |||
12116 | |||
12117 | # 283 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
12118 | |||
12119 | |||
12120 | |||
12121 | |||
12122 | |||
12123 | |||
12124 | # 317 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
12125 | |||
12126 | |||
12127 | |||
12128 | |||
12129 | |||
12130 | |||
12131 | |||
12132 | |||
12133 | |||
12134 | |||
12135 | |||
12136 | |||
12137 | |||
12138 | |||
12139 | |||
12140 | |||
12141 | |||
12142 | |||
12143 | |||
12144 | |||
12145 | |||
12146 | |||
12147 | |||
12148 | |||
12149 | |||
12150 | |||
12151 | # 29 "/usr/include/bits/types.h" 2 3 | ||
12152 | |||
12153 | |||
12154 | |||
12155 | typedef unsigned char __u_char; | ||
12156 | typedef unsigned short __u_short; | ||
12157 | typedef unsigned int __u_int; | ||
12158 | typedef unsigned long __u_long; | ||
12159 | |||
12160 | __extension__ typedef unsigned long long int __u_quad_t; | ||
12161 | __extension__ typedef long long int __quad_t; | ||
12162 | # 48 "/usr/include/bits/types.h" 3 | ||
12163 | |||
12164 | typedef signed char __int8_t; | ||
12165 | typedef unsigned char __uint8_t; | ||
12166 | typedef signed short int __int16_t; | ||
12167 | typedef unsigned short int __uint16_t; | ||
12168 | typedef signed int __int32_t; | ||
12169 | typedef unsigned int __uint32_t; | ||
12170 | |||
12171 | __extension__ typedef signed long long int __int64_t; | ||
12172 | __extension__ typedef unsigned long long int __uint64_t; | ||
12173 | |||
12174 | typedef __quad_t *__qaddr_t; | ||
12175 | |||
12176 | typedef __u_quad_t __dev_t; | ||
12177 | typedef __u_int __uid_t; | ||
12178 | typedef __u_int __gid_t; | ||
12179 | typedef __u_long __ino_t; | ||
12180 | typedef __u_int __mode_t; | ||
12181 | typedef __u_int __nlink_t; | ||
12182 | typedef long int __off_t; | ||
12183 | typedef __quad_t __loff_t; | ||
12184 | typedef int __pid_t; | ||
12185 | typedef int __ssize_t; | ||
12186 | typedef __u_long __rlim_t; | ||
12187 | typedef __u_quad_t __rlim64_t; | ||
12188 | typedef __u_int __id_t; | ||
12189 | |||
12190 | typedef struct | ||
12191 | { | ||
12192 | int __val[2]; | ||
12193 | } __fsid_t; | ||
12194 | |||
12195 | |||
12196 | typedef int __daddr_t; | ||
12197 | typedef char *__caddr_t; | ||
12198 | typedef long int __time_t; | ||
12199 | typedef unsigned int __useconds_t; | ||
12200 | typedef long int __suseconds_t; | ||
12201 | typedef long int __swblk_t; | ||
12202 | |||
12203 | typedef long int __clock_t; | ||
12204 | |||
12205 | |||
12206 | typedef int __clockid_t; | ||
12207 | |||
12208 | |||
12209 | typedef int __timer_t; | ||
12210 | |||
12211 | |||
12212 | |||
12213 | |||
12214 | |||
12215 | |||
12216 | typedef int __key_t; | ||
12217 | |||
12218 | |||
12219 | typedef unsigned short int __ipc_pid_t; | ||
12220 | |||
12221 | |||
12222 | |||
12223 | typedef long int __blksize_t; | ||
12224 | |||
12225 | |||
12226 | |||
12227 | |||
12228 | typedef long int __blkcnt_t; | ||
12229 | typedef __quad_t __blkcnt64_t; | ||
12230 | |||
12231 | |||
12232 | typedef __u_long __fsblkcnt_t; | ||
12233 | typedef __u_quad_t __fsblkcnt64_t; | ||
12234 | |||
12235 | |||
12236 | typedef __u_long __fsfilcnt_t; | ||
12237 | typedef __u_quad_t __fsfilcnt64_t; | ||
12238 | |||
12239 | |||
12240 | typedef __u_quad_t __ino64_t; | ||
12241 | |||
12242 | |||
12243 | typedef __loff_t __off64_t; | ||
12244 | |||
12245 | |||
12246 | typedef long int __t_scalar_t; | ||
12247 | typedef unsigned long int __t_uscalar_t; | ||
12248 | |||
12249 | |||
12250 | typedef int __intptr_t; | ||
12251 | |||
12252 | |||
12253 | typedef unsigned int __socklen_t; | ||
12254 | |||
12255 | |||
12256 | |||
12257 | |||
12258 | # 1 "/usr/include/bits/pthreadtypes.h" 1 3 | ||
12259 | |||
12260 | |||
12261 | |||
12262 | |||
12263 | |||
12264 | |||
12265 | |||
12266 | |||
12267 | |||
12268 | |||
12269 | |||
12270 | |||
12271 | |||
12272 | |||
12273 | |||
12274 | |||
12275 | |||
12276 | |||
12277 | |||
12278 | |||
12279 | |||
12280 | |||
12281 | # 1 "/usr/include/bits/sched.h" 1 3 | ||
12282 | |||
12283 | |||
12284 | |||
12285 | |||
12286 | |||
12287 | |||
12288 | |||
12289 | |||
12290 | |||
12291 | |||
12292 | |||
12293 | |||
12294 | |||
12295 | |||
12296 | |||
12297 | |||
12298 | |||
12299 | |||
12300 | |||
12301 | |||
12302 | # 62 "/usr/include/bits/sched.h" 3 | ||
12303 | |||
12304 | |||
12305 | |||
12306 | |||
12307 | |||
12308 | |||
12309 | struct __sched_param | ||
12310 | { | ||
12311 | int __sched_priority; | ||
12312 | }; | ||
12313 | |||
12314 | |||
12315 | # 23 "/usr/include/bits/pthreadtypes.h" 2 3 | ||
12316 | |||
12317 | |||
12318 | typedef int __atomic_lock_t; | ||
12319 | |||
12320 | |||
12321 | struct _pthread_fastlock | ||
12322 | { | ||
12323 | long int __status; | ||
12324 | __atomic_lock_t __spinlock; | ||
12325 | |||
12326 | }; | ||
12327 | |||
12328 | |||
12329 | |||
12330 | typedef struct _pthread_descr_struct *_pthread_descr; | ||
12331 | |||
12332 | |||
12333 | |||
12334 | |||
12335 | |||
12336 | typedef struct __pthread_attr_s | ||
12337 | { | ||
12338 | int __detachstate; | ||
12339 | int __schedpolicy; | ||
12340 | struct __sched_param __schedparam; | ||
12341 | int __inheritsched; | ||
12342 | int __scope; | ||
12343 | size_t __guardsize; | ||
12344 | int __stackaddr_set; | ||
12345 | void *__stackaddr; | ||
12346 | size_t __stacksize; | ||
12347 | } pthread_attr_t; | ||
12348 | |||
12349 | |||
12350 | |||
12351 | typedef struct | ||
12352 | { | ||
12353 | struct _pthread_fastlock __c_lock; | ||
12354 | _pthread_descr __c_waiting; | ||
12355 | } pthread_cond_t; | ||
12356 | |||
12357 | |||
12358 | |||
12359 | typedef struct | ||
12360 | { | ||
12361 | int __dummy; | ||
12362 | } pthread_condattr_t; | ||
12363 | |||
12364 | |||
12365 | typedef unsigned int pthread_key_t; | ||
12366 | |||
12367 | |||
12368 | |||
12369 | |||
12370 | |||
12371 | typedef struct | ||
12372 | { | ||
12373 | int __m_reserved; | ||
12374 | int __m_count; | ||
12375 | _pthread_descr __m_owner; | ||
12376 | int __m_kind; | ||
12377 | struct _pthread_fastlock __m_lock; | ||
12378 | } pthread_mutex_t; | ||
12379 | |||
12380 | |||
12381 | |||
12382 | typedef struct | ||
12383 | { | ||
12384 | int __mutexkind; | ||
12385 | } pthread_mutexattr_t; | ||
12386 | |||
12387 | |||
12388 | |||
12389 | typedef int pthread_once_t; | ||
12390 | |||
12391 | |||
12392 | # 119 "/usr/include/bits/pthreadtypes.h" 3 | ||
12393 | |||
12394 | |||
12395 | # 138 "/usr/include/bits/pthreadtypes.h" 3 | ||
12396 | |||
12397 | |||
12398 | |||
12399 | |||
12400 | typedef unsigned long int pthread_t; | ||
12401 | |||
12402 | |||
12403 | # 143 "/usr/include/bits/types.h" 2 3 | ||
12404 | |||
12405 | |||
12406 | |||
12407 | |||
12408 | # 36 "/usr/include/stdio.h" 2 3 | ||
12409 | |||
12410 | |||
12411 | |||
12412 | |||
12413 | |||
12414 | |||
12415 | |||
12416 | |||
12417 | |||
12418 | typedef struct _IO_FILE FILE; | ||
12419 | |||
12420 | |||
12421 | |||
12422 | |||
12423 | |||
12424 | |||
12425 | |||
12426 | |||
12427 | |||
12428 | typedef struct _IO_FILE __FILE; | ||
12429 | |||
12430 | |||
12431 | |||
12432 | |||
12433 | |||
12434 | |||
12435 | |||
12436 | |||
12437 | |||
12438 | # 1 "/usr/include/libio.h" 1 3 | ||
12439 | |||
12440 | |||
12441 | |||
12442 | |||
12443 | |||
12444 | |||
12445 | |||
12446 | |||
12447 | |||
12448 | |||
12449 | |||
12450 | |||
12451 | |||
12452 | |||
12453 | |||
12454 | |||
12455 | |||
12456 | |||
12457 | |||
12458 | |||
12459 | |||
12460 | |||
12461 | |||
12462 | |||
12463 | |||
12464 | |||
12465 | |||
12466 | |||
12467 | |||
12468 | |||
12469 | |||
12470 | # 1 "/usr/include/_G_config.h" 1 3 | ||
12471 | |||
12472 | |||
12473 | |||
12474 | |||
12475 | |||
12476 | |||
12477 | |||
12478 | |||
12479 | |||
12480 | |||
12481 | |||
12482 | |||
12483 | |||
12484 | # 1 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 1 3 | ||
12485 | |||
12486 | |||
12487 | |||
12488 | |||
12489 | |||
12490 | |||
12491 | |||
12492 | |||
12493 | |||
12494 | # 19 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
12495 | |||
12496 | |||
12497 | |||
12498 | |||
12499 | |||
12500 | |||
12501 | |||
12502 | |||
12503 | |||
12504 | |||
12505 | |||
12506 | |||
12507 | |||
12508 | |||
12509 | |||
12510 | # 61 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
12511 | |||
12512 | |||
12513 | |||
12514 | |||
12515 | |||
12516 | |||
12517 | |||
12518 | |||
12519 | |||
12520 | |||
12521 | |||
12522 | |||
12523 | |||
12524 | |||
12525 | |||
12526 | |||
12527 | |||
12528 | |||
12529 | |||
12530 | |||
12531 | |||
12532 | |||
12533 | |||
12534 | |||
12535 | |||
12536 | |||
12537 | |||
12538 | |||
12539 | |||
12540 | |||
12541 | |||
12542 | |||
12543 | |||
12544 | |||
12545 | |||
12546 | |||
12547 | |||
12548 | # 131 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
12549 | |||
12550 | |||
12551 | |||
12552 | |||
12553 | |||
12554 | |||
12555 | |||
12556 | # 188 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
12557 | |||
12558 | |||
12559 | |||
12560 | |||
12561 | |||
12562 | |||
12563 | |||
12564 | |||
12565 | |||
12566 | |||
12567 | |||
12568 | |||
12569 | |||
12570 | |||
12571 | |||
12572 | |||
12573 | |||
12574 | |||
12575 | |||
12576 | |||
12577 | |||
12578 | |||
12579 | |||
12580 | |||
12581 | |||
12582 | |||
12583 | |||
12584 | |||
12585 | |||
12586 | |||
12587 | |||
12588 | |||
12589 | |||
12590 | |||
12591 | |||
12592 | |||
12593 | |||
12594 | |||
12595 | |||
12596 | |||
12597 | |||
12598 | |||
12599 | |||
12600 | |||
12601 | |||
12602 | |||
12603 | |||
12604 | |||
12605 | |||
12606 | |||
12607 | |||
12608 | |||
12609 | |||
12610 | |||
12611 | |||
12612 | |||
12613 | |||
12614 | |||
12615 | |||
12616 | |||
12617 | |||
12618 | |||
12619 | |||
12620 | |||
12621 | |||
12622 | |||
12623 | |||
12624 | |||
12625 | |||
12626 | |||
12627 | |||
12628 | |||
12629 | |||
12630 | |||
12631 | |||
12632 | |||
12633 | |||
12634 | |||
12635 | |||
12636 | |||
12637 | |||
12638 | |||
12639 | |||
12640 | |||
12641 | |||
12642 | |||
12643 | |||
12644 | |||
12645 | |||
12646 | |||
12647 | |||
12648 | |||
12649 | typedef unsigned int wint_t; | ||
12650 | |||
12651 | |||
12652 | |||
12653 | |||
12654 | |||
12655 | |||
12656 | |||
12657 | |||
12658 | # 317 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
12659 | |||
12660 | |||
12661 | |||
12662 | |||
12663 | |||
12664 | |||
12665 | |||
12666 | |||
12667 | |||
12668 | |||
12669 | |||
12670 | |||
12671 | |||
12672 | |||
12673 | |||
12674 | |||
12675 | |||
12676 | |||
12677 | |||
12678 | |||
12679 | |||
12680 | |||
12681 | |||
12682 | |||
12683 | |||
12684 | |||
12685 | # 14 "/usr/include/_G_config.h" 2 3 | ||
12686 | |||
12687 | |||
12688 | |||
12689 | |||
12690 | |||
12691 | |||
12692 | |||
12693 | |||
12694 | |||
12695 | |||
12696 | # 1 "/usr/include/wchar.h" 1 3 | ||
12697 | |||
12698 | |||
12699 | |||
12700 | |||
12701 | |||
12702 | |||
12703 | |||
12704 | |||
12705 | |||
12706 | |||
12707 | |||
12708 | |||
12709 | |||
12710 | |||
12711 | |||
12712 | |||
12713 | |||
12714 | |||
12715 | |||
12716 | |||
12717 | |||
12718 | |||
12719 | |||
12720 | |||
12721 | |||
12722 | |||
12723 | |||
12724 | |||
12725 | |||
12726 | |||
12727 | # 46 "/usr/include/wchar.h" 3 | ||
12728 | |||
12729 | |||
12730 | # 1 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 1 3 | ||
12731 | |||
12732 | |||
12733 | |||
12734 | |||
12735 | |||
12736 | |||
12737 | |||
12738 | |||
12739 | |||
12740 | # 19 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
12741 | |||
12742 | |||
12743 | |||
12744 | |||
12745 | |||
12746 | |||
12747 | |||
12748 | |||
12749 | |||
12750 | |||
12751 | |||
12752 | |||
12753 | |||
12754 | |||
12755 | |||
12756 | # 61 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
12757 | |||
12758 | |||
12759 | |||
12760 | |||
12761 | |||
12762 | |||
12763 | |||
12764 | |||
12765 | |||
12766 | |||
12767 | |||
12768 | |||
12769 | |||
12770 | |||
12771 | |||
12772 | |||
12773 | |||
12774 | |||
12775 | |||
12776 | |||
12777 | |||
12778 | |||
12779 | |||
12780 | |||
12781 | |||
12782 | |||
12783 | |||
12784 | |||
12785 | |||
12786 | |||
12787 | |||
12788 | |||
12789 | |||
12790 | |||
12791 | |||
12792 | |||
12793 | |||
12794 | # 131 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
12795 | |||
12796 | |||
12797 | |||
12798 | |||
12799 | |||
12800 | |||
12801 | # 190 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
12802 | |||
12803 | |||
12804 | |||
12805 | |||
12806 | |||
12807 | |||
12808 | |||
12809 | |||
12810 | |||
12811 | |||
12812 | # 271 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
12813 | |||
12814 | |||
12815 | |||
12816 | |||
12817 | |||
12818 | |||
12819 | |||
12820 | |||
12821 | |||
12822 | |||
12823 | |||
12824 | |||
12825 | |||
12826 | |||
12827 | |||
12828 | |||
12829 | |||
12830 | |||
12831 | # 317 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
12832 | |||
12833 | |||
12834 | |||
12835 | |||
12836 | |||
12837 | |||
12838 | |||
12839 | |||
12840 | |||
12841 | |||
12842 | |||
12843 | |||
12844 | |||
12845 | |||
12846 | |||
12847 | |||
12848 | |||
12849 | |||
12850 | |||
12851 | |||
12852 | |||
12853 | |||
12854 | |||
12855 | |||
12856 | |||
12857 | |||
12858 | # 48 "/usr/include/wchar.h" 2 3 | ||
12859 | |||
12860 | |||
12861 | # 1 "/usr/include/bits/wchar.h" 1 3 | ||
12862 | |||
12863 | |||
12864 | |||
12865 | |||
12866 | |||
12867 | |||
12868 | |||
12869 | |||
12870 | |||
12871 | |||
12872 | |||
12873 | |||
12874 | |||
12875 | |||
12876 | |||
12877 | |||
12878 | |||
12879 | |||
12880 | |||
12881 | |||
12882 | |||
12883 | |||
12884 | |||
12885 | |||
12886 | |||
12887 | |||
12888 | # 50 "/usr/include/wchar.h" 2 3 | ||
12889 | |||
12890 | |||
12891 | |||
12892 | |||
12893 | |||
12894 | |||
12895 | |||
12896 | |||
12897 | |||
12898 | |||
12899 | |||
12900 | |||
12901 | |||
12902 | |||
12903 | |||
12904 | |||
12905 | |||
12906 | typedef struct | ||
12907 | { | ||
12908 | int __count; | ||
12909 | union | ||
12910 | { | ||
12911 | wint_t __wch; | ||
12912 | char __wchb[4]; | ||
12913 | } __value; | ||
12914 | } __mbstate_t; | ||
12915 | |||
12916 | |||
12917 | |||
12918 | |||
12919 | |||
12920 | |||
12921 | # 682 "/usr/include/wchar.h" 3 | ||
12922 | |||
12923 | |||
12924 | |||
12925 | # 24 "/usr/include/_G_config.h" 2 3 | ||
12926 | |||
12927 | |||
12928 | typedef struct | ||
12929 | { | ||
12930 | __off_t __pos; | ||
12931 | __mbstate_t __state; | ||
12932 | } _G_fpos_t; | ||
12933 | typedef struct | ||
12934 | { | ||
12935 | __off64_t __pos; | ||
12936 | __mbstate_t __state; | ||
12937 | } _G_fpos64_t; | ||
12938 | |||
12939 | |||
12940 | |||
12941 | |||
12942 | |||
12943 | |||
12944 | |||
12945 | |||
12946 | # 1 "/usr/include/gconv.h" 1 3 | ||
12947 | |||
12948 | |||
12949 | |||
12950 | |||
12951 | |||
12952 | |||
12953 | |||
12954 | |||
12955 | |||
12956 | |||
12957 | |||
12958 | |||
12959 | |||
12960 | |||
12961 | |||
12962 | |||
12963 | |||
12964 | |||
12965 | |||
12966 | |||
12967 | |||
12968 | |||
12969 | |||
12970 | |||
12971 | |||
12972 | |||
12973 | |||
12974 | # 1 "/usr/include/wchar.h" 1 3 | ||
12975 | |||
12976 | |||
12977 | |||
12978 | |||
12979 | |||
12980 | |||
12981 | |||
12982 | |||
12983 | |||
12984 | |||
12985 | |||
12986 | |||
12987 | |||
12988 | |||
12989 | |||
12990 | |||
12991 | |||
12992 | |||
12993 | |||
12994 | |||
12995 | |||
12996 | |||
12997 | |||
12998 | |||
12999 | |||
13000 | |||
13001 | |||
13002 | |||
13003 | |||
13004 | |||
13005 | # 46 "/usr/include/wchar.h" 3 | ||
13006 | |||
13007 | |||
13008 | # 1 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 1 3 | ||
13009 | |||
13010 | |||
13011 | |||
13012 | |||
13013 | |||
13014 | |||
13015 | |||
13016 | |||
13017 | |||
13018 | # 19 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
13019 | |||
13020 | |||
13021 | |||
13022 | |||
13023 | |||
13024 | |||
13025 | |||
13026 | |||
13027 | |||
13028 | |||
13029 | |||
13030 | |||
13031 | |||
13032 | |||
13033 | |||
13034 | # 61 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
13035 | |||
13036 | |||
13037 | |||
13038 | |||
13039 | |||
13040 | |||
13041 | |||
13042 | |||
13043 | |||
13044 | |||
13045 | |||
13046 | |||
13047 | |||
13048 | |||
13049 | |||
13050 | |||
13051 | |||
13052 | |||
13053 | |||
13054 | |||
13055 | |||
13056 | |||
13057 | |||
13058 | |||
13059 | |||
13060 | |||
13061 | |||
13062 | |||
13063 | |||
13064 | |||
13065 | |||
13066 | |||
13067 | |||
13068 | |||
13069 | |||
13070 | |||
13071 | |||
13072 | # 131 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
13073 | |||
13074 | |||
13075 | |||
13076 | |||
13077 | |||
13078 | |||
13079 | # 190 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
13080 | |||
13081 | |||
13082 | |||
13083 | |||
13084 | |||
13085 | |||
13086 | |||
13087 | |||
13088 | |||
13089 | |||
13090 | # 271 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
13091 | |||
13092 | |||
13093 | |||
13094 | |||
13095 | |||
13096 | |||
13097 | |||
13098 | |||
13099 | |||
13100 | |||
13101 | |||
13102 | |||
13103 | |||
13104 | |||
13105 | |||
13106 | |||
13107 | |||
13108 | |||
13109 | # 317 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
13110 | |||
13111 | |||
13112 | |||
13113 | |||
13114 | |||
13115 | |||
13116 | |||
13117 | |||
13118 | |||
13119 | |||
13120 | |||
13121 | |||
13122 | |||
13123 | |||
13124 | |||
13125 | |||
13126 | |||
13127 | |||
13128 | |||
13129 | |||
13130 | |||
13131 | |||
13132 | |||
13133 | |||
13134 | |||
13135 | |||
13136 | # 48 "/usr/include/wchar.h" 2 3 | ||
13137 | |||
13138 | |||
13139 | |||
13140 | |||
13141 | |||
13142 | |||
13143 | |||
13144 | |||
13145 | |||
13146 | |||
13147 | |||
13148 | |||
13149 | |||
13150 | |||
13151 | |||
13152 | |||
13153 | # 76 "/usr/include/wchar.h" 3 | ||
13154 | |||
13155 | |||
13156 | |||
13157 | |||
13158 | |||
13159 | |||
13160 | # 682 "/usr/include/wchar.h" 3 | ||
13161 | |||
13162 | |||
13163 | |||
13164 | # 28 "/usr/include/gconv.h" 2 3 | ||
13165 | |||
13166 | |||
13167 | |||
13168 | # 1 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 1 3 | ||
13169 | |||
13170 | |||
13171 | |||
13172 | |||
13173 | |||
13174 | |||
13175 | |||
13176 | |||
13177 | |||
13178 | # 19 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
13179 | |||
13180 | |||
13181 | |||
13182 | |||
13183 | |||
13184 | |||
13185 | |||
13186 | |||
13187 | |||
13188 | |||
13189 | |||
13190 | |||
13191 | |||
13192 | |||
13193 | |||
13194 | # 61 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
13195 | |||
13196 | |||
13197 | |||
13198 | |||
13199 | |||
13200 | |||
13201 | |||
13202 | |||
13203 | |||
13204 | |||
13205 | |||
13206 | |||
13207 | |||
13208 | |||
13209 | |||
13210 | |||
13211 | |||
13212 | |||
13213 | |||
13214 | |||
13215 | |||
13216 | |||
13217 | |||
13218 | |||
13219 | |||
13220 | |||
13221 | |||
13222 | |||
13223 | |||
13224 | |||
13225 | |||
13226 | |||
13227 | |||
13228 | |||
13229 | |||
13230 | |||
13231 | |||
13232 | # 131 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
13233 | |||
13234 | |||
13235 | |||
13236 | |||
13237 | |||
13238 | |||
13239 | |||
13240 | # 188 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
13241 | |||
13242 | |||
13243 | |||
13244 | |||
13245 | |||
13246 | |||
13247 | |||
13248 | |||
13249 | |||
13250 | |||
13251 | |||
13252 | |||
13253 | |||
13254 | # 269 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
13255 | |||
13256 | |||
13257 | |||
13258 | |||
13259 | # 283 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
13260 | |||
13261 | |||
13262 | |||
13263 | |||
13264 | |||
13265 | |||
13266 | # 317 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
13267 | |||
13268 | |||
13269 | |||
13270 | |||
13271 | |||
13272 | |||
13273 | |||
13274 | |||
13275 | |||
13276 | |||
13277 | |||
13278 | |||
13279 | |||
13280 | |||
13281 | |||
13282 | |||
13283 | |||
13284 | |||
13285 | |||
13286 | |||
13287 | |||
13288 | |||
13289 | |||
13290 | |||
13291 | |||
13292 | |||
13293 | # 31 "/usr/include/gconv.h" 2 3 | ||
13294 | |||
13295 | |||
13296 | |||
13297 | |||
13298 | |||
13299 | |||
13300 | enum | ||
13301 | { | ||
13302 | __GCONV_OK = 0, | ||
13303 | __GCONV_NOCONV, | ||
13304 | __GCONV_NODB, | ||
13305 | __GCONV_NOMEM, | ||
13306 | |||
13307 | __GCONV_EMPTY_INPUT, | ||
13308 | __GCONV_FULL_OUTPUT, | ||
13309 | __GCONV_ILLEGAL_INPUT, | ||
13310 | __GCONV_INCOMPLETE_INPUT, | ||
13311 | |||
13312 | __GCONV_ILLEGAL_DESCRIPTOR, | ||
13313 | __GCONV_INTERNAL_ERROR | ||
13314 | }; | ||
13315 | |||
13316 | |||
13317 | |||
13318 | enum | ||
13319 | { | ||
13320 | __GCONV_IS_LAST = 0x0001, | ||
13321 | __GCONV_IGNORE_ERRORS = 0x0002 | ||
13322 | }; | ||
13323 | |||
13324 | |||
13325 | |||
13326 | struct __gconv_step; | ||
13327 | struct __gconv_step_data; | ||
13328 | struct __gconv_loaded_object; | ||
13329 | struct __gconv_trans_data; | ||
13330 | |||
13331 | |||
13332 | |||
13333 | typedef int (*__gconv_fct) (struct __gconv_step *, struct __gconv_step_data *, | ||
13334 | __const unsigned char **, __const unsigned char *, | ||
13335 | unsigned char **, size_t *, int, int); | ||
13336 | |||
13337 | |||
13338 | typedef int (*__gconv_init_fct) (struct __gconv_step *); | ||
13339 | typedef void (*__gconv_end_fct) (struct __gconv_step *); | ||
13340 | |||
13341 | |||
13342 | |||
13343 | typedef int (*__gconv_trans_fct) (struct __gconv_step *, | ||
13344 | struct __gconv_step_data *, void *, | ||
13345 | __const unsigned char *, | ||
13346 | __const unsigned char **, | ||
13347 | __const unsigned char *, unsigned char **, | ||
13348 | size_t *); | ||
13349 | |||
13350 | |||
13351 | typedef int (*__gconv_trans_context_fct) (void *, __const unsigned char *, | ||
13352 | __const unsigned char *, | ||
13353 | unsigned char *, unsigned char *); | ||
13354 | |||
13355 | |||
13356 | typedef int (*__gconv_trans_query_fct) (__const char *, __const char ***, | ||
13357 | size_t *); | ||
13358 | |||
13359 | |||
13360 | typedef int (*__gconv_trans_init_fct) (void **, const char *); | ||
13361 | typedef void (*__gconv_trans_end_fct) (void *); | ||
13362 | |||
13363 | struct __gconv_trans_data | ||
13364 | { | ||
13365 | |||
13366 | __gconv_trans_fct __trans_fct; | ||
13367 | __gconv_trans_context_fct __trans_context_fct; | ||
13368 | __gconv_trans_end_fct __trans_end_fct; | ||
13369 | void *__data; | ||
13370 | struct __gconv_trans_data *__next; | ||
13371 | }; | ||
13372 | |||
13373 | |||
13374 | |||
13375 | struct __gconv_step | ||
13376 | { | ||
13377 | struct __gconv_loaded_object *__shlib_handle; | ||
13378 | __const char *__modname; | ||
13379 | |||
13380 | int __counter; | ||
13381 | |||
13382 | char *__from_name; | ||
13383 | char *__to_name; | ||
13384 | |||
13385 | __gconv_fct __fct; | ||
13386 | __gconv_init_fct __init_fct; | ||
13387 | __gconv_end_fct __end_fct; | ||
13388 | |||
13389 | |||
13390 | |||
13391 | int __min_needed_from; | ||
13392 | int __max_needed_from; | ||
13393 | int __min_needed_to; | ||
13394 | int __max_needed_to; | ||
13395 | |||
13396 | |||
13397 | int __stateful; | ||
13398 | |||
13399 | void *__data; | ||
13400 | }; | ||
13401 | |||
13402 | |||
13403 | |||
13404 | struct __gconv_step_data | ||
13405 | { | ||
13406 | unsigned char *__outbuf; | ||
13407 | unsigned char *__outbufend; | ||
13408 | |||
13409 | |||
13410 | |||
13411 | int __flags; | ||
13412 | |||
13413 | |||
13414 | |||
13415 | int __invocation_counter; | ||
13416 | |||
13417 | |||
13418 | |||
13419 | int __internal_use; | ||
13420 | |||
13421 | __mbstate_t *__statep; | ||
13422 | __mbstate_t __state; | ||
13423 | |||
13424 | |||
13425 | |||
13426 | struct __gconv_trans_data *__trans; | ||
13427 | }; | ||
13428 | |||
13429 | |||
13430 | |||
13431 | typedef struct __gconv_info | ||
13432 | { | ||
13433 | size_t __nsteps; | ||
13434 | struct __gconv_step *__steps; | ||
13435 | __extension__ struct __gconv_step_data __data [0] ; | ||
13436 | } *__gconv_t; | ||
13437 | |||
13438 | |||
13439 | # 44 "/usr/include/_G_config.h" 2 3 | ||
13440 | |||
13441 | typedef union | ||
13442 | { | ||
13443 | struct __gconv_info __cd; | ||
13444 | struct | ||
13445 | { | ||
13446 | struct __gconv_info __cd; | ||
13447 | struct __gconv_step_data __data; | ||
13448 | } __combined; | ||
13449 | } _G_iconv_t; | ||
13450 | |||
13451 | typedef int _G_int16_t __attribute__ ((__mode__ (__HI__))); | ||
13452 | typedef int _G_int32_t __attribute__ ((__mode__ (__SI__))); | ||
13453 | typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__))); | ||
13454 | typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__))); | ||
13455 | |||
13456 | |||
13457 | |||
13458 | |||
13459 | |||
13460 | |||
13461 | |||
13462 | |||
13463 | |||
13464 | |||
13465 | |||
13466 | |||
13467 | |||
13468 | |||
13469 | |||
13470 | |||
13471 | |||
13472 | |||
13473 | |||
13474 | |||
13475 | |||
13476 | |||
13477 | |||
13478 | |||
13479 | |||
13480 | |||
13481 | |||
13482 | |||
13483 | |||
13484 | |||
13485 | |||
13486 | |||
13487 | |||
13488 | |||
13489 | |||
13490 | |||
13491 | |||
13492 | |||
13493 | |||
13494 | |||
13495 | |||
13496 | |||
13497 | |||
13498 | # 32 "/usr/include/libio.h" 2 3 | ||
13499 | |||
13500 | |||
13501 | |||
13502 | |||
13503 | |||
13504 | |||
13505 | |||
13506 | |||
13507 | |||
13508 | |||
13509 | |||
13510 | |||
13511 | |||
13512 | |||
13513 | |||
13514 | |||
13515 | |||
13516 | |||
13517 | |||
13518 | |||
13519 | |||
13520 | # 1 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stdarg.h" 1 3 | ||
13521 | |||
13522 | |||
13523 | |||
13524 | |||
13525 | |||
13526 | |||
13527 | |||
13528 | |||
13529 | |||
13530 | |||
13531 | |||
13532 | |||
13533 | |||
13534 | |||
13535 | |||
13536 | |||
13537 | |||
13538 | |||
13539 | |||
13540 | |||
13541 | |||
13542 | |||
13543 | |||
13544 | |||
13545 | |||
13546 | |||
13547 | |||
13548 | |||
13549 | |||
13550 | |||
13551 | |||
13552 | |||
13553 | |||
13554 | |||
13555 | |||
13556 | |||
13557 | |||
13558 | |||
13559 | |||
13560 | |||
13561 | |||
13562 | |||
13563 | |||
13564 | |||
13565 | |||
13566 | |||
13567 | |||
13568 | |||
13569 | |||
13570 | |||
13571 | |||
13572 | |||
13573 | |||
13574 | |||
13575 | |||
13576 | |||
13577 | |||
13578 | |||
13579 | |||
13580 | |||
13581 | |||
13582 | |||
13583 | |||
13584 | |||
13585 | |||
13586 | |||
13587 | |||
13588 | |||
13589 | |||
13590 | |||
13591 | |||
13592 | |||
13593 | typedef void *__gnuc_va_list; | ||
13594 | |||
13595 | |||
13596 | |||
13597 | |||
13598 | |||
13599 | # 122 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stdarg.h" 3 | ||
13600 | |||
13601 | |||
13602 | |||
13603 | |||
13604 | |||
13605 | |||
13606 | |||
13607 | |||
13608 | |||
13609 | |||
13610 | |||
13611 | |||
13612 | |||
13613 | |||
13614 | |||
13615 | |||
13616 | |||
13617 | |||
13618 | |||
13619 | |||
13620 | # 209 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stdarg.h" 3 | ||
13621 | |||
13622 | |||
13623 | |||
13624 | |||
13625 | # 53 "/usr/include/libio.h" 2 3 | ||
13626 | |||
13627 | |||
13628 | |||
13629 | |||
13630 | |||
13631 | |||
13632 | |||
13633 | # 72 "/usr/include/libio.h" 3 | ||
13634 | |||
13635 | |||
13636 | |||
13637 | |||
13638 | |||
13639 | |||
13640 | |||
13641 | |||
13642 | |||
13643 | |||
13644 | |||
13645 | |||
13646 | |||
13647 | |||
13648 | |||
13649 | |||
13650 | |||
13651 | |||
13652 | |||
13653 | |||
13654 | # 103 "/usr/include/libio.h" 3 | ||
13655 | |||
13656 | |||
13657 | |||
13658 | |||
13659 | |||
13660 | |||
13661 | |||
13662 | |||
13663 | |||
13664 | |||
13665 | |||
13666 | |||
13667 | |||
13668 | |||
13669 | |||
13670 | |||
13671 | |||
13672 | |||
13673 | |||
13674 | |||
13675 | |||
13676 | |||
13677 | |||
13678 | |||
13679 | |||
13680 | |||
13681 | |||
13682 | |||
13683 | |||
13684 | |||
13685 | |||
13686 | |||
13687 | |||
13688 | |||
13689 | |||
13690 | |||
13691 | |||
13692 | |||
13693 | |||
13694 | |||
13695 | |||
13696 | |||
13697 | |||
13698 | |||
13699 | |||
13700 | |||
13701 | |||
13702 | |||
13703 | |||
13704 | |||
13705 | |||
13706 | |||
13707 | |||
13708 | |||
13709 | |||
13710 | |||
13711 | |||
13712 | struct _IO_jump_t; struct _IO_FILE; | ||
13713 | |||
13714 | |||
13715 | |||
13716 | |||
13717 | |||
13718 | |||
13719 | |||
13720 | |||
13721 | |||
13722 | typedef void _IO_lock_t; | ||
13723 | |||
13724 | |||
13725 | |||
13726 | |||
13727 | |||
13728 | struct _IO_marker { | ||
13729 | struct _IO_marker *_next; | ||
13730 | struct _IO_FILE *_sbuf; | ||
13731 | |||
13732 | |||
13733 | |||
13734 | int _pos; | ||
13735 | # 192 "/usr/include/libio.h" 3 | ||
13736 | |||
13737 | }; | ||
13738 | |||
13739 | |||
13740 | enum __codecvt_result | ||
13741 | { | ||
13742 | __codecvt_ok, | ||
13743 | __codecvt_partial, | ||
13744 | __codecvt_error, | ||
13745 | __codecvt_noconv | ||
13746 | }; | ||
13747 | |||
13748 | # 259 "/usr/include/libio.h" 3 | ||
13749 | |||
13750 | |||
13751 | struct _IO_FILE { | ||
13752 | int _flags; | ||
13753 | |||
13754 | |||
13755 | |||
13756 | |||
13757 | char* _IO_read_ptr; | ||
13758 | char* _IO_read_end; | ||
13759 | char* _IO_read_base; | ||
13760 | char* _IO_write_base; | ||
13761 | char* _IO_write_ptr; | ||
13762 | char* _IO_write_end; | ||
13763 | char* _IO_buf_base; | ||
13764 | char* _IO_buf_end; | ||
13765 | |||
13766 | char *_IO_save_base; | ||
13767 | char *_IO_backup_base; | ||
13768 | char *_IO_save_end; | ||
13769 | |||
13770 | struct _IO_marker *_markers; | ||
13771 | |||
13772 | struct _IO_FILE *_chain; | ||
13773 | |||
13774 | int _fileno; | ||
13775 | int _blksize; | ||
13776 | __off_t _old_offset; | ||
13777 | |||
13778 | |||
13779 | |||
13780 | unsigned short _cur_column; | ||
13781 | signed char _vtable_offset; | ||
13782 | char _shortbuf[1]; | ||
13783 | |||
13784 | |||
13785 | |||
13786 | _IO_lock_t *_lock; | ||
13787 | |||
13788 | |||
13789 | |||
13790 | |||
13791 | |||
13792 | |||
13793 | |||
13794 | |||
13795 | __off64_t _offset; | ||
13796 | |||
13797 | |||
13798 | |||
13799 | |||
13800 | |||
13801 | void *__pad1; | ||
13802 | void *__pad2; | ||
13803 | |||
13804 | int _mode; | ||
13805 | |||
13806 | char _unused2[15 * sizeof (int) - 2 * sizeof (void *)]; | ||
13807 | |||
13808 | }; | ||
13809 | |||
13810 | |||
13811 | |||
13812 | |||
13813 | |||
13814 | struct _IO_FILE_plus; | ||
13815 | |||
13816 | extern struct _IO_FILE_plus _IO_2_1_stdin_; | ||
13817 | extern struct _IO_FILE_plus _IO_2_1_stdout_; | ||
13818 | extern struct _IO_FILE_plus _IO_2_1_stderr_; | ||
13819 | |||
13820 | |||
13821 | |||
13822 | |||
13823 | |||
13824 | |||
13825 | |||
13826 | |||
13827 | |||
13828 | |||
13829 | |||
13830 | |||
13831 | |||
13832 | |||
13833 | |||
13834 | typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes); | ||
13835 | |||
13836 | |||
13837 | |||
13838 | |||
13839 | |||
13840 | |||
13841 | |||
13842 | typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf, | ||
13843 | size_t __n); | ||
13844 | |||
13845 | |||
13846 | |||
13847 | |||
13848 | |||
13849 | |||
13850 | |||
13851 | typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w); | ||
13852 | |||
13853 | |||
13854 | typedef int __io_close_fn (void *__cookie); | ||
13855 | |||
13856 | |||
13857 | # 389 "/usr/include/libio.h" 3 | ||
13858 | |||
13859 | |||
13860 | |||
13861 | |||
13862 | extern "C" { | ||
13863 | |||
13864 | |||
13865 | extern int __underflow (_IO_FILE *) throw () ; | ||
13866 | extern int __uflow (_IO_FILE *) throw () ; | ||
13867 | extern int __overflow (_IO_FILE *, int) throw () ; | ||
13868 | extern wint_t __wunderflow (_IO_FILE *) throw () ; | ||
13869 | extern wint_t __wuflow (_IO_FILE *) throw () ; | ||
13870 | extern wint_t __woverflow (_IO_FILE *, wint_t ) throw () ; | ||
13871 | |||
13872 | |||
13873 | |||
13874 | |||
13875 | |||
13876 | |||
13877 | |||
13878 | |||
13879 | |||
13880 | |||
13881 | |||
13882 | |||
13883 | |||
13884 | |||
13885 | |||
13886 | |||
13887 | |||
13888 | |||
13889 | |||
13890 | |||
13891 | |||
13892 | |||
13893 | |||
13894 | |||
13895 | extern int _IO_getc (_IO_FILE *__fp) throw () ; | ||
13896 | extern int _IO_putc (int __c, _IO_FILE *__fp) throw () ; | ||
13897 | extern int _IO_feof (_IO_FILE *__fp) throw () ; | ||
13898 | extern int _IO_ferror (_IO_FILE *__fp) throw () ; | ||
13899 | |||
13900 | extern int _IO_peekc_locked (_IO_FILE *__fp) throw () ; | ||
13901 | |||
13902 | |||
13903 | |||
13904 | |||
13905 | |||
13906 | extern void _IO_flockfile (_IO_FILE *) throw () ; | ||
13907 | extern void _IO_funlockfile (_IO_FILE *) throw () ; | ||
13908 | extern int _IO_ftrylockfile (_IO_FILE *) throw () ; | ||
13909 | |||
13910 | |||
13911 | |||
13912 | |||
13913 | |||
13914 | |||
13915 | |||
13916 | |||
13917 | |||
13918 | |||
13919 | |||
13920 | |||
13921 | |||
13922 | |||
13923 | |||
13924 | |||
13925 | extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict, | ||
13926 | __gnuc_va_list , int *__restrict) throw () ; | ||
13927 | extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict, | ||
13928 | __gnuc_va_list ) throw () ; | ||
13929 | extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t ) throw () ; | ||
13930 | extern size_t _IO_sgetn (_IO_FILE *, void *, size_t ) throw () ; | ||
13931 | |||
13932 | extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t , int, int) throw () ; | ||
13933 | extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t , int) throw () ; | ||
13934 | |||
13935 | extern void _IO_free_backup_area (_IO_FILE *) throw () ; | ||
13936 | |||
13937 | # 511 "/usr/include/libio.h" 3 | ||
13938 | |||
13939 | |||
13940 | |||
13941 | } | ||
13942 | |||
13943 | |||
13944 | |||
13945 | # 65 "/usr/include/stdio.h" 2 3 | ||
13946 | |||
13947 | |||
13948 | # 76 "/usr/include/stdio.h" 3 | ||
13949 | |||
13950 | |||
13951 | |||
13952 | |||
13953 | typedef _G_fpos_t fpos_t; | ||
13954 | |||
13955 | |||
13956 | |||
13957 | |||
13958 | |||
13959 | |||
13960 | |||
13961 | |||
13962 | |||
13963 | |||
13964 | |||
13965 | |||
13966 | |||
13967 | |||
13968 | |||
13969 | |||
13970 | |||
13971 | |||
13972 | |||
13973 | |||
13974 | |||
13975 | |||
13976 | |||
13977 | |||
13978 | |||
13979 | |||
13980 | |||
13981 | |||
13982 | |||
13983 | |||
13984 | |||
13985 | |||
13986 | |||
13987 | |||
13988 | |||
13989 | |||
13990 | |||
13991 | |||
13992 | |||
13993 | |||
13994 | |||
13995 | |||
13996 | |||
13997 | |||
13998 | |||
13999 | |||
14000 | |||
14001 | |||
14002 | # 1 "/usr/include/bits/stdio_lim.h" 1 3 | ||
14003 | |||
14004 | |||
14005 | |||
14006 | |||
14007 | |||
14008 | |||
14009 | |||
14010 | |||
14011 | |||
14012 | |||
14013 | |||
14014 | |||
14015 | |||
14016 | |||
14017 | |||
14018 | |||
14019 | |||
14020 | |||
14021 | |||
14022 | |||
14023 | |||
14024 | |||
14025 | |||
14026 | |||
14027 | |||
14028 | |||
14029 | |||
14030 | |||
14031 | |||
14032 | |||
14033 | |||
14034 | |||
14035 | |||
14036 | |||
14037 | |||
14038 | |||
14039 | |||
14040 | |||
14041 | |||
14042 | |||
14043 | |||
14044 | # 129 "/usr/include/stdio.h" 2 3 | ||
14045 | |||
14046 | |||
14047 | |||
14048 | |||
14049 | extern FILE *stdin; | ||
14050 | extern FILE *stdout; | ||
14051 | extern FILE *stderr; | ||
14052 | |||
14053 | |||
14054 | |||
14055 | |||
14056 | |||
14057 | |||
14058 | extern int remove (__const char *__filename) throw () ; | ||
14059 | |||
14060 | extern int rename (__const char *__old, __const char *__new) throw () ; | ||
14061 | |||
14062 | |||
14063 | |||
14064 | |||
14065 | extern FILE *tmpfile (void) throw () ; | ||
14066 | |||
14067 | |||
14068 | |||
14069 | |||
14070 | |||
14071 | |||
14072 | |||
14073 | |||
14074 | |||
14075 | |||
14076 | |||
14077 | extern char *tmpnam (char *__s) throw () ; | ||
14078 | |||
14079 | |||
14080 | |||
14081 | |||
14082 | extern char *tmpnam_r (char *__s) throw () ; | ||
14083 | |||
14084 | |||
14085 | |||
14086 | |||
14087 | |||
14088 | |||
14089 | |||
14090 | |||
14091 | |||
14092 | |||
14093 | |||
14094 | extern char *tempnam (__const char *__dir, __const char *__pfx) | ||
14095 | throw () ; | ||
14096 | |||
14097 | |||
14098 | |||
14099 | |||
14100 | extern int fclose (FILE *__stream) throw () ; | ||
14101 | |||
14102 | extern int fflush (FILE *__stream) throw () ; | ||
14103 | |||
14104 | |||
14105 | |||
14106 | extern int fflush_unlocked (FILE *__stream) throw () ; | ||
14107 | |||
14108 | |||
14109 | |||
14110 | |||
14111 | |||
14112 | |||
14113 | |||
14114 | |||
14115 | |||
14116 | |||
14117 | extern FILE *fopen (__const char *__restrict __filename, | ||
14118 | __const char *__restrict __modes) throw () ; | ||
14119 | |||
14120 | extern FILE *freopen (__const char *__restrict __filename, | ||
14121 | __const char *__restrict __modes, | ||
14122 | FILE *__restrict __stream) throw () ; | ||
14123 | # 220 "/usr/include/stdio.h" 3 | ||
14124 | |||
14125 | |||
14126 | |||
14127 | |||
14128 | |||
14129 | |||
14130 | |||
14131 | |||
14132 | |||
14133 | |||
14134 | |||
14135 | extern FILE *fdopen (int __fd, __const char *__modes) throw () ; | ||
14136 | |||
14137 | |||
14138 | # 249 "/usr/include/stdio.h" 3 | ||
14139 | |||
14140 | |||
14141 | |||
14142 | |||
14143 | |||
14144 | extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) throw () ; | ||
14145 | |||
14146 | |||
14147 | |||
14148 | extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, | ||
14149 | int __modes, size_t __n) throw () ; | ||
14150 | |||
14151 | |||
14152 | |||
14153 | |||
14154 | extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, | ||
14155 | size_t __size) throw () ; | ||
14156 | |||
14157 | |||
14158 | extern void setlinebuf (FILE *__stream) throw () ; | ||
14159 | |||
14160 | |||
14161 | |||
14162 | |||
14163 | extern int fprintf (FILE *__restrict __stream, | ||
14164 | __const char *__restrict __format, ...) throw () ; | ||
14165 | |||
14166 | extern int printf (__const char *__restrict __format, ...) throw () ; | ||
14167 | |||
14168 | extern int sprintf (char *__restrict __s, | ||
14169 | __const char *__restrict __format, ...) throw () ; | ||
14170 | |||
14171 | |||
14172 | extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format, | ||
14173 | __gnuc_va_list __arg) throw () ; | ||
14174 | |||
14175 | extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg) | ||
14176 | throw () ; | ||
14177 | |||
14178 | extern int vsprintf (char *__restrict __s, __const char *__restrict __format, | ||
14179 | __gnuc_va_list __arg) throw () ; | ||
14180 | |||
14181 | |||
14182 | |||
14183 | extern int snprintf (char *__restrict __s, size_t __maxlen, | ||
14184 | __const char *__restrict __format, ...) | ||
14185 | throw () __attribute__ ((__format__ (__printf__, 3, 4))); | ||
14186 | |||
14187 | extern int vsnprintf (char *__restrict __s, size_t __maxlen, | ||
14188 | __const char *__restrict __format, __gnuc_va_list __arg) | ||
14189 | throw () __attribute__ ((__format__ (__printf__, 3, 0))); | ||
14190 | |||
14191 | |||
14192 | # 321 "/usr/include/stdio.h" 3 | ||
14193 | |||
14194 | |||
14195 | |||
14196 | |||
14197 | extern int fscanf (FILE *__restrict __stream, | ||
14198 | __const char *__restrict __format, ...) throw () ; | ||
14199 | |||
14200 | extern int scanf (__const char *__restrict __format, ...) throw () ; | ||
14201 | |||
14202 | extern int sscanf (__const char *__restrict __s, | ||
14203 | __const char *__restrict __format, ...) throw () ; | ||
14204 | |||
14205 | # 347 "/usr/include/stdio.h" 3 | ||
14206 | |||
14207 | |||
14208 | |||
14209 | |||
14210 | extern int fgetc (FILE *__stream) throw () ; | ||
14211 | extern int getc (FILE *__stream) throw () ; | ||
14212 | |||
14213 | |||
14214 | extern int getchar (void) throw () ; | ||
14215 | |||
14216 | |||
14217 | |||
14218 | |||
14219 | |||
14220 | |||
14221 | |||
14222 | extern int getc_unlocked (FILE *__stream) throw () ; | ||
14223 | extern int getchar_unlocked (void) throw () ; | ||
14224 | |||
14225 | |||
14226 | |||
14227 | |||
14228 | extern int fgetc_unlocked (FILE *__stream) throw () ; | ||
14229 | |||
14230 | |||
14231 | |||
14232 | |||
14233 | extern int fputc (int __c, FILE *__stream) throw () ; | ||
14234 | extern int putc (int __c, FILE *__stream) throw () ; | ||
14235 | |||
14236 | |||
14237 | extern int putchar (int __c) throw () ; | ||
14238 | |||
14239 | |||
14240 | |||
14241 | |||
14242 | |||
14243 | |||
14244 | |||
14245 | extern int fputc_unlocked (int __c, FILE *__stream) throw () ; | ||
14246 | |||
14247 | |||
14248 | |||
14249 | |||
14250 | extern int putc_unlocked (int __c, FILE *__stream) throw () ; | ||
14251 | extern int putchar_unlocked (int __c) throw () ; | ||
14252 | |||
14253 | |||
14254 | |||
14255 | |||
14256 | |||
14257 | extern int getw (FILE *__stream) throw () ; | ||
14258 | |||
14259 | |||
14260 | extern int putw (int __w, FILE *__stream) throw () ; | ||
14261 | |||
14262 | |||
14263 | |||
14264 | |||
14265 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) | ||
14266 | throw () ; | ||
14267 | |||
14268 | |||
14269 | |||
14270 | |||
14271 | |||
14272 | |||
14273 | |||
14274 | |||
14275 | |||
14276 | extern char *gets (char *__s) throw () ; | ||
14277 | |||
14278 | |||
14279 | # 437 "/usr/include/stdio.h" 3 | ||
14280 | |||
14281 | |||
14282 | |||
14283 | |||
14284 | extern int fputs (__const char *__restrict __s, FILE *__restrict __stream) | ||
14285 | throw () ; | ||
14286 | |||
14287 | |||
14288 | |||
14289 | |||
14290 | |||
14291 | |||
14292 | |||
14293 | |||
14294 | extern int puts (__const char *__s) throw () ; | ||
14295 | |||
14296 | |||
14297 | |||
14298 | extern int ungetc (int __c, FILE *__stream) throw () ; | ||
14299 | |||
14300 | |||
14301 | |||
14302 | extern size_t fread (void *__restrict __ptr, size_t __size, | ||
14303 | size_t __n, FILE *__restrict __stream) throw () ; | ||
14304 | |||
14305 | extern size_t fwrite (__const void *__restrict __ptr, size_t __size, | ||
14306 | size_t __n, FILE *__restrict __s) throw () ; | ||
14307 | |||
14308 | |||
14309 | |||
14310 | extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, | ||
14311 | size_t __n, FILE *__restrict __stream) throw () ; | ||
14312 | extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size, | ||
14313 | size_t __n, FILE *__restrict __stream) throw () ; | ||
14314 | |||
14315 | |||
14316 | |||
14317 | |||
14318 | extern int fseek (FILE *__stream, long int __off, int __whence) throw () ; | ||
14319 | |||
14320 | extern long int ftell (FILE *__stream) throw () ; | ||
14321 | |||
14322 | extern void rewind (FILE *__stream) throw () ; | ||
14323 | |||
14324 | |||
14325 | |||
14326 | |||
14327 | |||
14328 | |||
14329 | |||
14330 | |||
14331 | |||
14332 | |||
14333 | |||
14334 | |||
14335 | |||
14336 | |||
14337 | |||
14338 | extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos) | ||
14339 | throw () ; | ||
14340 | |||
14341 | extern int fsetpos (FILE *__stream, __const fpos_t *__pos) throw () ; | ||
14342 | # 520 "/usr/include/stdio.h" 3 | ||
14343 | |||
14344 | |||
14345 | |||
14346 | |||
14347 | |||
14348 | |||
14349 | |||
14350 | |||
14351 | |||
14352 | |||
14353 | |||
14354 | extern void clearerr (FILE *__stream) throw () ; | ||
14355 | |||
14356 | extern int feof (FILE *__stream) throw () ; | ||
14357 | |||
14358 | extern int ferror (FILE *__stream) throw () ; | ||
14359 | |||
14360 | |||
14361 | |||
14362 | extern void clearerr_unlocked (FILE *__stream) throw () ; | ||
14363 | extern int feof_unlocked (FILE *__stream) throw () ; | ||
14364 | extern int ferror_unlocked (FILE *__stream) throw () ; | ||
14365 | |||
14366 | |||
14367 | |||
14368 | |||
14369 | extern void perror (__const char *__s) throw () ; | ||
14370 | |||
14371 | |||
14372 | |||
14373 | |||
14374 | extern int sys_nerr; | ||
14375 | extern __const char *__const sys_errlist[]; | ||
14376 | |||
14377 | |||
14378 | |||
14379 | |||
14380 | |||
14381 | |||
14382 | |||
14383 | |||
14384 | |||
14385 | extern int fileno (FILE *__stream) throw () ; | ||
14386 | |||
14387 | |||
14388 | |||
14389 | |||
14390 | extern int fileno_unlocked (FILE *__stream) throw () ; | ||
14391 | |||
14392 | |||
14393 | |||
14394 | |||
14395 | |||
14396 | |||
14397 | extern FILE *popen (__const char *__command, __const char *__modes) throw () ; | ||
14398 | |||
14399 | |||
14400 | extern int pclose (FILE *__stream) throw () ; | ||
14401 | |||
14402 | |||
14403 | |||
14404 | |||
14405 | |||
14406 | extern char *ctermid (char *__s) throw () ; | ||
14407 | |||
14408 | |||
14409 | |||
14410 | |||
14411 | |||
14412 | |||
14413 | |||
14414 | |||
14415 | |||
14416 | # 602 "/usr/include/stdio.h" 3 | ||
14417 | |||
14418 | |||
14419 | |||
14420 | |||
14421 | |||
14422 | |||
14423 | |||
14424 | extern void flockfile (FILE *__stream) throw () ; | ||
14425 | |||
14426 | |||
14427 | |||
14428 | extern int ftrylockfile (FILE *__stream) throw () ; | ||
14429 | |||
14430 | |||
14431 | extern void funlockfile (FILE *__stream) throw () ; | ||
14432 | |||
14433 | |||
14434 | |||
14435 | |||
14436 | |||
14437 | |||
14438 | |||
14439 | |||
14440 | |||
14441 | |||
14442 | |||
14443 | |||
14444 | |||
14445 | |||
14446 | |||
14447 | |||
14448 | } | ||
14449 | |||
14450 | |||
14451 | |||
14452 | |||
14453 | # 44 "/opt/Qtopia/include/qfile.h" 2 | ||
14454 | |||
14455 | |||
14456 | |||
14457 | class QDir; | ||
14458 | |||
14459 | |||
14460 | class QFile : public QIODevice | ||
14461 | { | ||
14462 | public: | ||
14463 | QFile(); | ||
14464 | QFile( const QString &name ); | ||
14465 | ~QFile(); | ||
14466 | |||
14467 | QString name()const; | ||
14468 | voidsetName( const QString &name ); | ||
14469 | |||
14470 | typedef QCString (*EncoderFn)( const QString &fileName ); | ||
14471 | typedef QString (*DecoderFn)( const QCString &localfileName ); | ||
14472 | static QCString encodeName( const QString &fileName ); | ||
14473 | static QString decodeName( const QCString &localFileName ); | ||
14474 | static void setEncodingFunction( EncoderFn ); | ||
14475 | static void setDecodingFunction( DecoderFn ); | ||
14476 | |||
14477 | boolexists() const; | ||
14478 | static bool exists( const QString &fileName ); | ||
14479 | |||
14480 | boolremove(); | ||
14481 | static bool remove( const QString &fileName ); | ||
14482 | |||
14483 | boolopen( int ); | ||
14484 | boolopen( int, FILE * ); | ||
14485 | boolopen( int, int ); | ||
14486 | voidclose(); | ||
14487 | voidflush(); | ||
14488 | |||
14489 | uint size()const; | ||
14490 | int at()const; | ||
14491 | boolat( int ); | ||
14492 | boolatEnd() const; | ||
14493 | |||
14494 | int readBlock( char *data, uint len ); | ||
14495 | int writeBlock( const char *data, uint len ); | ||
14496 | int writeBlock( const QByteArray& data ) | ||
14497 | { return QIODevice::writeBlock(data); } | ||
14498 | int readLine( char *data, uint maxlen ); | ||
14499 | int readLine( QString &, uint maxlen ); | ||
14500 | |||
14501 | int getch(); | ||
14502 | int putch( int ); | ||
14503 | int ungetch( int ); | ||
14504 | |||
14505 | int handle() const; | ||
14506 | |||
14507 | protected: | ||
14508 | QStringfn; | ||
14509 | FILE *fh; | ||
14510 | int fd; | ||
14511 | int length; | ||
14512 | boolext_f; | ||
14513 | void * d; | ||
14514 | |||
14515 | private: | ||
14516 | voidinit(); | ||
14517 | QCString ungetchBuffer; | ||
14518 | |||
14519 | private: | ||
14520 | |||
14521 | QFile( const QFile & ); | ||
14522 | QFile &operator=( const QFile & ); | ||
14523 | |||
14524 | }; | ||
14525 | |||
14526 | |||
14527 | inline QString QFile::name() const | ||
14528 | { return fn; } | ||
14529 | |||
14530 | inline int QFile::at() const | ||
14531 | { return ioIndex; } | ||
14532 | |||
14533 | |||
14534 | |||
14535 | # 26 "/opt/Qtopia/include/qpe/datebookdb.h" 2 | ||
14536 | |||
14537 | |||
14538 | # 1 "/opt/Qtopia/include/qpe/event.h" 1 | ||
14539 | |||
14540 | |||
14541 | |||
14542 | |||
14543 | |||
14544 | |||
14545 | |||
14546 | |||
14547 | |||
14548 | |||
14549 | |||
14550 | |||
14551 | |||
14552 | |||
14553 | |||
14554 | |||
14555 | |||
14556 | |||
14557 | |||
14558 | |||
14559 | |||
14560 | |||
14561 | |||
14562 | |||
14563 | |||
14564 | |||
14565 | |||
14566 | |||
14567 | |||
14568 | |||
14569 | # 1 "/opt/Qtopia/include/qpe/palmtoprecord.h" 1 | ||
14570 | |||
14571 | |||
14572 | |||
14573 | |||
14574 | |||
14575 | |||
14576 | |||
14577 | |||
14578 | |||
14579 | |||
14580 | |||
14581 | |||
14582 | |||
14583 | |||
14584 | |||
14585 | |||
14586 | |||
14587 | |||
14588 | |||
14589 | |||
14590 | |||
14591 | |||
14592 | |||
14593 | |||
14594 | |||
14595 | # 1 "/opt/Qtopia/include/qpe/qpcglobal.h" 1 | ||
14596 | |||
14597 | |||
14598 | |||
14599 | |||
14600 | |||
14601 | |||
14602 | |||
14603 | |||
14604 | |||
14605 | |||
14606 | |||
14607 | |||
14608 | |||
14609 | |||
14610 | |||
14611 | |||
14612 | |||
14613 | |||
14614 | |||
14615 | |||
14616 | |||
14617 | |||
14618 | |||
14619 | |||
14620 | # 42 "/opt/Qtopia/include/qpe/qpcglobal.h" | ||
14621 | |||
14622 | |||
14623 | |||
14624 | |||
14625 | |||
14626 | |||
14627 | |||
14628 | |||
14629 | |||
14630 | # 26 "/opt/Qtopia/include/qpe/palmtoprecord.h" 2 | ||
14631 | |||
14632 | # 1 "/opt/Qtopia/include/qpe/palmtopuidgen.h" 1 | ||
14633 | |||
14634 | |||
14635 | |||
14636 | |||
14637 | |||
14638 | |||
14639 | |||
14640 | |||
14641 | |||
14642 | |||
14643 | |||
14644 | |||
14645 | |||
14646 | |||
14647 | |||
14648 | |||
14649 | |||
14650 | |||
14651 | |||
14652 | |||
14653 | |||
14654 | |||
14655 | |||
14656 | |||
14657 | |||
14658 | |||
14659 | |||
14660 | |||
14661 | |||
14662 | |||
14663 | |||
14664 | |||
14665 | |||
14666 | |||
14667 | |||
14668 | |||
14669 | |||
14670 | |||
14671 | |||
14672 | |||
14673 | |||
14674 | |||
14675 | # 1 "/usr/include/time.h" 1 3 | ||
14676 | |||
14677 | |||
14678 | |||
14679 | |||
14680 | |||
14681 | |||
14682 | |||
14683 | |||
14684 | |||
14685 | |||
14686 | |||
14687 | |||
14688 | |||
14689 | |||
14690 | |||
14691 | |||
14692 | |||
14693 | |||
14694 | |||
14695 | |||
14696 | |||
14697 | |||
14698 | |||
14699 | |||
14700 | |||
14701 | |||
14702 | |||
14703 | |||
14704 | |||
14705 | extern "C" { | ||
14706 | |||
14707 | |||
14708 | |||
14709 | |||
14710 | |||
14711 | |||
14712 | |||
14713 | # 1 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 1 3 | ||
14714 | |||
14715 | |||
14716 | |||
14717 | |||
14718 | |||
14719 | |||
14720 | |||
14721 | |||
14722 | |||
14723 | # 19 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
14724 | |||
14725 | |||
14726 | |||
14727 | |||
14728 | |||
14729 | |||
14730 | |||
14731 | |||
14732 | |||
14733 | |||
14734 | |||
14735 | |||
14736 | |||
14737 | |||
14738 | |||
14739 | # 61 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
14740 | |||
14741 | |||
14742 | |||
14743 | |||
14744 | |||
14745 | |||
14746 | |||
14747 | |||
14748 | |||
14749 | |||
14750 | |||
14751 | |||
14752 | |||
14753 | |||
14754 | |||
14755 | |||
14756 | |||
14757 | |||
14758 | |||
14759 | |||
14760 | |||
14761 | |||
14762 | |||
14763 | |||
14764 | |||
14765 | |||
14766 | |||
14767 | |||
14768 | |||
14769 | |||
14770 | |||
14771 | |||
14772 | |||
14773 | |||
14774 | |||
14775 | |||
14776 | |||
14777 | # 131 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
14778 | |||
14779 | |||
14780 | |||
14781 | |||
14782 | |||
14783 | |||
14784 | |||
14785 | # 188 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
14786 | |||
14787 | |||
14788 | |||
14789 | |||
14790 | |||
14791 | |||
14792 | |||
14793 | |||
14794 | |||
14795 | |||
14796 | |||
14797 | |||
14798 | # 271 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
14799 | |||
14800 | |||
14801 | # 283 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
14802 | |||
14803 | |||
14804 | |||
14805 | |||
14806 | |||
14807 | |||
14808 | # 317 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
14809 | |||
14810 | |||
14811 | |||
14812 | |||
14813 | |||
14814 | |||
14815 | |||
14816 | |||
14817 | |||
14818 | |||
14819 | |||
14820 | |||
14821 | |||
14822 | |||
14823 | |||
14824 | |||
14825 | |||
14826 | |||
14827 | |||
14828 | |||
14829 | |||
14830 | |||
14831 | |||
14832 | |||
14833 | |||
14834 | |||
14835 | # 38 "/usr/include/time.h" 2 3 | ||
14836 | |||
14837 | |||
14838 | |||
14839 | |||
14840 | # 1 "/usr/include/bits/time.h" 1 3 | ||
14841 | |||
14842 | |||
14843 | |||
14844 | |||
14845 | |||
14846 | |||
14847 | |||
14848 | |||
14849 | |||
14850 | |||
14851 | |||
14852 | |||
14853 | |||
14854 | |||
14855 | |||
14856 | |||
14857 | |||
14858 | |||
14859 | |||
14860 | |||
14861 | |||
14862 | |||
14863 | |||
14864 | |||
14865 | |||
14866 | |||
14867 | |||
14868 | |||
14869 | |||
14870 | |||
14871 | |||
14872 | |||
14873 | |||
14874 | |||
14875 | |||
14876 | |||
14877 | |||
14878 | |||
14879 | |||
14880 | extern long int __sysconf (int); | ||
14881 | |||
14882 | |||
14883 | |||
14884 | |||
14885 | |||
14886 | |||
14887 | |||
14888 | |||
14889 | |||
14890 | |||
14891 | |||
14892 | |||
14893 | |||
14894 | |||
14895 | |||
14896 | |||
14897 | |||
14898 | |||
14899 | # 73 "/usr/include/bits/time.h" 3 | ||
14900 | |||
14901 | # 42 "/usr/include/time.h" 2 3 | ||
14902 | |||
14903 | |||
14904 | |||
14905 | |||
14906 | |||
14907 | |||
14908 | |||
14909 | |||
14910 | |||
14911 | |||
14912 | |||
14913 | |||
14914 | |||
14915 | |||
14916 | |||
14917 | |||
14918 | |||
14919 | typedef __clock_t clock_t; | ||
14920 | |||
14921 | |||
14922 | |||
14923 | |||
14924 | |||
14925 | |||
14926 | |||
14927 | |||
14928 | |||
14929 | |||
14930 | typedef __time_t time_t; | ||
14931 | |||
14932 | |||
14933 | |||
14934 | |||
14935 | |||
14936 | |||
14937 | |||
14938 | |||
14939 | |||
14940 | |||
14941 | |||
14942 | typedef __clockid_t clockid_t; | ||
14943 | |||
14944 | |||
14945 | |||
14946 | |||
14947 | |||
14948 | |||
14949 | |||
14950 | |||
14951 | |||
14952 | |||
14953 | |||
14954 | typedef __timer_t timer_t; | ||
14955 | |||
14956 | |||
14957 | |||
14958 | |||
14959 | |||
14960 | |||
14961 | |||
14962 | |||
14963 | |||
14964 | |||
14965 | |||
14966 | struct timespec | ||
14967 | { | ||
14968 | __time_t tv_sec; | ||
14969 | long int tv_nsec; | ||
14970 | }; | ||
14971 | |||
14972 | |||
14973 | |||
14974 | |||
14975 | |||
14976 | |||
14977 | |||
14978 | struct tm | ||
14979 | { | ||
14980 | int tm_sec; | ||
14981 | int tm_min; | ||
14982 | int tm_hour; | ||
14983 | int tm_mday; | ||
14984 | int tm_mon; | ||
14985 | int tm_year; | ||
14986 | int tm_wday; | ||
14987 | int tm_yday; | ||
14988 | int tm_isdst; | ||
14989 | |||
14990 | |||
14991 | long int tm_gmtoff; | ||
14992 | __const char *tm_zone; | ||
14993 | |||
14994 | |||
14995 | |||
14996 | |||
14997 | }; | ||
14998 | |||
14999 | |||
15000 | |||
15001 | |||
15002 | struct itimerspec | ||
15003 | { | ||
15004 | struct timespec it_interval; | ||
15005 | struct timespec it_value; | ||
15006 | }; | ||
15007 | |||
15008 | |||
15009 | struct sigevent; | ||
15010 | |||
15011 | |||
15012 | |||
15013 | |||
15014 | |||
15015 | |||
15016 | |||
15017 | |||
15018 | |||
15019 | |||
15020 | |||
15021 | |||
15022 | |||
15023 | extern clock_t clock (void) throw () ; | ||
15024 | |||
15025 | |||
15026 | extern time_t time (time_t *__timer) throw () ; | ||
15027 | |||
15028 | |||
15029 | extern double difftime (time_t __time1, time_t __time0) | ||
15030 | throw () __attribute__ ((__const__)); | ||
15031 | |||
15032 | |||
15033 | extern time_t mktime (struct tm *__tp) throw () ; | ||
15034 | |||
15035 | |||
15036 | |||
15037 | |||
15038 | |||
15039 | extern size_t strftime (char *__restrict __s, size_t __maxsize, | ||
15040 | __const char *__restrict __format, | ||
15041 | __const struct tm *__restrict __tp) throw () ; | ||
15042 | |||
15043 | |||
15044 | |||
15045 | |||
15046 | |||
15047 | |||
15048 | |||
15049 | |||
15050 | |||
15051 | |||
15052 | |||
15053 | |||
15054 | extern struct tm *gmtime (__const time_t *__timer) throw () ; | ||
15055 | |||
15056 | |||
15057 | |||
15058 | extern struct tm *localtime (__const time_t *__timer) throw () ; | ||
15059 | |||
15060 | |||
15061 | |||
15062 | |||
15063 | extern struct tm *gmtime_r (__const time_t *__restrict __timer, | ||
15064 | struct tm *__restrict __tp) throw () ; | ||
15065 | |||
15066 | |||
15067 | |||
15068 | extern struct tm *localtime_r (__const time_t *__restrict __timer, | ||
15069 | struct tm *__restrict __tp) throw () ; | ||
15070 | |||
15071 | |||
15072 | |||
15073 | |||
15074 | extern char *asctime (__const struct tm *__tp) throw () ; | ||
15075 | |||
15076 | |||
15077 | extern char *ctime (__const time_t *__timer) throw () ; | ||
15078 | |||
15079 | |||
15080 | |||
15081 | |||
15082 | |||
15083 | |||
15084 | extern char *asctime_r (__const struct tm *__restrict __tp, | ||
15085 | char *__restrict __buf) throw () ; | ||
15086 | |||
15087 | |||
15088 | extern char *ctime_r (__const time_t *__restrict __timer, | ||
15089 | char *__restrict __buf) throw () ; | ||
15090 | |||
15091 | |||
15092 | |||
15093 | |||
15094 | extern char *__tzname[2]; | ||
15095 | extern int __daylight; | ||
15096 | extern long int __timezone; | ||
15097 | |||
15098 | |||
15099 | |||
15100 | |||
15101 | extern char *tzname[2]; | ||
15102 | |||
15103 | |||
15104 | |||
15105 | extern void tzset (void) throw () ; | ||
15106 | |||
15107 | |||
15108 | |||
15109 | extern int daylight; | ||
15110 | extern long int timezone; | ||
15111 | |||
15112 | |||
15113 | |||
15114 | |||
15115 | |||
15116 | extern int stime (__const time_t *__when) throw () ; | ||
15117 | |||
15118 | |||
15119 | |||
15120 | |||
15121 | |||
15122 | |||
15123 | |||
15124 | |||
15125 | |||
15126 | |||
15127 | |||
15128 | |||
15129 | |||
15130 | |||
15131 | extern time_t timegm (struct tm *__tp) throw () ; | ||
15132 | |||
15133 | |||
15134 | extern time_t timelocal (struct tm *__tp) throw () ; | ||
15135 | |||
15136 | |||
15137 | extern int dysize (int __year) throw () __attribute__ ((__const__)); | ||
15138 | |||
15139 | |||
15140 | |||
15141 | |||
15142 | |||
15143 | extern int nanosleep (__const struct timespec *__requested_time, | ||
15144 | struct timespec *__remaining) throw () ; | ||
15145 | |||
15146 | |||
15147 | |||
15148 | extern int clock_getres (clockid_t __clock_id, struct timespec *__res) throw () ; | ||
15149 | |||
15150 | |||
15151 | extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) throw () ; | ||
15152 | |||
15153 | |||
15154 | extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp) | ||
15155 | throw () ; | ||
15156 | |||
15157 | # 305 "/usr/include/time.h" 3 | ||
15158 | |||
15159 | |||
15160 | |||
15161 | |||
15162 | extern int timer_create (clockid_t __clock_id, | ||
15163 | struct sigevent *__restrict __evp, | ||
15164 | timer_t *__restrict __timerid) throw () ; | ||
15165 | |||
15166 | |||
15167 | extern int timer_delete (timer_t __timerid) throw () ; | ||
15168 | |||
15169 | |||
15170 | extern int timer_settime (timer_t __timerid, int __flags, | ||
15171 | __const struct itimerspec *__restrict __value, | ||
15172 | struct itimerspec *__restrict __ovalue) throw () ; | ||
15173 | |||
15174 | |||
15175 | extern int timer_gettime (timer_t __timerid, struct itimerspec *__value) | ||
15176 | throw () ; | ||
15177 | |||
15178 | |||
15179 | extern int timer_getoverrun (timer_t __timerid) throw () ; | ||
15180 | |||
15181 | |||
15182 | |||
15183 | # 349 "/usr/include/time.h" 3 | ||
15184 | |||
15185 | |||
15186 | # 359 "/usr/include/time.h" 3 | ||
15187 | |||
15188 | |||
15189 | |||
15190 | } | ||
15191 | |||
15192 | |||
15193 | |||
15194 | |||
15195 | # 43 "/opt/Qtopia/include/qpe/palmtopuidgen.h" 2 | ||
15196 | |||
15197 | |||
15198 | # 1 "/opt/Qtopia/include/qpe/qpcglobal.h" 1 | ||
15199 | |||
15200 | |||
15201 | |||
15202 | |||
15203 | |||
15204 | |||
15205 | |||
15206 | |||
15207 | |||
15208 | |||
15209 | |||
15210 | |||
15211 | |||
15212 | |||
15213 | |||
15214 | |||
15215 | |||
15216 | |||
15217 | |||
15218 | |||
15219 | |||
15220 | # 46 "/opt/Qtopia/include/qpe/qpcglobal.h" | ||
15221 | |||
15222 | |||
15223 | |||
15224 | |||
15225 | |||
15226 | # 45 "/opt/Qtopia/include/qpe/palmtopuidgen.h" 2 | ||
15227 | |||
15228 | |||
15229 | |||
15230 | |||
15231 | |||
15232 | |||
15233 | |||
15234 | |||
15235 | namespace Qtopia { | ||
15236 | |||
15237 | |||
15238 | class UidGen | ||
15239 | { | ||
15240 | public: | ||
15241 | enum Type { Qtopia, PalmtopCenter }; | ||
15242 | |||
15243 | UidGen() : type( Qtopia ), sign( -1 ), ids() | ||
15244 | { | ||
15245 | |||
15246 | |||
15247 | |||
15248 | |||
15249 | } | ||
15250 | UidGen( Type t ) : type(t), sign(1), ids() | ||
15251 | { | ||
15252 | if ( t == Qtopia ) | ||
15253 | sign = -1; | ||
15254 | } | ||
15255 | |||
15256 | virtual ~UidGen() { } | ||
15257 | |||
15258 | int generate() const | ||
15259 | { | ||
15260 | int id = sign * (int) ::time(__null ); | ||
15261 | while ( ids.contains( id ) ) { | ||
15262 | id += sign; | ||
15263 | |||
15264 | |||
15265 | |||
15266 | if ( sign == -1 && id > 0 || sign == 1 && id < 0 ) | ||
15267 | id = sign; | ||
15268 | } | ||
15269 | return id; | ||
15270 | } | ||
15271 | |||
15272 | void store(int id) { ids.insert(id, TRUE); } | ||
15273 | bool isUnique(int id) const { return (!ids.contains(id)); } | ||
15274 | |||
15275 | private: | ||
15276 | Type type; | ||
15277 | int sign; | ||
15278 | QMap<int, bool> ids; | ||
15279 | |||
15280 | }; | ||
15281 | |||
15282 | } | ||
15283 | |||
15284 | |||
15285 | # 27 "/opt/Qtopia/include/qpe/palmtoprecord.h" 2 | ||
15286 | |||
15287 | |||
15288 | |||
15289 | |||
15290 | |||
15291 | |||
15292 | |||
15293 | |||
15294 | |||
15295 | |||
15296 | class QRegExp; | ||
15297 | namespace Qtopia { | ||
15298 | |||
15299 | class RecordPrivate; | ||
15300 | class Record | ||
15301 | { | ||
15302 | public: | ||
15303 | Record() : mUid(0), mCats() { } | ||
15304 | Record( const Record &c ) :mUid( c.mUid ), mCats ( c.mCats ), customMap(c.customMap) { } | ||
15305 | virtual ~Record() { } | ||
15306 | |||
15307 | Record &operator=( const Record &c ); | ||
15308 | |||
15309 | virtual bool match( const QRegExp & ) const { return FALSE; } | ||
15310 | |||
15311 | void setCategories( const QArray<int> &v ) { mCats = v; } | ||
15312 | void setCategories( int single ); | ||
15313 | const QArray<int> &categories() const { return mCats; } | ||
15314 | |||
15315 | int uid() const { return mUid; }; | ||
15316 | virtual void setUid( int i ) { mUid = i; uidGen().store( mUid ); } | ||
15317 | bool isValidUid() const { return mUid != 0; } | ||
15318 | void assignUid() { setUid( uidGen().generate() ); } | ||
15319 | |||
15320 | virtual QString customField(const QString &) const; | ||
15321 | virtual void setCustomField(const QString &, const QString &); | ||
15322 | virtual void removeCustomField(const QString &); | ||
15323 | |||
15324 | virtual bool operator == ( const Record &r ) const | ||
15325 | { return mUid == r.mUid; } | ||
15326 | virtual bool operator != ( const Record &r ) const | ||
15327 | { return mUid != r.mUid; } | ||
15328 | |||
15329 | |||
15330 | static QString idsToString( const QArray<int> &ids ); | ||
15331 | |||
15332 | static QArray<int> idsFromString( const QString &str ); | ||
15333 | |||
15334 | |||
15335 | static void dump( const QMap<int, QString> &map ); | ||
15336 | |||
15337 | protected: | ||
15338 | virtual UidGen &uidGen() = 0; | ||
15339 | |||
15340 | virtual QString customToXml() const; | ||
15341 | |||
15342 | private: | ||
15343 | int mUid; | ||
15344 | QArray<int> mCats; | ||
15345 | |||
15346 | QMap<QString, QString> customMap; | ||
15347 | |||
15348 | RecordPrivate *d; | ||
15349 | }; | ||
15350 | |||
15351 | } | ||
15352 | |||
15353 | |||
15354 | # 31 "/opt/Qtopia/include/qpe/event.h" 2 | ||
15355 | |||
15356 | |||
15357 | # 1 "/opt/Qtopia/include/qpe/timeconversion.h" 1 | ||
15358 | |||
15359 | |||
15360 | |||
15361 | |||
15362 | |||
15363 | |||
15364 | |||
15365 | |||
15366 | |||
15367 | |||
15368 | |||
15369 | |||
15370 | |||
15371 | |||
15372 | |||
15373 | |||
15374 | |||
15375 | |||
15376 | |||
15377 | |||
15378 | |||
15379 | |||
15380 | |||
15381 | |||
15382 | |||
15383 | # 1 "/usr/include/sys/types.h" 1 3 | ||
15384 | |||
15385 | |||
15386 | |||
15387 | |||
15388 | |||
15389 | |||
15390 | |||
15391 | |||
15392 | |||
15393 | |||
15394 | |||
15395 | |||
15396 | |||
15397 | |||
15398 | |||
15399 | |||
15400 | |||
15401 | |||
15402 | |||
15403 | |||
15404 | |||
15405 | |||
15406 | |||
15407 | |||
15408 | |||
15409 | |||
15410 | |||
15411 | extern "C" { | ||
15412 | |||
15413 | |||
15414 | |||
15415 | |||
15416 | |||
15417 | typedef __u_char u_char; | ||
15418 | typedef __u_short u_short; | ||
15419 | typedef __u_int u_int; | ||
15420 | typedef __u_long u_long; | ||
15421 | typedef __quad_t quad_t; | ||
15422 | typedef __u_quad_t u_quad_t; | ||
15423 | typedef __fsid_t fsid_t; | ||
15424 | |||
15425 | |||
15426 | |||
15427 | |||
15428 | typedef __loff_t loff_t; | ||
15429 | |||
15430 | |||
15431 | |||
15432 | typedef __ino_t ino_t; | ||
15433 | |||
15434 | |||
15435 | |||
15436 | |||
15437 | |||
15438 | |||
15439 | |||
15440 | |||
15441 | |||
15442 | |||
15443 | |||
15444 | typedef __dev_t dev_t; | ||
15445 | |||
15446 | |||
15447 | |||
15448 | |||
15449 | typedef __gid_t gid_t; | ||
15450 | |||
15451 | |||
15452 | |||
15453 | |||
15454 | typedef __mode_t mode_t; | ||
15455 | |||
15456 | |||
15457 | |||
15458 | |||
15459 | typedef __nlink_t nlink_t; | ||
15460 | |||
15461 | |||
15462 | |||
15463 | |||
15464 | typedef __uid_t uid_t; | ||
15465 | |||
15466 | |||
15467 | |||
15468 | |||
15469 | |||
15470 | typedef __off_t off_t; | ||
15471 | |||
15472 | |||
15473 | |||
15474 | |||
15475 | |||
15476 | |||
15477 | |||
15478 | |||
15479 | |||
15480 | |||
15481 | |||
15482 | typedef __pid_t pid_t; | ||
15483 | |||
15484 | |||
15485 | |||
15486 | |||
15487 | typedef __id_t id_t; | ||
15488 | |||
15489 | |||
15490 | |||
15491 | |||
15492 | typedef __ssize_t ssize_t; | ||
15493 | |||
15494 | |||
15495 | |||
15496 | |||
15497 | |||
15498 | typedef __daddr_t daddr_t; | ||
15499 | typedef __caddr_t caddr_t; | ||
15500 | |||
15501 | |||
15502 | |||
15503 | |||
15504 | |||
15505 | typedef __key_t key_t; | ||
15506 | |||
15507 | |||
15508 | |||
15509 | |||
15510 | |||
15511 | |||
15512 | |||
15513 | |||
15514 | |||
15515 | |||
15516 | |||
15517 | # 143 "/usr/include/sys/types.h" 3 | ||
15518 | |||
15519 | |||
15520 | |||
15521 | # 1 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 1 3 | ||
15522 | |||
15523 | |||
15524 | |||
15525 | |||
15526 | |||
15527 | |||
15528 | |||
15529 | |||
15530 | |||
15531 | # 19 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
15532 | |||
15533 | |||
15534 | |||
15535 | |||
15536 | |||
15537 | |||
15538 | |||
15539 | |||
15540 | |||
15541 | |||
15542 | |||
15543 | |||
15544 | |||
15545 | |||
15546 | |||
15547 | # 61 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
15548 | |||
15549 | |||
15550 | |||
15551 | |||
15552 | |||
15553 | |||
15554 | |||
15555 | |||
15556 | |||
15557 | |||
15558 | |||
15559 | |||
15560 | |||
15561 | |||
15562 | |||
15563 | |||
15564 | |||
15565 | |||
15566 | |||
15567 | |||
15568 | |||
15569 | |||
15570 | |||
15571 | |||
15572 | |||
15573 | |||
15574 | |||
15575 | |||
15576 | |||
15577 | |||
15578 | |||
15579 | |||
15580 | |||
15581 | |||
15582 | |||
15583 | |||
15584 | |||
15585 | # 131 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
15586 | |||
15587 | |||
15588 | |||
15589 | |||
15590 | |||
15591 | |||
15592 | |||
15593 | # 188 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
15594 | |||
15595 | |||
15596 | |||
15597 | |||
15598 | |||
15599 | |||
15600 | |||
15601 | |||
15602 | |||
15603 | |||
15604 | |||
15605 | |||
15606 | # 271 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
15607 | |||
15608 | |||
15609 | # 283 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
15610 | |||
15611 | |||
15612 | |||
15613 | |||
15614 | |||
15615 | |||
15616 | # 317 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 | ||
15617 | |||
15618 | |||
15619 | |||
15620 | |||
15621 | |||
15622 | |||
15623 | |||
15624 | |||
15625 | |||
15626 | |||
15627 | |||
15628 | |||
15629 | |||
15630 | |||
15631 | |||
15632 | |||
15633 | |||
15634 | |||
15635 | |||
15636 | |||
15637 | |||
15638 | |||
15639 | |||
15640 | |||
15641 | |||
15642 | |||
15643 | # 146 "/usr/include/sys/types.h" 2 3 | ||
15644 | |||
15645 | |||
15646 | |||
15647 | |||
15648 | typedef unsigned long int ulong; | ||
15649 | typedef unsigned short int ushort; | ||
15650 | typedef unsigned int uint; | ||
15651 | |||
15652 | |||
15653 | |||
15654 | |||
15655 | # 180 "/usr/include/sys/types.h" 3 | ||
15656 | |||
15657 | |||
15658 | |||
15659 | |||
15660 | |||
15661 | |||
15662 | |||
15663 | |||
15664 | |||
15665 | |||
15666 | typedef int int8_t __attribute__ ((__mode__ ( __QI__ ))) ; | ||
15667 | typedef int int16_t __attribute__ ((__mode__ ( __HI__ ))) ; | ||
15668 | typedef int int32_t __attribute__ ((__mode__ ( __SI__ ))) ; | ||
15669 | typedef int int64_t __attribute__ ((__mode__ ( __DI__ ))) ; | ||
15670 | |||
15671 | |||
15672 | typedef unsigned int u_int8_t __attribute__ ((__mode__ ( __QI__ ))) ; | ||
15673 | typedef unsigned int u_int16_t __attribute__ ((__mode__ ( __HI__ ))) ; | ||
15674 | typedef unsigned int u_int32_t __attribute__ ((__mode__ ( __SI__ ))) ; | ||
15675 | typedef unsigned int u_int64_t __attribute__ ((__mode__ ( __DI__ ))) ; | ||
15676 | |||
15677 | typedef int register_t __attribute__ ((__mode__ (__word__))); | ||
15678 | |||
15679 | |||
15680 | |||
15681 | |||
15682 | |||
15683 | |||
15684 | |||
15685 | |||
15686 | |||
15687 | |||
15688 | # 1 "/usr/include/endian.h" 1 3 | ||
15689 | |||
15690 | |||
15691 | |||
15692 | |||
15693 | |||
15694 | |||
15695 | |||
15696 | |||
15697 | |||
15698 | |||
15699 | |||
15700 | |||
15701 | |||
15702 | |||
15703 | |||
15704 | |||
15705 | |||
15706 | |||
15707 | |||
15708 | |||
15709 | |||
15710 | |||
15711 | |||
15712 | |||
15713 | |||
15714 | |||
15715 | |||
15716 | |||
15717 | |||
15718 | |||
15719 | |||
15720 | |||
15721 | |||
15722 | |||
15723 | |||
15724 | |||
15725 | # 1 "/usr/include/bits/endian.h" 1 3 | ||
15726 | |||
15727 | |||
15728 | |||
15729 | |||
15730 | |||
15731 | |||
15732 | |||
15733 | # 37 "/usr/include/endian.h" 2 3 | ||
15734 | |||
15735 | |||
15736 | |||
15737 | |||
15738 | |||
15739 | |||
15740 | |||
15741 | |||
15742 | |||
15743 | |||
15744 | |||
15745 | |||
15746 | |||
15747 | |||
15748 | |||
15749 | |||
15750 | |||
15751 | |||
15752 | |||
15753 | |||
15754 | |||
15755 | |||
15756 | # 212 "/usr/include/sys/types.h" 2 3 | ||
15757 | |||
15758 | |||
15759 | |||
15760 | # 1 "/usr/include/sys/select.h" 1 3 | ||
15761 | |||
15762 | |||
15763 | |||
15764 | |||
15765 | |||
15766 | |||
15767 | |||
15768 | |||
15769 | |||
15770 | |||
15771 | |||
15772 | |||
15773 | |||
15774 | |||
15775 | |||
15776 | |||
15777 | |||
15778 | |||
15779 | |||
15780 | |||
15781 | |||
15782 | |||
15783 | |||
15784 | |||
15785 | |||
15786 | |||
15787 | |||
15788 | |||
15789 | |||
15790 | |||
15791 | # 1 "/usr/include/bits/select.h" 1 3 | ||
15792 | |||
15793 | |||
15794 | |||
15795 | |||
15796 | |||
15797 | |||
15798 | |||
15799 | |||
15800 | |||
15801 | |||
15802 | |||
15803 | |||
15804 | |||
15805 | |||
15806 | |||
15807 | |||
15808 | |||
15809 | |||
15810 | |||
15811 | |||
15812 | |||
15813 | |||
15814 | |||
15815 | |||
15816 | |||
15817 | |||
15818 | # 36 "/usr/include/bits/select.h" 3 | ||
15819 | |||
15820 | |||
15821 | |||
15822 | |||
15823 | |||
15824 | |||
15825 | |||
15826 | |||
15827 | |||
15828 | |||
15829 | |||
15830 | |||
15831 | # 56 "/usr/include/bits/select.h" 3 | ||
15832 | |||
15833 | # 72 "/usr/include/bits/select.h" 3 | ||
15834 | |||
15835 | # 31 "/usr/include/sys/select.h" 2 3 | ||
15836 | |||
15837 | |||
15838 | |||
15839 | # 1 "/usr/include/bits/sigset.h" 1 3 | ||
15840 | |||
15841 | |||
15842 | |||
15843 | |||
15844 | |||
15845 | |||
15846 | |||
15847 | |||
15848 | |||
15849 | |||
15850 | |||
15851 | |||
15852 | |||
15853 | |||
15854 | |||
15855 | |||
15856 | |||
15857 | |||
15858 | |||
15859 | |||
15860 | |||
15861 | |||
15862 | typedef int __sig_atomic_t; | ||
15863 | |||
15864 | |||
15865 | |||
15866 | |||
15867 | typedef struct | ||
15868 | { | ||
15869 | unsigned long int __val[(1024 / (8 * sizeof (unsigned long int))) ]; | ||
15870 | } __sigset_t; | ||
15871 | |||
15872 | |||
15873 | |||
15874 | |||
15875 | |||
15876 | |||
15877 | |||
15878 | |||
15879 | |||
15880 | |||
15881 | # 125 "/usr/include/bits/sigset.h" 3 | ||
15882 | |||
15883 | # 34 "/usr/include/sys/select.h" 2 3 | ||
15884 | |||
15885 | |||
15886 | |||
15887 | |||
15888 | typedef __sigset_t sigset_t; | ||
15889 | |||
15890 | |||
15891 | |||
15892 | |||
15893 | |||
15894 | |||
15895 | |||
15896 | # 1 "/usr/include/bits/time.h" 1 3 | ||
15897 | |||
15898 | |||
15899 | |||
15900 | |||
15901 | |||
15902 | |||
15903 | |||
15904 | |||
15905 | |||
15906 | |||
15907 | |||
15908 | |||
15909 | |||
15910 | |||
15911 | |||
15912 | |||
15913 | |||
15914 | |||
15915 | |||
15916 | |||
15917 | |||
15918 | |||
15919 | |||
15920 | # 57 "/usr/include/bits/time.h" 3 | ||
15921 | |||
15922 | |||
15923 | |||
15924 | |||
15925 | |||
15926 | |||
15927 | |||
15928 | |||
15929 | |||
15930 | |||
15931 | struct timeval | ||
15932 | { | ||
15933 | __time_t tv_sec; | ||
15934 | __suseconds_t tv_usec; | ||
15935 | }; | ||
15936 | |||
15937 | |||
15938 | # 46 "/usr/include/sys/select.h" 2 3 | ||
15939 | |||
15940 | |||
15941 | |||
15942 | typedef __suseconds_t suseconds_t; | ||
15943 | |||
15944 | |||
15945 | |||
15946 | |||
15947 | |||
15948 | typedef long int __fd_mask; | ||
15949 | |||
15950 | |||
15951 | |||
15952 | |||
15953 | |||
15954 | |||
15955 | |||
15956 | typedef struct | ||
15957 | { | ||
15958 | |||
15959 | |||
15960 | |||
15961 | |||
15962 | |||
15963 | |||
15964 | __fd_mask __fds_bits[1024 / (8 * sizeof (__fd_mask)) ]; | ||
15965 | |||
15966 | |||
15967 | } fd_set; | ||
15968 | |||
15969 | |||
15970 | |||
15971 | |||
15972 | |||
15973 | |||
15974 | typedef __fd_mask fd_mask; | ||
15975 | |||
15976 | |||
15977 | |||
15978 | |||
15979 | |||
15980 | |||
15981 | |||
15982 | |||
15983 | |||
15984 | |||
15985 | |||
15986 | |||
15987 | |||
15988 | extern "C" { | ||
15989 | |||
15990 | |||
15991 | |||
15992 | |||
15993 | |||
15994 | |||
15995 | extern int select (int __nfds, fd_set *__restrict __readfds, | ||
15996 | fd_set *__restrict __writefds, | ||
15997 | fd_set *__restrict __exceptfds, | ||
15998 | struct timeval *__restrict __timeout) throw () ; | ||
15999 | |||
16000 | # 116 "/usr/include/sys/select.h" 3 | ||
16001 | |||
16002 | |||
16003 | } | ||
16004 | |||
16005 | |||
16006 | # 215 "/usr/include/sys/types.h" 2 3 | ||
16007 | |||
16008 | |||
16009 | |||
16010 | # 1 "/usr/include/sys/sysmacros.h" 1 3 | ||
16011 | |||
16012 | |||
16013 | |||
16014 | |||
16015 | |||
16016 | |||
16017 | |||
16018 | |||
16019 | |||
16020 | |||
16021 | |||
16022 | |||
16023 | |||
16024 | |||
16025 | |||
16026 | |||
16027 | |||
16028 | |||
16029 | |||
16030 | |||
16031 | |||
16032 | |||
16033 | |||
16034 | |||
16035 | |||
16036 | |||
16037 | |||
16038 | |||
16039 | |||
16040 | |||
16041 | |||
16042 | # 47 "/usr/include/sys/sysmacros.h" 3 | ||
16043 | |||
16044 | |||
16045 | |||
16046 | # 218 "/usr/include/sys/types.h" 2 3 | ||
16047 | |||
16048 | |||
16049 | |||
16050 | |||
16051 | |||
16052 | |||
16053 | |||
16054 | |||
16055 | |||
16056 | |||
16057 | |||
16058 | |||
16059 | typedef __blkcnt_t blkcnt_t; | ||
16060 | |||
16061 | |||
16062 | |||
16063 | typedef __fsblkcnt_t fsblkcnt_t; | ||
16064 | |||
16065 | |||
16066 | |||
16067 | typedef __fsfilcnt_t fsfilcnt_t; | ||
16068 | |||
16069 | |||
16070 | # 254 "/usr/include/sys/types.h" 3 | ||
16071 | |||
16072 | |||
16073 | |||
16074 | |||
16075 | |||
16076 | |||
16077 | |||
16078 | |||
16079 | } | ||
16080 | |||
16081 | |||
16082 | # 26 "/opt/Qtopia/include/qpe/timeconversion.h" 2 | ||
16083 | |||
16084 | |||
16085 | |||
16086 | # 1 "/opt/Qtopia/include/qpe/qpcglobal.h" 1 | ||
16087 | |||
16088 | |||
16089 | |||
16090 | |||
16091 | |||
16092 | |||
16093 | |||
16094 | |||
16095 | |||
16096 | |||
16097 | |||
16098 | |||
16099 | |||
16100 | |||
16101 | |||
16102 | |||
16103 | |||
16104 | |||
16105 | |||
16106 | |||
16107 | |||
16108 | # 46 "/opt/Qtopia/include/qpe/qpcglobal.h" | ||
16109 | |||
16110 | |||
16111 | |||
16112 | |||
16113 | |||
16114 | # 29 "/opt/Qtopia/include/qpe/timeconversion.h" 2 | ||
16115 | |||
16116 | |||
16117 | class TimeConversion | ||
16118 | { | ||
16119 | public: | ||
16120 | static QString toString( const QDate &d ); | ||
16121 | static QDate fromString( const QString &datestr ); | ||
16122 | |||
16123 | static time_t toUTC( const QDateTime& dt ); | ||
16124 | static QDateTime fromUTC( time_t time ); | ||
16125 | static int secsTo( const QDateTime &from, const QDateTime &to ); | ||
16126 | |||
16127 | static QCString toISO8601( const QDate & ); | ||
16128 | static QCString toISO8601( const QDateTime & ); | ||
16129 | static QDateTime fromISO8601( const QCString & ); | ||
16130 | }; | ||
16131 | |||
16132 | |||
16133 | # 33 "/opt/Qtopia/include/qpe/event.h" 2 | ||
16134 | |||
16135 | |||
16136 | class EventPrivate; | ||
16137 | class Event : public Qtopia::Record | ||
16138 | { | ||
16139 | public: | ||
16140 | enum RepeatType { NoRepeat = -1, Daily, Weekly, MonthlyDay, | ||
16141 | MonthlyDate, Yearly }; | ||
16142 | enum Days { MON = 0x01, TUE = 0x02, WED = 0x04, THU = 0x08, | ||
16143 | FRI = 0x10, SAT = 0x20, SUN = 0x40 }; | ||
16144 | struct RepeatPattern | ||
16145 | { | ||
16146 | RepeatPattern() { | ||
16147 | type = NoRepeat; frequency = -1; days = 0; position = 0; createTime = -1; | ||
16148 | hasEndDate = FALSE; endDateUTC = 0; } | ||
16149 | bool operator ==( const RepeatPattern &right ) const; | ||
16150 | |||
16151 | RepeatType type; | ||
16152 | int frequency; | ||
16153 | int position; | ||
16154 | char days; | ||
16155 | bool hasEndDate; | ||
16156 | QDate endDate() const { return TimeConversion::fromUTC( endDateUTC ).date(); } | ||
16157 | void setEndDate( const QDate &dt ) { endDateUTC = TimeConversion::toUTC( dt ); } | ||
16158 | time_t endDateUTC; | ||
16159 | time_t createTime; | ||
16160 | }; | ||
16161 | |||
16162 | Event(); | ||
16163 | Event( const QMap<int, QString > & map ); | ||
16164 | virtual ~Event(); | ||
16165 | |||
16166 | QMap<int, QString> toMap() const; | ||
16167 | |||
16168 | static void writeVCalendar( const QString &filename, const QValueList<Event> &events); | ||
16169 | static void writeVCalendar( const QString &filename, const Event &event); | ||
16170 | static QValueList<Event> readVCalendar( const QString &filename ); | ||
16171 | |||
16172 | enum Type { Normal, AllDay }; | ||
16173 | enum SoundTypeChoice { Silent, Loud }; | ||
16174 | |||
16175 | bool operator<( const Event &e1) const { return start() < e1.start(); }; | ||
16176 | bool operator<=( const Event &e1 ) const { return start() <= e1.start(); }; | ||
16177 | bool operator!=( const Event &e1 ) const { return !( *this == e1 ); }; | ||
16178 | bool operator>( const Event &e1 ) const { return start() > e1.start(); }; | ||
16179 | bool operator>=(const Event &e1 ) const { return start() >= e1.start(); }; | ||
16180 | bool operator==( const Event &e ) const; | ||
16181 | |||
16182 | void setDescription( const QString &s ); | ||
16183 | const QString &description() const; | ||
16184 | |||
16185 | void setLocation( const QString &s ); | ||
16186 | const QString &location() const; | ||
16187 | |||
16188 | void setType( Type t ); | ||
16189 | Type type() const; | ||
16190 | void setStart( const QDateTime &d ); | ||
16191 | void setStart( time_t time ); | ||
16192 | QDateTime start( bool actual = FALSE ) const; | ||
16193 | time_t startTime() const { return startUTC; } | ||
16194 | void setEnd( const QDateTime &e ); | ||
16195 | void setEnd( time_t time ); | ||
16196 | QDateTime end( bool actual = FALSE ) const; | ||
16197 | time_t endTime() const { return endUTC; } | ||
16198 | void setTimeZone( const QString & ); | ||
16199 | const QString &timeZone() const; | ||
16200 | void setAlarm( bool b, int minutes, SoundTypeChoice ); | ||
16201 | bool hasAlarm() const; | ||
16202 | int alarmTime() const; | ||
16203 | SoundTypeChoice alarmSound() const; | ||
16204 | void setRepeat( bool b, const RepeatPattern &p ); | ||
16205 | void setRepeat( const RepeatPattern &p ); | ||
16206 | bool hasRepeat() const; | ||
16207 | const RepeatPattern &repeatPattern() const; | ||
16208 | RepeatPattern &repeatPattern(); | ||
16209 | void setNotes( const QString &n ); | ||
16210 | const QString ¬es() const; | ||
16211 | bool doRepeat() const { return pattern.type != NoRepeat; } | ||
16212 | |||
16213 | void save( QString& buf ); | ||
16214 | |||
16215 | |||
16216 | |||
16217 | static int week( const QDate& date ); | ||
16218 | |||
16219 | |||
16220 | static int occurrence( const QDate& date ); | ||
16221 | |||
16222 | static char day( int dayOfWeek ) { return 1 << ( dayOfWeek - 1 ); } | ||
16223 | |||
16224 | |||
16225 | static int dayOfWeek( char day ); | ||
16226 | |||
16227 | static int monthDiff( const QDate& first, const QDate& second ); | ||
16228 | bool match( const QRegExp &r ) const; | ||
16229 | |||
16230 | private: | ||
16231 | Qtopia::UidGen &uidGen() { return sUidGen; } | ||
16232 | static Qtopia::UidGen sUidGen; | ||
16233 | |||
16234 | QString descript, locat, categ; | ||
16235 | Type typ : 4; | ||
16236 | bool startTimeDirty : 1; | ||
16237 | bool endTimeDirty : 1; | ||
16238 | time_t startUTC, endUTC; | ||
16239 | QString tz; | ||
16240 | bool hAlarm, hRepeat; | ||
16241 | int aMinutes; | ||
16242 | SoundTypeChoice aSound; | ||
16243 | RepeatPattern pattern; | ||
16244 | QString note; | ||
16245 | EventPrivate *d; | ||
16246 | }; | ||
16247 | |||
16248 | |||
16249 | |||
16250 | |||
16251 | |||
16252 | class EffectiveEventPrivate; | ||
16253 | class EffectiveEvent | ||
16254 | { | ||
16255 | public: | ||
16256 | |||
16257 | |||
16258 | |||
16259 | |||
16260 | |||
16261 | |||
16262 | |||
16263 | |||
16264 | |||
16265 | |||
16266 | enum Position { MidWay = 0, Start = 1, End = 2, StartEnd = 3 }; | ||
16267 | |||
16268 | EffectiveEvent(); | ||
16269 | EffectiveEvent( const Event &event, const QDate &startDate, Position pos = StartEnd ); | ||
16270 | EffectiveEvent( const EffectiveEvent & ); | ||
16271 | EffectiveEvent& operator=( const EffectiveEvent & ); | ||
16272 | ~EffectiveEvent(); | ||
16273 | |||
16274 | |||
16275 | bool operator<( const EffectiveEvent &e ) const; | ||
16276 | bool operator<=( const EffectiveEvent &e ) const; | ||
16277 | bool operator==( const EffectiveEvent &e ) const; | ||
16278 | bool operator!=( const EffectiveEvent &e ) const; | ||
16279 | bool operator>( const EffectiveEvent &e ) const; | ||
16280 | bool operator>= ( const EffectiveEvent &e ) const; | ||
16281 | |||
16282 | void setStart( const QTime &start ); | ||
16283 | void setEnd( const QTime &end ); | ||
16284 | void setEvent( Event e ); | ||
16285 | void setDate( const QDate &date ); | ||
16286 | void setEffectiveDates( const QDate &from, const QDate &to ); | ||
16287 | |||
16288 | |||
16289 | const QString &description() const; | ||
16290 | const QString &location() const; | ||
16291 | const QString ¬es() const; | ||
16292 | const Event &event() const; | ||
16293 | const QTime &start() const; | ||
16294 | const QTime &end() const; | ||
16295 | const QDate &date() const; | ||
16296 | int length() const; | ||
16297 | int size() const; | ||
16298 | |||
16299 | QDate startDate() const; | ||
16300 | QDate endDate() const; | ||
16301 | |||
16302 | private: | ||
16303 | class EffectiveEventPrivate *d; | ||
16304 | Event mEvent; | ||
16305 | QDate mDate; | ||
16306 | QTime mStart, | ||
16307 | mEnd; | ||
16308 | |||
16309 | }; | ||
16310 | |||
16311 | # 228 "/opt/Qtopia/include/qpe/event.h" | ||
16312 | |||
16313 | |||
16314 | |||
16315 | # 28 "/opt/Qtopia/include/qpe/datebookdb.h" 2 | ||
16316 | |||
16317 | |||
16318 | |||
16319 | enum journal_action { ACTION_ADD, ACTION_REMOVE, ACTION_REPLACE }; | ||
16320 | |||
16321 | class DateBookDBPrivate; | ||
16322 | class DateBookDB | ||
16323 | { | ||
16324 | public: | ||
16325 | DateBookDB(); | ||
16326 | ~DateBookDB(); | ||
16327 | |||
16328 | |||
16329 | QValueList<Event> getEvents( const QDate &from, const QDate &to ); | ||
16330 | QValueList<Event> getEvents( const QDateTime &start ); | ||
16331 | |||
16332 | |||
16333 | QValueList<EffectiveEvent> getEffectiveEvents( const QDate &from, | ||
16334 | const QDate &to ); | ||
16335 | QValueList<EffectiveEvent> getEffectiveEvents( const QDateTime &start ); | ||
16336 | |||
16337 | QValueList<Event> getRawRepeats() const; | ||
16338 | QValueList<Event> getNonRepeatingEvents( const QDate &from, | ||
16339 | const QDate &to ) const; | ||
16340 | |||
16341 | |||
16342 | void addEvent( const Event &ev, bool doalarm=TRUE ); | ||
16343 | void removeEvent( const Event &ev ); | ||
16344 | void editEvent( const Event &old, Event &ev ); | ||
16345 | |||
16346 | |||
16347 | |||
16348 | void addJFEvent( const Event &ev, bool doalarm=TRUE ); | ||
16349 | void removeJFEvent( const Event &ev ); | ||
16350 | |||
16351 | bool save(); | ||
16352 | void reload(); | ||
16353 | private: | ||
16354 | |||
16355 | bool origRepeat( const Event &ev, Event &orig ) const; | ||
16356 | bool removeRepeat( const Event &ev ); | ||
16357 | void init(); | ||
16358 | void loadFile( const QString &strFile ); | ||
16359 | |||
16360 | void saveJournalEntry( const Event &ev, journal_action action ); | ||
16361 | |||
16362 | |||
16363 | bool saveJournalEntry( const Event &ev, journal_action action, | ||
16364 | int key , bool origHadRepeat = false ); | ||
16365 | |||
16366 | QValueList<Event> eventList; | ||
16367 | QValueList<Event> repeatEvents; | ||
16368 | DateBookDBPrivate *d; | ||
16369 | QFile journalFile; | ||
16370 | }; | ||
16371 | |||
16372 | |||
16373 | bool nextOccurance( const Event &e, const QDate &from, QDateTime &next); | ||
16374 | |||
16375 | # 6 "today.h" 2 | ||
16376 | |||
16377 | |||
16378 | |||
16379 | |||
16380 | class Today : public TodayBase | ||
16381 | { | ||
16382 | public: QMetaObject *metaObject() const { return staticMetaObject(); } const char *className() const; static QMetaObject* staticMetaObject(); static QString tr(const char*); static QString tr(const char*, const char*); protected: void initMetaObject(); private:static QMetaObject *metaObj; | ||
16383 | |||
16384 | public: | ||
16385 | Today( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | ||
16386 | ~Today(); | ||
16387 | |||
16388 | private : | ||
16389 | void goodBye(); | ||
16390 | |||
16391 | private: | ||
16392 | void getDates(); | ||
16393 | int getTodo(); | ||
16394 | private: | ||
16395 | DateBookDB *db; | ||
16396 | |||
16397 | }; | ||
16398 | |||
16399 | # 2 "today.cpp" 2 | ||
16400 | |||
16401 | # 1 "/opt/Qtopia/include/qpushbutton.h" 1 | ||
16402 | |||
16403 | |||
16404 | |||
16405 | |||
16406 | |||
16407 | |||
16408 | |||
16409 | |||
16410 | |||
16411 | |||
16412 | |||
16413 | |||
16414 | |||
16415 | |||
16416 | |||
16417 | |||
16418 | |||
16419 | |||
16420 | |||
16421 | |||
16422 | |||
16423 | |||
16424 | |||
16425 | |||
16426 | |||
16427 | |||
16428 | |||
16429 | |||
16430 | |||
16431 | |||
16432 | |||
16433 | |||
16434 | |||
16435 | |||
16436 | |||
16437 | |||
16438 | |||
16439 | |||
16440 | |||
16441 | |||
16442 | |||
16443 | # 1 "/opt/Qtopia/include/qbutton.h" 1 | ||
16444 | |||
16445 | |||
16446 | |||
16447 | |||
16448 | |||
16449 | |||
16450 | |||
16451 | |||
16452 | |||
16453 | |||
16454 | |||
16455 | |||
16456 | |||
16457 | |||
16458 | |||
16459 | |||
16460 | |||
16461 | |||
16462 | |||
16463 | |||
16464 | |||
16465 | |||
16466 | |||
16467 | |||
16468 | |||
16469 | |||
16470 | |||
16471 | |||
16472 | |||
16473 | |||
16474 | |||
16475 | |||
16476 | |||
16477 | |||
16478 | |||
16479 | |||
16480 | |||
16481 | |||
16482 | |||
16483 | |||
16484 | |||
16485 | |||
16486 | |||
16487 | |||
16488 | |||
16489 | |||
16490 | |||
16491 | class QButtonGroup; | ||
16492 | struct QButtonData; | ||
16493 | class QToolBar; | ||
16494 | |||
16495 | class QButton : public QWidget | ||
16496 | { | ||
16497 | public: QMetaObject *metaObject() const { return staticMetaObject(); } const char *className() const; static QMetaObject* staticMetaObject(); static QString tr(const char*); static QString tr(const char*, const char*); protected: void initMetaObject(); private:static QMetaObject *metaObj; | ||
16498 | |||
16499 | |||
16500 | |||
16501 | |||
16502 | |||
16503 | |||
16504 | |||
16505 | |||
16506 | |||
16507 | |||
16508 | |||
16509 | |||
16510 | |||
16511 | public: | ||
16512 | QButton( QWidget *parent=0, const char *name=0, WFlags f=0 ); | ||
16513 | ~QButton(); | ||
16514 | |||
16515 | QString text() const; | ||
16516 | virtual void setText( const QString &); | ||
16517 | const QPixmap *pixmap() const; | ||
16518 | virtual void setPixmap( const QPixmap & ); | ||
16519 | |||
16520 | int accel()const; | ||
16521 | virtual voidsetAccel( int ); | ||
16522 | |||
16523 | boolisToggleButton() const; | ||
16524 | |||
16525 | enum ToggleType { SingleShot, Toggle, Tristate }; | ||
16526 | ToggleTypetoggleType() const; | ||
16527 | |||
16528 | virtual void setDown( bool ); | ||
16529 | boolisDown() const; | ||
16530 | |||
16531 | boolisOn() const; | ||
16532 | |||
16533 | enum ToggleState { Off, NoChange, On }; | ||
16534 | ToggleStatestate() const; | ||
16535 | |||
16536 | boolautoResize() const; | ||
16537 | virtual void setAutoResize( bool ); | ||
16538 | |||
16539 | boolautoRepeat() const; | ||
16540 | virtual void setAutoRepeat( bool ); | ||
16541 | |||
16542 | boolisExclusiveToggle() const; | ||
16543 | |||
16544 | boolfocusNextPrevChild( bool next ); | ||
16545 | |||
16546 | QButtonGroup *group() const; | ||
16547 | |||
16548 | public : | ||
16549 | voidanimateClick(); | ||
16550 | voidtoggle(); | ||
16551 | |||
16552 | protected : | ||
16553 | voidpressed(); | ||
16554 | voidreleased(); | ||
16555 | voidclicked(); | ||
16556 | voidtoggled( bool ); | ||
16557 | voidstateChanged( int ); | ||
16558 | |||
16559 | protected: | ||
16560 | voidsetToggleButton( bool ); | ||
16561 | virtual voidsetToggleType( ToggleType ); | ||
16562 | voidsetOn( bool ); | ||
16563 | virtual voidsetState( ToggleState ); | ||
16564 | |||
16565 | virtual bool hitButton( const QPoint &pos ) const; | ||
16566 | virtual void drawButton( QPainter * ); | ||
16567 | virtual void drawButtonLabel( QPainter * ); | ||
16568 | |||
16569 | voidkeyPressEvent( QKeyEvent *); | ||
16570 | voidkeyReleaseEvent( QKeyEvent *); | ||
16571 | voidmousePressEvent( QMouseEvent * ); | ||
16572 | voidmouseReleaseEvent( QMouseEvent * ); | ||
16573 | voidmouseMoveEvent( QMouseEvent * ); | ||
16574 | voidpaintEvent( QPaintEvent * ); | ||
16575 | voidfocusInEvent( QFocusEvent * ); | ||
16576 | voidfocusOutEvent( QFocusEvent * ); | ||
16577 | |||
16578 | voidenabledChange( bool ); | ||
16579 | |||
16580 | private : | ||
16581 | voidanimateTimeout(); | ||
16582 | voidautoRepeatTimeout(); | ||
16583 | |||
16584 | private: | ||
16585 | QStringbtext; | ||
16586 | QPixmap *bpixmap; | ||
16587 | uint toggleTyp: 2; | ||
16588 | uint buttonDown: 1; | ||
16589 | uint stat : 2; | ||
16590 | uint mlbDown : 1; | ||
16591 | uint autoresize: 1; | ||
16592 | uint animation: 1; | ||
16593 | uint repeat : 1; | ||
16594 | QButtonData *d; | ||
16595 | |||
16596 | friend class QButtonGroup; | ||
16597 | friend class QToolBar; | ||
16598 | void ensureData(); | ||
16599 | virtual void setGroup( QButtonGroup* ); | ||
16600 | QTimer *timer(); | ||
16601 | voidnextState(); | ||
16602 | |||
16603 | private: | ||
16604 | |||
16605 | QButton( const QButton & ); | ||
16606 | QButton &operator=( const QButton & ); | ||
16607 | |||
16608 | }; | ||
16609 | |||
16610 | |||
16611 | inline QString QButton::text() const | ||
16612 | { | ||
16613 | return btext; | ||
16614 | } | ||
16615 | |||
16616 | inline const QPixmap *QButton::pixmap() const | ||
16617 | { | ||
16618 | return bpixmap; | ||
16619 | } | ||
16620 | |||
16621 | inline bool QButton::isToggleButton() const | ||
16622 | { | ||
16623 | return toggleTyp != SingleShot; | ||
16624 | } | ||
16625 | |||
16626 | inline bool QButton::isDown() const | ||
16627 | { | ||
16628 | return buttonDown; | ||
16629 | } | ||
16630 | |||
16631 | inline bool QButton::isOn() const | ||
16632 | { | ||
16633 | return stat != Off; | ||
16634 | } | ||
16635 | |||
16636 | inline bool QButton::autoResize() const | ||
16637 | { | ||
16638 | return autoresize; | ||
16639 | } | ||
16640 | |||
16641 | inline bool QButton::autoRepeat() const | ||
16642 | { | ||
16643 | return repeat; | ||
16644 | } | ||
16645 | |||
16646 | inline QButton::ToggleState QButton::state() const | ||
16647 | { | ||
16648 | return ToggleState(stat); | ||
16649 | } | ||
16650 | |||
16651 | inline void QButton::setToggleButton( bool b ) | ||
16652 | { | ||
16653 | setToggleType( b ? Toggle : SingleShot ); | ||
16654 | } | ||
16655 | |||
16656 | inline void QButton::setOn( bool y ) | ||
16657 | { | ||
16658 | setState( y ? On : Off ); | ||
16659 | } | ||
16660 | |||
16661 | inline QButton::ToggleType QButton::toggleType() const | ||
16662 | { | ||
16663 | return ToggleType(toggleTyp); | ||
16664 | } | ||
16665 | |||
16666 | |||
16667 | |||
16668 | |||
16669 | |||
16670 | # 42 "/opt/Qtopia/include/qpushbutton.h" 2 | ||
16671 | |||
16672 | # 1 "/opt/Qtopia/include/qiconset.h" 1 | ||
16673 | |||
16674 | |||
16675 | |||
16676 | |||
16677 | |||
16678 | |||
16679 | |||
16680 | |||
16681 | |||
16682 | |||
16683 | |||
16684 | |||
16685 | |||
16686 | |||
16687 | |||
16688 | |||
16689 | |||
16690 | |||
16691 | |||
16692 | |||
16693 | |||
16694 | |||
16695 | |||
16696 | |||
16697 | |||
16698 | |||
16699 | |||
16700 | |||
16701 | |||
16702 | |||
16703 | |||
16704 | |||
16705 | |||
16706 | |||
16707 | |||
16708 | |||
16709 | |||
16710 | |||
16711 | |||
16712 | |||
16713 | |||
16714 | # 1 "/opt/Qtopia/include/qpixmap.h" 1 | ||
16715 | |||
16716 | |||
16717 | |||
16718 | |||
16719 | |||
16720 | |||
16721 | |||
16722 | |||
16723 | |||
16724 | |||
16725 | |||
16726 | |||
16727 | |||
16728 | |||
16729 | |||
16730 | |||
16731 | |||
16732 | |||
16733 | |||
16734 | |||
16735 | |||
16736 | |||
16737 | |||
16738 | |||
16739 | |||
16740 | |||
16741 | |||
16742 | |||
16743 | |||
16744 | |||
16745 | |||
16746 | |||
16747 | |||
16748 | |||
16749 | |||
16750 | |||
16751 | |||
16752 | |||
16753 | |||
16754 | |||
16755 | |||
16756 | |||
16757 | |||
16758 | |||
16759 | |||
16760 | |||
16761 | |||
16762 | class QGfx; | ||
16763 | |||
16764 | |||
16765 | |||
16766 | |||
16767 | |||
16768 | |||
16769 | |||
16770 | class QPixmap : public QPaintDevice, public Qt | ||
16771 | { | ||
16772 | public: | ||
16773 | enum ColorMode { Auto, Color, Mono }; | ||
16774 | enum Optimization { DefaultOptim, NoOptim, MemoryOptim=NoOptim, | ||
16775 | NormalOptim, BestOptim }; | ||
16776 | |||
16777 | QPixmap(); | ||
16778 | QPixmap( int w, int h, int depth = -1, Optimization = DefaultOptim ); | ||
16779 | QPixmap( const QSize &, int depth = -1, Optimization = DefaultOptim ); | ||
16780 | QPixmap( const QString& fileName, const char *format=0, | ||
16781 | ColorMode mode=Auto ); | ||
16782 | QPixmap( const QString& fileName, const char *format, | ||
16783 | int conversion_flags ); | ||
16784 | QPixmap( const char *xpm[] ); | ||
16785 | QPixmap( const QByteArray &data ); | ||
16786 | QPixmap( const QPixmap & ); | ||
16787 | ~QPixmap(); | ||
16788 | |||
16789 | QPixmap &operator=( const QPixmap & ); | ||
16790 | QPixmap &operator=( const QImage & ); | ||
16791 | |||
16792 | bool isNull()const; | ||
16793 | |||
16794 | int width() const { return data->w; } | ||
16795 | int height()const { return data->h; } | ||
16796 | QSize size() const { return QSize(data->w,data->h); } | ||
16797 | QRect rect() const { return QRect(0,0,data->w,data->h); } | ||
16798 | int depth() const { return data->d; } | ||
16799 | static intdefaultDepth(); | ||
16800 | |||
16801 | voidfill( const QColor &fillColor = Qt::white ); | ||
16802 | voidfill( const QWidget *, int xofs, int yofs ); | ||
16803 | voidfill( const QWidget *, const QPoint &ofs ); | ||
16804 | voidresize( int width, int height ); | ||
16805 | voidresize( const QSize & ); | ||
16806 | |||
16807 | const QBitmap *mask() const; | ||
16808 | voidsetMask( const QBitmap & ); | ||
16809 | boolselfMask() const; | ||
16810 | QBitmapcreateHeuristicMask( bool clipTight = TRUE ) const; | ||
16811 | |||
16812 | static QPixmap grabWindow( WId, int x=0, int y=0, int w=-1, int h=-1 ); | ||
16813 | static QPixmap grabWidget( QWidget * widget, | ||
16814 | int x=0, int y=0, int w=-1, int h=-1 ); | ||
16815 | |||
16816 | |||
16817 | QPixmap xForm( const QWMatrix & ) const; | ||
16818 | |||
16819 | |||
16820 | static QWMatrix trueMatrix( const QWMatrix &, int w, int h ); | ||
16821 | |||
16822 | |||
16823 | QImageconvertToImage() const; | ||
16824 | boolconvertFromImage( const QImage &, ColorMode mode=Auto ); | ||
16825 | boolconvertFromImage( const QImage &, int conversion_flags ); | ||
16826 | |||
16827 | static const char* imageFormat( const QString &fileName ); | ||
16828 | boolload( const QString& fileName, const char *format=0, | ||
16829 | ColorMode mode=Auto ); | ||
16830 | boolload( const QString& fileName, const char *format, | ||
16831 | int conversion_flags ); | ||
16832 | boolloadFromData( const uchar *buf, uint len, | ||
16833 | const char* format=0, | ||
16834 | ColorMode mode=Auto ); | ||
16835 | boolloadFromData( const uchar *buf, uint len, | ||
16836 | const char* format, | ||
16837 | int conversion_flags ); | ||
16838 | boolloadFromData( const QByteArray &data, | ||
16839 | const char* format=0, | ||
16840 | int conversion_flags=0 ); | ||
16841 | boolsave( const QString& fileName, const char* format ) const; | ||
16842 | boolsave( const QString& fileName, const char* format, | ||
16843 | int quality ) const; | ||
16844 | |||
16845 | |||
16846 | |||
16847 | |||
16848 | |||
16849 | int serialNumber()const; | ||
16850 | |||
16851 | Optimizationoptimization() const; | ||
16852 | void setOptimization( Optimization ); | ||
16853 | static Optimization defaultOptimization(); | ||
16854 | static void setDefaultOptimization( Optimization ); | ||
16855 | |||
16856 | virtual void detach(); | ||
16857 | |||
16858 | boolisQBitmap() const; | ||
16859 | |||
16860 | # 154 "/opt/Qtopia/include/qpixmap.h" | ||
16861 | |||
16862 | |||
16863 | |||
16864 | |||
16865 | |||
16866 | |||
16867 | |||
16868 | |||
16869 | |||
16870 | |||
16871 | |||
16872 | |||
16873 | |||
16874 | |||
16875 | protected: | ||
16876 | QPixmap( int w, int h, const uchar *data, bool isXbitmap ); | ||
16877 | int metric( int ) const; | ||
16878 | |||
16879 | |||
16880 | |||
16881 | |||
16882 | |||
16883 | |||
16884 | |||
16885 | |||
16886 | struct QPixmapData : public QShared { | ||
16887 | QCOORDw, h; | ||
16888 | shortd; | ||
16889 | uint uninit : 1; | ||
16890 | uint bitmap : 1; | ||
16891 | uintselfmask : 1; | ||
16892 | |||
16893 | |||
16894 | |||
16895 | intser_no; | ||
16896 | QBitmap *mask; | ||
16897 | |||
16898 | |||
16899 | |||
16900 | |||
16901 | |||
16902 | |||
16903 | |||
16904 | |||
16905 | void *ximage; | ||
16906 | void *maskgc; | ||
16907 | |||
16908 | |||
16909 | |||
16910 | |||
16911 | |||
16912 | |||
16913 | |||
16914 | |||
16915 | Optimization optim; | ||
16916 | } *data; | ||
16917 | |||
16918 | private: | ||
16919 | QPixmap( int w, int h, int depth, bool, Optimization ); | ||
16920 | voidinit( int, int, int, bool, Optimization ); | ||
16921 | voidderef(); | ||
16922 | QPixmapcopy( bool ignoreMask = FALSE ) const; | ||
16923 | static Optimization defOptim; | ||
16924 | friend void bitBlt( QPaintDevice *, int, int, | ||
16925 | const QPaintDevice *, | ||
16926 | int, int, int, int, RasterOp, bool ); | ||
16927 | friend void bitBlt( QPaintDevice *, int, int, | ||
16928 | const QImage* src, | ||
16929 | int, int, int, int, int conversion_flags ); | ||
16930 | friend class QBitmap; | ||
16931 | friend class QPaintDevice; | ||
16932 | friend class QPainter; | ||
16933 | }; | ||
16934 | |||
16935 | |||
16936 | inline bool QPixmap::isNull() const | ||
16937 | { | ||
16938 | return data->w == 0; | ||
16939 | } | ||
16940 | |||
16941 | inline void QPixmap::fill( const QWidget *w, const QPoint &ofs ) | ||
16942 | { | ||
16943 | fill( w, ofs.x(), ofs.y() ); | ||
16944 | } | ||
16945 | |||
16946 | inline void QPixmap::resize( const QSize &s ) | ||
16947 | { | ||
16948 | resize( s.width(), s.height() ); | ||
16949 | } | ||
16950 | |||
16951 | inline const QBitmap *QPixmap::mask() const | ||
16952 | { | ||
16953 | return data->mask; | ||
16954 | } | ||
16955 | |||
16956 | inline bool QPixmap::selfMask() const | ||
16957 | { | ||
16958 | return data->selfmask; | ||
16959 | } | ||
16960 | |||
16961 | |||
16962 | |||
16963 | |||
16964 | |||
16965 | |||
16966 | |||
16967 | |||
16968 | inline int QPixmap::serialNumber() const | ||
16969 | { | ||
16970 | return data->ser_no; | ||
16971 | } | ||
16972 | |||
16973 | inline QPixmap::Optimization QPixmap::optimization() const | ||
16974 | { | ||
16975 | return data->optim; | ||
16976 | } | ||
16977 | |||
16978 | inline bool QPixmap::isQBitmap() const | ||
16979 | { | ||
16980 | return data->bitmap; | ||
16981 | } | ||
16982 | |||
16983 | |||
16984 | |||
16985 | |||
16986 | |||
16987 | |||
16988 | |||
16989 | |||
16990 | |||
16991 | |||
16992 | |||
16993 | |||
16994 | |||
16995 | |||
16996 | QDataStream &operator<<( QDataStream &, const QPixmap & ); | ||
16997 | QDataStream &operator>>( QDataStream &, QPixmap & ); | ||
16998 | |||
16999 | |||
17000 | |||
17001 | # 42 "/opt/Qtopia/include/qiconset.h" 2 | ||
17002 | |||
17003 | |||
17004 | |||
17005 | |||
17006 | struct QIconSetPrivate; | ||
17007 | |||
17008 | |||
17009 | class QIconSet | ||
17010 | { | ||
17011 | public: | ||
17012 | enum Size { Automatic, Small, Large }; | ||
17013 | |||
17014 | enum Mode { Normal, Disabled, Active }; | ||
17015 | |||
17016 | QIconSet(); | ||
17017 | QIconSet( const QPixmap &, Size = Automatic ); | ||
17018 | QIconSet( const QPixmap &smallPix, const QPixmap &largePix ); | ||
17019 | QIconSet( const QIconSet & ); | ||
17020 | virtual ~QIconSet(); | ||
17021 | |||
17022 | void reset( const QPixmap &, Size ); | ||
17023 | |||
17024 | virtual void setPixmap( const QPixmap &, Size, Mode = Normal ); | ||
17025 | virtual void setPixmap( const QString &, Size, Mode = Normal ); | ||
17026 | QPixmap pixmap( Size, Mode ) const; | ||
17027 | QPixmap pixmap( Size s, bool enabled ) const; | ||
17028 | QPixmap pixmap() const; | ||
17029 | bool isGenerated( Size, Mode ) const; | ||
17030 | |||
17031 | bool isNull() const; | ||
17032 | |||
17033 | void detach(); | ||
17034 | |||
17035 | QIconSet &operator=( const QIconSet & ); | ||
17036 | |||
17037 | private: | ||
17038 | QIconSetPrivate * d; | ||
17039 | }; | ||
17040 | |||
17041 | |||
17042 | |||
17043 | # 43 "/opt/Qtopia/include/qpushbutton.h" 2 | ||
17044 | |||
17045 | |||
17046 | |||
17047 | |||
17048 | |||
17049 | class QPushButton : public QButton | ||
17050 | { | ||
17051 | public: QMetaObject *metaObject() const { return staticMetaObject(); } const char *className() const; static QMetaObject* staticMetaObject(); static QString tr(const char*); static QString tr(const char*, const char*); protected: void initMetaObject(); private:static QMetaObject *metaObj; | ||
17052 | |||
17053 | |||
17054 | |||
17055 | |||
17056 | |||
17057 | |||
17058 | |||
17059 | |||
17060 | |||
17061 | |||
17062 | public: | ||
17063 | QPushButton( QWidget *parent, const char *name=0 ); | ||
17064 | QPushButton( const QString &text, QWidget *parent, const char* name=0 ); | ||
17065 | QPushButton( const QIconSet& icon, const QString &text, QWidget *parent, const char* name=0 ); | ||
17066 | ~QPushButton(); | ||
17067 | |||
17068 | QSizesizeHint() const; | ||
17069 | QSizePolicy sizePolicy() const; | ||
17070 | |||
17071 | voidmove( int x, int y ); | ||
17072 | voidmove( const QPoint &p ); | ||
17073 | voidresize( int w, int h ); | ||
17074 | voidresize( const QSize & ); | ||
17075 | virtual void setGeometry( int x, int y, int w, int h ); | ||
17076 | |||
17077 | virtual void setGeometry( const QRect & ); | ||
17078 | |||
17079 | virtual void setToggleButton( bool ); | ||
17080 | |||
17081 | bool autoDefault() const{ return autoDefButton; } | ||
17082 | virtual void setAutoDefault( bool autoDef ); | ||
17083 | bool isDefault() const{ return defButton; } | ||
17084 | virtual void setDefault( bool def ); | ||
17085 | |||
17086 | virtual void setIsMenuButton( bool ); | ||
17087 | boolisMenuButton() const; | ||
17088 | |||
17089 | void setPopup( QPopupMenu* popup ); | ||
17090 | QPopupMenu* popup() const; | ||
17091 | |||
17092 | void setIconSet( const QIconSet& ); | ||
17093 | QIconSet* iconSet() const; | ||
17094 | |||
17095 | void setFlat( bool ); | ||
17096 | bool isFlat() const; | ||
17097 | |||
17098 | public : | ||
17099 | virtual void setOn( bool ); | ||
17100 | |||
17101 | voidtoggle(); | ||
17102 | |||
17103 | protected: | ||
17104 | voiddrawButton( QPainter * ); | ||
17105 | voiddrawButtonLabel( QPainter * ); | ||
17106 | voidfocusInEvent( QFocusEvent * ); | ||
17107 | voidfocusOutEvent( QFocusEvent * ); | ||
17108 | voidresizeEvent( QResizeEvent * ); | ||
17109 | voidupdateMask(); | ||
17110 | |||
17111 | private : | ||
17112 | void popupPressed(); | ||
17113 | |||
17114 | private: | ||
17115 | voidinit(); | ||
17116 | |||
17117 | uint autoDefButton: 1; | ||
17118 | uint defButton: 1; | ||
17119 | uint flt : 1; | ||
17120 | uint reserved : 1; | ||
17121 | uint lastEnabled: 1; | ||
17122 | uint hasMenuArrow: 1; | ||
17123 | |||
17124 | friend class QDialog; | ||
17125 | |||
17126 | private: | ||
17127 | |||
17128 | QPushButton( const QPushButton & ); | ||
17129 | QPushButton &operator=( const QPushButton & ); | ||
17130 | |||
17131 | }; | ||
17132 | |||
17133 | |||
17134 | |||
17135 | |||
17136 | |||
17137 | # 3 "today.cpp" 2 | ||
17138 | |||
17139 | # 1 "/opt/Qtopia/include/qlabel.h" 1 | ||
17140 | |||
17141 | |||
17142 | |||
17143 | |||
17144 | |||
17145 | |||
17146 | |||
17147 | |||
17148 | |||
17149 | |||
17150 | |||
17151 | |||
17152 | |||
17153 | |||
17154 | |||
17155 | |||
17156 | |||
17157 | |||
17158 | |||
17159 | |||
17160 | |||
17161 | |||
17162 | |||
17163 | |||
17164 | |||
17165 | |||
17166 | |||
17167 | |||
17168 | |||
17169 | |||
17170 | |||
17171 | |||
17172 | |||
17173 | |||
17174 | |||
17175 | |||
17176 | |||
17177 | |||
17178 | |||
17179 | |||
17180 | |||
17181 | # 1 "/opt/Qtopia/include/qframe.h" 1 | ||
17182 | |||
17183 | |||
17184 | |||
17185 | |||
17186 | |||
17187 | |||
17188 | |||
17189 | |||
17190 | |||
17191 | |||
17192 | |||
17193 | |||
17194 | |||
17195 | |||
17196 | |||
17197 | |||
17198 | |||
17199 | |||
17200 | |||
17201 | |||
17202 | |||
17203 | |||
17204 | |||
17205 | |||
17206 | |||
17207 | |||
17208 | |||
17209 | |||
17210 | |||
17211 | |||
17212 | |||
17213 | |||
17214 | |||
17215 | |||
17216 | |||
17217 | |||
17218 | |||
17219 | |||
17220 | |||
17221 | |||
17222 | |||
17223 | |||
17224 | |||
17225 | |||
17226 | |||
17227 | |||
17228 | class QFrame : public QWidget | ||
17229 | { | ||
17230 | public: QMetaObject *metaObject() const { return staticMetaObject(); } const char *className() const; static QMetaObject* staticMetaObject(); static QString tr(const char*); static QString tr(const char*, const char*); protected: void initMetaObject(); private:static QMetaObject *metaObj; | ||
17231 | |||
17232 | |||
17233 | |||
17234 | |||
17235 | |||
17236 | |||
17237 | |||
17238 | |||
17239 | |||
17240 | |||
17241 | public: | ||
17242 | QFrame( QWidget *parent=0, const char *name=0, WFlags f=0, | ||
17243 | bool = TRUE ); | ||
17244 | |||
17245 | int frameStyle()const; | ||
17246 | virtual void setFrameStyle( int ); | ||
17247 | |||
17248 | int frameWidth()const; | ||
17249 | QRect contentsRect()const; | ||
17250 | |||
17251 | |||
17252 | bool lineShapesOk()const { return TRUE; } | ||
17253 | |||
17254 | |||
17255 | QSizesizeHint() const; | ||
17256 | QSizePolicy sizePolicy() const; | ||
17257 | |||
17258 | enum Shape { NoFrame = 0, | ||
17259 | Box = 0x0001, | ||
17260 | Panel = 0x0002, | ||
17261 | WinPanel = 0x0003, | ||
17262 | HLine = 0x0004, | ||
17263 | VLine = 0x0005, | ||
17264 | StyledPanel = 0x0006, | ||
17265 | PopupPanel = 0x0007, | ||
17266 | MShape = 0x000f | ||
17267 | }; | ||
17268 | enum Shadow { Plain = 0x0010, | ||
17269 | Raised = 0x0020, | ||
17270 | Sunken = 0x0030, | ||
17271 | MShadow = 0x00f0 }; | ||
17272 | |||
17273 | Shape frameShape()const; | ||
17274 | voidsetFrameShape( Shape ); | ||
17275 | Shadow frameShadow()const; | ||
17276 | voidsetFrameShadow( Shadow ); | ||
17277 | |||
17278 | int lineWidth()const; | ||
17279 | virtual void setLineWidth( int ); | ||
17280 | |||
17281 | int margin()const; | ||
17282 | virtual void setMargin( int ); | ||
17283 | |||
17284 | int midLineWidth()const; | ||
17285 | virtual void setMidLineWidth( int ); | ||
17286 | |||
17287 | QRect frameRect()const; | ||
17288 | virtual void setFrameRect( const QRect & ); | ||
17289 | |||
17290 | protected: | ||
17291 | voidpaintEvent( QPaintEvent * ); | ||
17292 | voidresizeEvent( QResizeEvent * ); | ||
17293 | virtual void drawFrame( QPainter * ); | ||
17294 | virtual void drawContents( QPainter * ); | ||
17295 | virtual void frameChanged(); | ||
17296 | voidupdateMask(); | ||
17297 | virtual void drawFrameMask( QPainter * ); | ||
17298 | virtual void drawContentsMask( QPainter * ); | ||
17299 | |||
17300 | private: | ||
17301 | voidupdateFrameWidth(); | ||
17302 | QRectfrect; | ||
17303 | int fstyle; | ||
17304 | shortlwidth; | ||
17305 | shortmwidth; | ||
17306 | shortmlwidth; | ||
17307 | shortfwidth; | ||
17308 | |||
17309 | void * d; | ||
17310 | private: | ||
17311 | |||
17312 | QFrame( const QFrame & ); | ||
17313 | QFrame &operator=( const QFrame & ); | ||
17314 | |||
17315 | }; | ||
17316 | |||
17317 | |||
17318 | inline int QFrame::frameStyle() const | ||
17319 | { return fstyle; } | ||
17320 | |||
17321 | inline QFrame::Shape QFrame::frameShape() const | ||
17322 | { return (Shape) ( fstyle & MShape ); } | ||
17323 | |||
17324 | inline QFrame::Shadow QFrame::frameShadow() const | ||
17325 | { return (Shadow) ( fstyle & MShadow ); } | ||
17326 | |||
17327 | inline void QFrame::setFrameShape( QFrame::Shape s ) | ||
17328 | { setFrameStyle( ( fstyle & MShadow ) | s ); } | ||
17329 | |||
17330 | inline void QFrame::setFrameShadow( QFrame::Shadow s ) | ||
17331 | { setFrameStyle( ( fstyle & MShape ) | s ); } | ||
17332 | |||
17333 | inline int QFrame::lineWidth() const | ||
17334 | { return lwidth; } | ||
17335 | |||
17336 | inline int QFrame::midLineWidth() const | ||
17337 | { return mlwidth; } | ||
17338 | |||
17339 | inline int QFrame::margin() const | ||
17340 | { return mwidth; } | ||
17341 | |||
17342 | inline int QFrame::frameWidth() const | ||
17343 | { return fwidth; } | ||
17344 | |||
17345 | |||
17346 | |||
17347 | |||
17348 | |||
17349 | # 42 "/opt/Qtopia/include/qlabel.h" 2 | ||
17350 | |||
17351 | |||
17352 | |||
17353 | |||
17354 | |||
17355 | class QSimpleRichText; | ||
17356 | class QLabelPrivate; | ||
17357 | |||
17358 | class QLabel : public QFrame | ||
17359 | { | ||
17360 | public: QMetaObject *metaObject() const { return staticMetaObject(); } const char *className() const; static QMetaObject* staticMetaObject(); static QString tr(const char*); static QString tr(const char*, const char*); protected: void initMetaObject(); private:static QMetaObject *metaObj; | ||
17361 | |||
17362 | |||
17363 | |||
17364 | |||
17365 | |||
17366 | |||
17367 | |||
17368 | public: | ||
17369 | QLabel( QWidget *parent, const char *name=0, WFlags f=0 ); | ||
17370 | QLabel( const QString &text, QWidget *parent, const char *name=0, | ||
17371 | WFlags f=0 ); | ||
17372 | QLabel( QWidget * buddy, const QString &, | ||
17373 | QWidget * parent, const char * name=0, WFlags f=0 ); | ||
17374 | ~QLabel(); | ||
17375 | |||
17376 | QString text() const{ return ltext; } | ||
17377 | QPixmap *pixmap() const{ return lpixmap; } | ||
17378 | |||
17379 | QMovie *movie() const; | ||
17380 | |||
17381 | |||
17382 | TextFormat textFormat() const; | ||
17383 | void setTextFormat( TextFormat ); | ||
17384 | |||
17385 | int alignment() const{ return align; } | ||
17386 | virtual void setAlignment( int ); | ||
17387 | int indent() const { return extraMargin; } | ||
17388 | void setIndent( int ); | ||
17389 | |||
17390 | bool autoResize() const{ return autoresize; } | ||
17391 | virtual void setAutoResize( bool ); | ||
17392 | |||
17393 | bool hasScaledContents() const; | ||
17394 | void setScaledContents( bool ); | ||
17395 | |||
17396 | QSize sizeHint() const; | ||
17397 | QSize minimumSizeHint() const; | ||
17398 | QSizePolicy sizePolicy() const; | ||
17399 | |||
17400 | virtual void setBuddy( QWidget * ); | ||
17401 | QWidget *buddy() const; | ||
17402 | |||
17403 | void setAutoMask(bool); | ||
17404 | |||
17405 | int heightForWidth(int) const; | ||
17406 | |||
17407 | public : | ||
17408 | virtual void setText( const QString &); | ||
17409 | virtual void setPixmap( const QPixmap & ); | ||
17410 | |||
17411 | virtual void setMovie( const QMovie & ); | ||
17412 | |||
17413 | virtual void setNum( int ); | ||
17414 | virtual void setNum( double ); | ||
17415 | void clear(); | ||
17416 | |||
17417 | protected: | ||
17418 | void drawContents( QPainter * ); | ||
17419 | void drawContentsMask( QPainter * ); | ||
17420 | void fontChange( const QFont & ); | ||
17421 | void resizeEvent( QResizeEvent* ); | ||
17422 | |||
17423 | private : | ||
17424 | |||
17425 | void acceleratorSlot(); | ||
17426 | void buddyDied(); | ||
17427 | |||
17428 | |||
17429 | void movieUpdated(const QRect&); | ||
17430 | void movieResized(const QSize&); | ||
17431 | |||
17432 | |||
17433 | private: | ||
17434 | voidinit(); | ||
17435 | voidclearContents(); | ||
17436 | voidupdateLabel( QSize oldSizeHint ); | ||
17437 | QSizesizeForWidth( int w ) const; | ||
17438 | QStringltext; | ||
17439 | QPixmap *lpixmap; | ||
17440 | |||
17441 | QMovie *lmovie; | ||
17442 | |||
17443 | |||
17444 | QWidget *lbuddy; | ||
17445 | |||
17446 | ushortalign; | ||
17447 | shortextraMargin; | ||
17448 | uintautoresize:1; | ||
17449 | uintscaledcontents :1; | ||
17450 | TextFormat textformat; | ||
17451 | |||
17452 | QSimpleRichText* doc; | ||
17453 | |||
17454 | |||
17455 | QAccel *accel; | ||
17456 | |||
17457 | QLabelPrivate* d; | ||
17458 | |||
17459 | private: | ||
17460 | |||
17461 | QLabel( const QLabel & ); | ||
17462 | QLabel &operator=( const QLabel & ); | ||
17463 | |||
17464 | }; | ||
17465 | |||
17466 | |||
17467 | |||
17468 | |||
17469 | |||
17470 | # 4 "today.cpp" 2 | ||
17471 | |||
17472 | |||
17473 | |||
17474 | # 1 "/opt/Qtopia/include/qpe/timestring.h" 1 | ||
17475 | |||
17476 | |||
17477 | |||
17478 | |||
17479 | |||
17480 | |||
17481 | |||
17482 | |||
17483 | |||
17484 | |||
17485 | |||
17486 | |||
17487 | |||
17488 | |||
17489 | |||
17490 | |||
17491 | |||
17492 | |||
17493 | |||
17494 | |||
17495 | |||
17496 | |||
17497 | |||
17498 | |||
17499 | |||
17500 | |||
17501 | |||
17502 | |||
17503 | |||
17504 | |||
17505 | class DateFormat | ||
17506 | { | ||
17507 | public: | ||
17508 | |||
17509 | enum Order { | ||
17510 | DayMonthYear = 0x0111, | ||
17511 | MonthDayYear = 0x010A, | ||
17512 | YearMonthDay = 0x0054 | ||
17513 | }; | ||
17514 | |||
17515 | DateFormat(QChar s = '/', Order so = MonthDayYear) : _shortOrder(so), | ||
17516 | _longOrder(so), _shortSeparator(s) { } | ||
17517 | DateFormat(QChar s, Order so, Order lo) : _shortOrder(so), | ||
17518 | _longOrder(lo), _shortSeparator(s) { } | ||
17519 | DateFormat(const DateFormat &o) : _shortOrder(o._shortOrder), | ||
17520 | _longOrder(o._longOrder), _shortSeparator(o._shortSeparator) { } | ||
17521 | |||
17522 | bool operator==(const DateFormat &o) | ||
17523 | { | ||
17524 | if (o._shortOrder == _shortOrder && o._longOrder == _longOrder && | ||
17525 | o._shortSeparator == _shortSeparator) | ||
17526 | return TRUE; | ||
17527 | return FALSE; | ||
17528 | } | ||
17529 | |||
17530 | |||
17531 | enum Verbosity { | ||
17532 | shortNumber = 0x01, | ||
17533 | longNumber = 0x02, | ||
17534 | |||
17535 | padNumber = 0x04, | ||
17536 | |||
17537 | shortWord = 0x08, | ||
17538 | longWord = 0x10, | ||
17539 | |||
17540 | showWeekDay = 0x20 | ||
17541 | }; | ||
17542 | |||
17543 | QString toNumberString() const; | ||
17544 | QString toWordString() const; | ||
17545 | |||
17546 | QString numberDate(const QDate &d, int v = 0) const; | ||
17547 | QString wordDate(const QDate &d, int v = 0) const; | ||
17548 | |||
17549 | |||
17550 | void load(QDataStream&); | ||
17551 | void save(QDataStream&) const; | ||
17552 | |||
17553 | |||
17554 | QChar separator() const { return _shortSeparator; }; | ||
17555 | Order shortOrder() const { return _shortOrder; }; | ||
17556 | Order longOrder() const { return _longOrder; }; | ||
17557 | |||
17558 | private: | ||
17559 | Order _shortOrder; | ||
17560 | Order _longOrder; | ||
17561 | QChar _shortSeparator; | ||
17562 | }; | ||
17563 | |||
17564 | |||
17565 | QDataStream &operator<<(QDataStream &s, const DateFormat&df); | ||
17566 | QDataStream &operator>>(QDataStream &s, DateFormat&df); | ||
17567 | |||
17568 | |||
17569 | class TimeString | ||
17570 | { | ||
17571 | public: | ||
17572 | |||
17573 | |||
17574 | |||
17575 | |||
17576 | |||
17577 | static QString shortDate( const QDate &d ) | ||
17578 | { return shortDate( d, currentDateFormat() ); } | ||
17579 | static QString dateString( const QDate &d ) | ||
17580 | { return dateString( d, currentDateFormat() ); } | ||
17581 | static QString longDateString( const QDate &d ) | ||
17582 | { return longDateString( d, currentDateFormat() ); } | ||
17583 | static QString dateString( const QDateTime &dt, bool ampm, bool seconds ) | ||
17584 | { return dateString( dt, ampm, seconds, currentDateFormat() ); } | ||
17585 | |||
17586 | static QString dateString( const QDateTime &t, bool ampm = false ); | ||
17587 | static QString timeString( const QTime &t, bool ampm, bool seconds ); | ||
17588 | static QString timeString( const QTime &t, bool ampm = false ); | ||
17589 | static QString shortTime( bool ampm, bool seconds ); | ||
17590 | static QString shortTime( bool ampm = false ); | ||
17591 | |||
17592 | |||
17593 | |||
17594 | static QString shortDate( const QDate &, DateFormat ); | ||
17595 | static QString dateString( const QDate &, DateFormat ); | ||
17596 | static QString longDateString( const QDate &, DateFormat ); | ||
17597 | |||
17598 | static DateFormat currentDateFormat(); | ||
17599 | |||
17600 | private: | ||
17601 | static QString dateString( const QDateTime &t, bool ampm, bool seconds, DateFormat ); | ||
17602 | |||
17603 | |||
17604 | }; | ||
17605 | |||
17606 | |||
17607 | # 7 "today.cpp" 2 | ||
17608 | |||
17609 | # 1 "/opt/Qtopia/include/qpe/config.h" 1 | ||
17610 | |||
17611 | |||
17612 | |||
17613 | |||
17614 | |||
17615 | |||
17616 | |||
17617 | |||
17618 | |||
17619 | |||
17620 | |||
17621 | |||
17622 | |||
17623 | |||
17624 | |||
17625 | |||
17626 | |||
17627 | |||
17628 | |||
17629 | |||
17630 | |||
17631 | |||
17632 | |||
17633 | |||
17634 | |||
17635 | |||
17636 | |||
17637 | |||
17638 | |||
17639 | class ConfigPrivate; | ||
17640 | class Config | ||
17641 | { | ||
17642 | public: | ||
17643 | typedef QMap< QString, QString > ConfigGroup; | ||
17644 | |||
17645 | enum Domain { File, User }; | ||
17646 | Config( const QString &name, Domain domain=User ); | ||
17647 | ~Config(); | ||
17648 | |||
17649 | bool operator == ( const Config & other ) const { return (filename == other.filename); } | ||
17650 | bool operator != ( const Config & other ) const { return (filename != other.filename); } | ||
17651 | |||
17652 | bool isValid() const; | ||
17653 | bool hasKey( const QString &key ) const; | ||
17654 | |||
17655 | void setGroup( const QString &gname ); | ||
17656 | void writeEntry( const QString &key, const char* value ); | ||
17657 | void writeEntry( const QString &key, const QString &value ); | ||
17658 | void writeEntryCrypt( const QString &key, const QString &value ); | ||
17659 | void writeEntry( const QString &key, int num ); | ||
17660 | |||
17661 | void writeEntry( const QString &key, bool b ); | ||
17662 | |||
17663 | void writeEntry( const QString &key, const QStringList &lst, const QChar &sep ); | ||
17664 | void removeEntry( const QString &key ); | ||
17665 | |||
17666 | QString readEntry( const QString &key, const QString &deflt = QString::null ) const; | ||
17667 | QString readEntryCrypt( const QString &key, const QString &deflt = QString::null ) const; | ||
17668 | QString readEntryDirect( const QString &key, const QString &deflt = QString::null ) const; | ||
17669 | int readNumEntry( const QString &key, int deflt = -1 ) const; | ||
17670 | bool readBoolEntry( const QString &key, bool deflt = FALSE ) const; | ||
17671 | QStringList readListEntry( const QString &key, const QChar &sep ) const; | ||
17672 | |||
17673 | |||
17674 | QString readEntry( const QString &key, const QString &deflt ); | ||
17675 | QString readEntryCrypt( const QString &key, const QString &deflt ); | ||
17676 | QString readEntryDirect( const QString &key, const QString &deflt ); | ||
17677 | int readNumEntry( const QString &key, int deflt ); | ||
17678 | bool readBoolEntry( const QString &key, bool deflt ); | ||
17679 | QStringList readListEntry( const QString &key, const QChar &sep ); | ||
17680 | |||
17681 | void clearGroup(); | ||
17682 | |||
17683 | void write( const QString &fn = QString::null ); | ||
17684 | |||
17685 | protected: | ||
17686 | void read(); | ||
17687 | bool parse( const QString &line ); | ||
17688 | |||
17689 | QMap< QString, ConfigGroup > groups; | ||
17690 | QMap< QString, ConfigGroup >::Iterator git; | ||
17691 | QString filename; | ||
17692 | QString lang; | ||
17693 | QString glang; | ||
17694 | bool changed; | ||
17695 | ConfigPrivate *d; | ||
17696 | static QString configFilename(const QString& name, Domain); | ||
17697 | }; | ||
17698 | |||
17699 | inline QString Config::readEntry( const QString &key, const QString &deflt ) const | ||
17700 | { return ((Config*)this)->readEntry(key,deflt); } | ||
17701 | inline QString Config::readEntryCrypt( const QString &key, const QString &deflt ) const | ||
17702 | { return ((Config*)this)->readEntryCrypt(key,deflt); } | ||
17703 | inline QString Config::readEntryDirect( const QString &key, const QString &deflt ) const | ||
17704 | { return ((Config*)this)->readEntryDirect(key,deflt); } | ||
17705 | inline int Config::readNumEntry( const QString &key, int deflt ) const | ||
17706 | { return ((Config*)this)->readNumEntry(key,deflt); } | ||
17707 | inline bool Config::readBoolEntry( const QString &key, bool deflt ) const | ||
17708 | { return ((Config*)this)->readBoolEntry(key,deflt); } | ||
17709 | inline QStringList Config::readListEntry( const QString &key, const QChar &sep ) const | ||
17710 | { return ((Config*)this)->readListEntry(key,sep); } | ||
17711 | |||
17712 | |||
17713 | # 8 "today.cpp" 2 | ||
17714 | |||
17715 | |||
17716 | # 1 "/opt/Qtopia/include/qdom.h" 1 | ||
17717 | |||
17718 | |||
17719 | |||
17720 | |||
17721 | |||
17722 | |||
17723 | |||
17724 | |||
17725 | |||
17726 | |||
17727 | |||
17728 | |||
17729 | |||
17730 | |||
17731 | |||
17732 | |||
17733 | |||
17734 | |||
17735 | |||
17736 | |||
17737 | |||
17738 | |||
17739 | |||
17740 | |||
17741 | |||
17742 | |||
17743 | |||
17744 | |||
17745 | |||
17746 | |||
17747 | |||
17748 | |||
17749 | |||
17750 | |||
17751 | |||
17752 | |||
17753 | |||
17754 | |||
17755 | |||
17756 | |||
17757 | |||
17758 | |||
17759 | # 1 "/opt/Qtopia/include/qdict.h" 1 | ||
17760 | |||
17761 | |||
17762 | |||
17763 | |||
17764 | |||
17765 | |||
17766 | |||
17767 | |||
17768 | |||
17769 | |||
17770 | |||
17771 | |||
17772 | |||
17773 | |||
17774 | |||
17775 | |||
17776 | |||
17777 | |||
17778 | |||
17779 | |||
17780 | |||
17781 | |||
17782 | |||
17783 | |||
17784 | |||
17785 | |||
17786 | |||
17787 | |||
17788 | |||
17789 | |||
17790 | |||
17791 | |||
17792 | |||
17793 | |||
17794 | |||
17795 | |||
17796 | |||
17797 | |||
17798 | |||
17799 | |||
17800 | |||
17801 | # 1 "/opt/Qtopia/include/qgdict.h" 1 | ||
17802 | |||
17803 | |||
17804 | |||
17805 | |||
17806 | |||
17807 | |||
17808 | |||
17809 | |||
17810 | |||
17811 | |||
17812 | |||
17813 | |||
17814 | |||
17815 | |||
17816 | |||
17817 | |||
17818 | |||
17819 | |||
17820 | |||
17821 | |||
17822 | |||
17823 | |||
17824 | |||
17825 | |||
17826 | |||
17827 | |||
17828 | |||
17829 | |||
17830 | |||
17831 | |||
17832 | |||
17833 | |||
17834 | |||
17835 | |||
17836 | |||
17837 | |||
17838 | |||
17839 | |||
17840 | |||
17841 | |||
17842 | |||
17843 | # 1 "/opt/Qtopia/include/qcollection.h" 1 | ||
17844 | |||
17845 | |||
17846 | |||
17847 | |||
17848 | |||
17849 | |||
17850 | |||
17851 | |||
17852 | |||
17853 | |||
17854 | |||
17855 | |||
17856 | |||
17857 | |||
17858 | |||
17859 | |||
17860 | |||
17861 | |||
17862 | |||
17863 | |||
17864 | |||
17865 | |||
17866 | |||
17867 | |||
17868 | |||
17869 | |||
17870 | |||
17871 | |||
17872 | |||
17873 | |||
17874 | |||
17875 | |||
17876 | |||
17877 | |||
17878 | |||
17879 | |||
17880 | |||
17881 | |||
17882 | |||
17883 | |||
17884 | |||
17885 | |||
17886 | |||
17887 | |||
17888 | |||
17889 | class QGVector; | ||
17890 | class QGList; | ||
17891 | class QGDict; | ||
17892 | |||
17893 | |||
17894 | class QCollection | ||
17895 | { | ||
17896 | public: | ||
17897 | bool autoDelete() const { return del_item; } | ||
17898 | void setAutoDelete( bool enable ) { del_item = enable; } | ||
17899 | |||
17900 | virtual uint count() const = 0; | ||
17901 | virtual void clear() = 0; | ||
17902 | |||
17903 | typedef void *Item; | ||
17904 | |||
17905 | protected: | ||
17906 | QCollection() { del_item = FALSE; } | ||
17907 | QCollection(const QCollection &) { del_item = FALSE; } | ||
17908 | virtual ~QCollection() {} | ||
17909 | |||
17910 | bool del_item; | ||
17911 | |||
17912 | virtual Item newItem( Item ); | ||
17913 | virtual void deleteItem( Item ); | ||
17914 | }; | ||
17915 | |||
17916 | |||
17917 | |||
17918 | # 42 "/opt/Qtopia/include/qgdict.h" 2 | ||
17919 | |||
17920 | |||
17921 | |||
17922 | |||
17923 | class QGDictIterator; | ||
17924 | class QGDItList; | ||
17925 | |||
17926 | |||
17927 | class QBaseBucket | ||
17928 | { | ||
17929 | public: | ||
17930 | QCollection::Item getData() { return data; } | ||
17931 | QCollection::Item setData( QCollection::Item d ) { return data = d; } | ||
17932 | QBaseBucket *getNext() { return next; } | ||
17933 | void setNext( QBaseBucket *n){ next = n; } | ||
17934 | protected: | ||
17935 | QBaseBucket( QCollection::Item d, QBaseBucket *n ) : data(d), next(n) {} | ||
17936 | QCollection::Item data; | ||
17937 | QBaseBucket *next; | ||
17938 | }; | ||
17939 | |||
17940 | class QStringBucket : public QBaseBucket | ||
17941 | { | ||
17942 | public: | ||
17943 | QStringBucket( const QString &k, QCollection::Item d, QBaseBucket *n ) | ||
17944 | : QBaseBucket(d,n), key(k) {} | ||
17945 | const QString &getKey() const { return key; } | ||
17946 | private: | ||
17947 | QString key; | ||
17948 | }; | ||
17949 | |||
17950 | class QAsciiBucket : public QBaseBucket | ||
17951 | { | ||
17952 | public: | ||
17953 | QAsciiBucket( const char *k, QCollection::Item d, QBaseBucket *n ) | ||
17954 | : QBaseBucket(d,n), key(k) {} | ||
17955 | const char *getKey() const { return key; } | ||
17956 | private: | ||
17957 | const char *key; | ||
17958 | }; | ||
17959 | |||
17960 | class QIntBucket : public QBaseBucket | ||
17961 | { | ||
17962 | public: | ||
17963 | QIntBucket( long k, QCollection::Item d, QBaseBucket *n ) | ||
17964 | : QBaseBucket(d,n), key(k) {} | ||
17965 | long getKey() const { return key; } | ||
17966 | private: | ||
17967 | long key; | ||
17968 | }; | ||
17969 | |||
17970 | class QPtrBucket : public QBaseBucket | ||
17971 | { | ||
17972 | public: | ||
17973 | QPtrBucket( void *k, QCollection::Item d, QBaseBucket *n ) | ||
17974 | : QBaseBucket(d,n), key(k) {} | ||
17975 | void *getKey() const { return key; } | ||
17976 | private: | ||
17977 | void *key; | ||
17978 | }; | ||
17979 | |||
17980 | |||
17981 | class QGDict : public QCollection | ||
17982 | { | ||
17983 | public: | ||
17984 | uint count() const{ return numItems; } | ||
17985 | uint size() const{ return vlen; } | ||
17986 | QCollection::Item look_string( const QString& key, QCollection::Item, | ||
17987 | int ); | ||
17988 | QCollection::Item look_ascii( const char *key, QCollection::Item, int ); | ||
17989 | QCollection::Item look_int( long key, QCollection::Item, int ); | ||
17990 | QCollection::Item look_ptr( void *key, QCollection::Item, int ); | ||
17991 | |||
17992 | QDataStream &read( QDataStream & ); | ||
17993 | QDataStream &write( QDataStream & ) const; | ||
17994 | |||
17995 | protected: | ||
17996 | enum KeyType { StringKey, AsciiKey, IntKey, PtrKey }; | ||
17997 | |||
17998 | QGDict( uint len, KeyType kt, bool cs, bool ck ); | ||
17999 | QGDict( const QGDict & ); | ||
18000 | ~QGDict(); | ||
18001 | |||
18002 | QGDict &operator=( const QGDict & ); | ||
18003 | |||
18004 | boolremove_string( const QString &key, QCollection::Item item=0 ); | ||
18005 | boolremove_ascii( const char *key, QCollection::Item item=0 ); | ||
18006 | boolremove_int( long key, QCollection::Item item=0 ); | ||
18007 | boolremove_ptr( void *key, QCollection::Item item=0 ); | ||
18008 | QCollection::Item take_string( const QString &key ); | ||
18009 | QCollection::Item take_ascii( const char *key ); | ||
18010 | QCollection::Item take_int( long key ); | ||
18011 | QCollection::Item take_ptr( void *key ); | ||
18012 | |||
18013 | voidclear(); | ||
18014 | voidresize( uint ); | ||
18015 | |||
18016 | int hashKeyString( const QString & ); | ||
18017 | int hashKeyAscii( const char * ); | ||
18018 | |||
18019 | voidstatistics() const; | ||
18020 | |||
18021 | |||
18022 | virtual QDataStream &read( QDataStream &, QCollection::Item & ); | ||
18023 | virtual QDataStream &write( QDataStream &, QCollection::Item ) const; | ||
18024 | |||
18025 | private: | ||
18026 | QBaseBucket **vec; | ||
18027 | uintvlen; | ||
18028 | uintnumItems; | ||
18029 | uint keytype: 2; | ||
18030 | uint cases: 1; | ||
18031 | uint copyk: 1; | ||
18032 | QGDItList *iterators; | ||
18033 | void unlink_common( int, QBaseBucket *, QBaseBucket * ); | ||
18034 | QStringBucket *unlink_string( const QString &, | ||
18035 | QCollection::Item item = 0 ); | ||
18036 | QAsciiBucket *unlink_ascii( const char *, QCollection::Item item = 0 ); | ||
18037 | QIntBucket *unlink_int( long, QCollection::Item item = 0 ); | ||
18038 | QPtrBucket *unlink_ptr( void *, QCollection::Item item = 0 ); | ||
18039 | voidinit( uint, KeyType, bool, bool ); | ||
18040 | friend class QGDictIterator; | ||
18041 | }; | ||
18042 | |||
18043 | |||
18044 | class QGDictIterator | ||
18045 | { | ||
18046 | friend class QGDict; | ||
18047 | public: | ||
18048 | QGDictIterator( const QGDict & ); | ||
18049 | QGDictIterator( const QGDictIterator & ); | ||
18050 | QGDictIterator &operator=( const QGDictIterator & ); | ||
18051 | ~QGDictIterator(); | ||
18052 | |||
18053 | QCollection::Item toFirst(); | ||
18054 | |||
18055 | QCollection::Item get() const; | ||
18056 | QString getKeyString() const; | ||
18057 | const char *getKeyAscii() const; | ||
18058 | long getKeyInt() const; | ||
18059 | void *getKeyPtr() const; | ||
18060 | |||
18061 | QCollection::Item operator()(); | ||
18062 | QCollection::Item operator++(); | ||
18063 | QCollection::Item operator+=(uint); | ||
18064 | |||
18065 | protected: | ||
18066 | QGDict *dict; | ||
18067 | |||
18068 | private: | ||
18069 | QBaseBucket *curNode; | ||
18070 | uint curIndex; | ||
18071 | }; | ||
18072 | |||
18073 | inline QCollection::Item QGDictIterator::get() const | ||
18074 | { | ||
18075 | return curNode ? curNode->getData() : 0; | ||
18076 | } | ||
18077 | |||
18078 | inline QString QGDictIterator::getKeyString() const | ||
18079 | { | ||
18080 | return curNode ? ((QStringBucket*)curNode)->getKey() : QString::null; | ||
18081 | } | ||
18082 | |||
18083 | inline const char *QGDictIterator::getKeyAscii() const | ||
18084 | { | ||
18085 | return curNode ? ((QAsciiBucket*)curNode)->getKey() : 0; | ||
18086 | } | ||
18087 | |||
18088 | inline long QGDictIterator::getKeyInt() const | ||
18089 | { | ||
18090 | return curNode ? ((QIntBucket*)curNode)->getKey() : 0; | ||
18091 | } | ||
18092 | |||
18093 | inline void *QGDictIterator::getKeyPtr() const | ||
18094 | { | ||
18095 | return curNode ? ((QPtrBucket*)curNode)->getKey() : 0; | ||
18096 | } | ||
18097 | |||
18098 | |||
18099 | |||
18100 | # 42 "/opt/Qtopia/include/qdict.h" 2 | ||
18101 | |||
18102 | |||
18103 | |||
18104 | |||
18105 | template<class type> class QDict : public QGDict | ||
18106 | { | ||
18107 | public: | ||
18108 | QDict(int size=17, bool caseSensitive=TRUE) | ||
18109 | : QGDict(size,StringKey,caseSensitive,FALSE) {} | ||
18110 | QDict( const QDict<type> &d ) : QGDict(d) {} | ||
18111 | ~QDict() { clear(); } | ||
18112 | QDict<type> &operator=(const QDict<type> &d) | ||
18113 | { return (QDict<type>&)QGDict::operator=(d); } | ||
18114 | uint count() const { return QGDict::count(); } | ||
18115 | uint size() const { return QGDict::size(); } | ||
18116 | bool isEmpty() const { return QGDict::count() == 0; } | ||
18117 | |||
18118 | void insert( const QString &k, const type *d ) | ||
18119 | { QGDict::look_string(k,(Item)d,1); } | ||
18120 | void replace( const QString &k, const type *d ) | ||
18121 | { QGDict::look_string(k,(Item)d,2); } | ||
18122 | bool remove( const QString &k ){ return QGDict::remove_string(k); } | ||
18123 | type *take( const QString &k ){ return (type *)QGDict::take_string(k); } | ||
18124 | type *find( const QString &k ) const | ||
18125 | { return (type *)((QGDict*)this)->QGDict::look_string(k,0,0); } | ||
18126 | type *operator[]( const QString &k ) const | ||
18127 | { return (type *)((QGDict*)this)->QGDict::look_string(k,0,0); } | ||
18128 | |||
18129 | void clear() { QGDict::clear(); } | ||
18130 | void resize( uint n ) { QGDict::resize(n); } | ||
18131 | void statistics() const { QGDict::statistics(); } | ||
18132 | private: | ||
18133 | void deleteItem( Item d ); | ||
18134 | }; | ||
18135 | |||
18136 | |||
18137 | template<> inline void QDict<void>::deleteItem( Item ) | ||
18138 | { | ||
18139 | } | ||
18140 | |||
18141 | |||
18142 | template<class type> inline void QDict<type>::deleteItem( QCollection::Item d ) | ||
18143 | { | ||
18144 | if ( del_item ) delete (type *)d; | ||
18145 | } | ||
18146 | |||
18147 | |||
18148 | template<class type> class QDictIterator : public QGDictIterator | ||
18149 | { | ||
18150 | public: | ||
18151 | QDictIterator(const QDict<type> &d) :QGDictIterator((QGDict &)d) {} | ||
18152 | ~QDictIterator() {} | ||
18153 | uint count() const { return dict->count(); } | ||
18154 | bool isEmpty() const { return dict->count() == 0; } | ||
18155 | type *toFirst() { return (type *)QGDictIterator::toFirst(); } | ||
18156 | operator type *() const { return (type *)QGDictIterator::get(); } | ||
18157 | type *current() const { return (type *)QGDictIterator::get(); } | ||
18158 | QString currentKey() const{ return QGDictIterator::getKeyString(); } | ||
18159 | type *operator()() { return (type *)QGDictIterator::operator()(); } | ||
18160 | type *operator++() { return (type *)QGDictIterator::operator++(); } | ||
18161 | type *operator+=(uint j) { return (type *)QGDictIterator::operator+=(j);} | ||
18162 | }; | ||
18163 | |||
18164 | |||
18165 | |||
18166 | # 43 "/opt/Qtopia/include/qdom.h" 2 | ||
18167 | |||
18168 | |||
18169 | |||
18170 | # 1 "/opt/Qtopia/include/qpen.h" 1 | ||
18171 | |||
18172 | |||
18173 | |||
18174 | |||
18175 | |||
18176 | |||
18177 | |||
18178 | |||
18179 | |||
18180 | |||
18181 | |||
18182 | |||
18183 | |||
18184 | |||
18185 | |||
18186 | |||
18187 | |||
18188 | |||
18189 | |||
18190 | |||
18191 | |||
18192 | |||
18193 | |||
18194 | |||
18195 | |||
18196 | |||
18197 | |||
18198 | |||
18199 | |||
18200 | |||
18201 | |||
18202 | |||
18203 | |||
18204 | |||
18205 | |||
18206 | |||
18207 | |||
18208 | |||
18209 | |||
18210 | |||
18211 | |||
18212 | |||
18213 | |||
18214 | |||
18215 | |||
18216 | |||
18217 | class QPen: public Qt | ||
18218 | { | ||
18219 | friend class QPainter; | ||
18220 | public: | ||
18221 | QPen(); | ||
18222 | QPen( PenStyle ); | ||
18223 | QPen( const QColor &color, uint width=0, PenStyle style=SolidLine ); | ||
18224 | QPen( const QColor &cl, uint w, PenStyle s, PenCapStyle c, PenJoinStyle j); | ||
18225 | QPen( const QPen & ); | ||
18226 | ~QPen(); | ||
18227 | QPen &operator=( const QPen & ); | ||
18228 | |||
18229 | PenStyle style() const { return data->style; } | ||
18230 | voidsetStyle( PenStyle ); | ||
18231 | uint width() const { return data->width; } | ||
18232 | voidsetWidth( uint ); | ||
18233 | const QColor &color() const { return data->color; } | ||
18234 | voidsetColor( const QColor & ); | ||
18235 | PenCapStylecapStyle() const; | ||
18236 | voidsetCapStyle( PenCapStyle ); | ||
18237 | PenJoinStyle joinStyle() const; | ||
18238 | voidsetJoinStyle( PenJoinStyle ); | ||
18239 | |||
18240 | booloperator==( const QPen &p ) const; | ||
18241 | booloperator!=( const QPen &p ) const | ||
18242 | { return !(operator==(p)); } | ||
18243 | |||
18244 | private: | ||
18245 | QPen copy()const; | ||
18246 | voiddetach(); | ||
18247 | voidinit( const QColor &, uint, uint ); | ||
18248 | struct QPenData : public QShared { | ||
18249 | PenStyle style; | ||
18250 | uint width; | ||
18251 | QColor color; | ||
18252 | Q_UINT16 linest; | ||
18253 | } *data; | ||
18254 | }; | ||
18255 | |||
18256 | |||
18257 | |||
18258 | |||
18259 | |||
18260 | |||
18261 | QDataStream &operator<<( QDataStream &, const QPen & ); | ||
18262 | QDataStream &operator>>( QDataStream &, QPen & ); | ||
18263 | |||
18264 | |||
18265 | |||
18266 | # 46 "/opt/Qtopia/include/qdom.h" 2 | ||
18267 | |||
18268 | |||
18269 | |||
18270 | |||
18271 | |||
18272 | |||
18273 | |||
18274 | # 1 "/opt/Qtopia/include/qmodules.h" 1 | ||
18275 | |||
18276 | |||
18277 | |||
18278 | |||
18279 | |||
18280 | |||
18281 | |||
18282 | |||
18283 | |||
18284 | |||
18285 | |||
18286 | # 53 "/opt/Qtopia/include/qdom.h" 2 | ||
18287 | |||
18288 | |||
18289 | |||
18290 | |||
18291 | |||
18292 | |||
18293 | |||
18294 | |||
18295 | # 601 "/opt/Qtopia/include/qdom.h" | ||
18296 | |||
18297 | |||
18298 | # 10 "today.cpp" 2 | ||
18299 | |||
18300 | |||
18301 | |||
18302 | # 1 "/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/iostream.h" 1 3 | ||
18303 | |||
18304 | |||
18305 | |||
18306 | |||
18307 | |||
18308 | |||
18309 | |||
18310 | |||
18311 | |||
18312 | |||
18313 | |||
18314 | |||
18315 | |||
18316 | |||
18317 | |||
18318 | |||
18319 | |||
18320 | |||
18321 | |||
18322 | |||
18323 | |||
18324 | |||
18325 | |||
18326 | |||
18327 | |||
18328 | |||
18329 | #pragma interface | ||
18330 | |||
18331 | |||
18332 | |||
18333 | # 1 "/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/streambuf.h" 1 3 | ||
18334 | |||
18335 | |||
18336 | |||
18337 | |||
18338 | |||
18339 | |||
18340 | |||
18341 | |||
18342 | |||
18343 | |||
18344 | |||
18345 | |||
18346 | |||
18347 | |||
18348 | |||
18349 | |||
18350 | |||
18351 | |||
18352 | |||
18353 | |||
18354 | |||
18355 | |||
18356 | |||
18357 | |||
18358 | |||
18359 | |||
18360 | |||
18361 | #pragma interface | ||
18362 | |||
18363 | |||
18364 | |||
18365 | |||
18366 | |||
18367 | |||
18368 | extern "C" { | ||
18369 | |||
18370 | } | ||
18371 | |||
18372 | |||
18373 | # 1 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stdarg.h" 1 3 | ||
18374 | |||
18375 | |||
18376 | |||
18377 | |||
18378 | |||
18379 | |||
18380 | |||
18381 | |||
18382 | |||
18383 | |||
18384 | |||
18385 | |||
18386 | |||
18387 | |||
18388 | |||
18389 | |||
18390 | |||
18391 | |||
18392 | |||
18393 | |||
18394 | |||
18395 | |||
18396 | |||
18397 | |||
18398 | |||
18399 | |||
18400 | |||
18401 | |||
18402 | |||
18403 | |||
18404 | |||
18405 | |||
18406 | |||
18407 | |||
18408 | |||
18409 | |||
18410 | |||
18411 | |||
18412 | |||
18413 | |||
18414 | |||
18415 | |||
18416 | |||
18417 | |||
18418 | |||
18419 | |||
18420 | |||
18421 | |||
18422 | |||
18423 | |||
18424 | |||
18425 | |||
18426 | |||
18427 | |||
18428 | |||
18429 | |||
18430 | |||
18431 | |||
18432 | |||
18433 | |||
18434 | |||
18435 | |||
18436 | |||
18437 | |||
18438 | |||
18439 | |||
18440 | |||
18441 | |||
18442 | |||
18443 | |||
18444 | |||
18445 | |||
18446 | |||
18447 | |||
18448 | |||
18449 | |||
18450 | |||
18451 | |||
18452 | |||
18453 | |||
18454 | |||
18455 | |||
18456 | |||
18457 | |||
18458 | |||
18459 | |||
18460 | |||
18461 | |||
18462 | |||
18463 | |||
18464 | |||
18465 | |||
18466 | |||
18467 | |||
18468 | |||
18469 | |||
18470 | |||
18471 | |||
18472 | void va_end (__gnuc_va_list); | ||
18473 | |||
18474 | |||
18475 | |||
18476 | |||
18477 | |||
18478 | |||
18479 | |||
18480 | |||
18481 | |||
18482 | |||
18483 | |||
18484 | |||
18485 | |||
18486 | |||
18487 | |||
18488 | |||
18489 | |||
18490 | |||
18491 | |||
18492 | |||
18493 | |||
18494 | |||
18495 | |||
18496 | |||
18497 | |||
18498 | |||
18499 | |||
18500 | |||
18501 | |||
18502 | |||
18503 | |||
18504 | |||
18505 | |||
18506 | |||
18507 | |||
18508 | |||
18509 | |||
18510 | |||
18511 | |||
18512 | |||
18513 | |||
18514 | |||
18515 | |||
18516 | |||
18517 | |||
18518 | |||
18519 | |||
18520 | |||
18521 | |||
18522 | |||
18523 | |||
18524 | |||
18525 | |||
18526 | |||
18527 | |||
18528 | |||
18529 | |||
18530 | |||
18531 | # 175 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stdarg.h" 3 | ||
18532 | |||
18533 | |||
18534 | |||
18535 | |||
18536 | |||
18537 | |||
18538 | |||
18539 | |||
18540 | |||
18541 | |||
18542 | |||
18543 | |||
18544 | |||
18545 | typedef __gnuc_va_list va_list; | ||
18546 | |||
18547 | |||
18548 | |||
18549 | |||
18550 | |||
18551 | |||
18552 | |||
18553 | |||
18554 | |||
18555 | |||
18556 | |||
18557 | |||
18558 | |||
18559 | |||
18560 | |||
18561 | |||
18562 | |||
18563 | |||
18564 | |||
18565 | |||
18566 | |||
18567 | |||
18568 | |||
18569 | |||
18570 | # 40 "/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/streambuf.h" 2 3 | ||
18571 | |||
18572 | |||
18573 | |||
18574 | |||
18575 | |||
18576 | |||
18577 | |||
18578 | |||
18579 | |||
18580 | |||
18581 | |||
18582 | |||
18583 | |||
18584 | |||
18585 | |||
18586 | |||
18587 | |||
18588 | |||
18589 | |||
18590 | |||
18591 | |||
18592 | |||
18593 | |||
18594 | |||
18595 | |||
18596 | extern "C++" { | ||
18597 | class istream; | ||
18598 | class ostream; class streambuf; | ||
18599 | |||
18600 | |||
18601 | |||
18602 | |||
18603 | |||
18604 | |||
18605 | typedef __off64_t streamoff; | ||
18606 | typedef __off64_t streampos; | ||
18607 | |||
18608 | |||
18609 | |||
18610 | |||
18611 | typedef __ssize_t streamsize; | ||
18612 | |||
18613 | typedef unsigned long __fmtflags; | ||
18614 | typedef unsigned char __iostate; | ||
18615 | |||
18616 | struct _ios_fields | ||
18617 | { | ||
18618 | streambuf *_strbuf; | ||
18619 | ostream* _tie; | ||
18620 | int _width; | ||
18621 | __fmtflags _flags; | ||
18622 | wchar_t _fill; | ||
18623 | __iostate _state; | ||
18624 | __iostate _exceptions; | ||
18625 | int _precision; | ||
18626 | |||
18627 | void *_arrays; | ||
18628 | }; | ||
18629 | |||
18630 | |||
18631 | |||
18632 | |||
18633 | |||
18634 | |||
18635 | |||
18636 | |||
18637 | |||
18638 | |||
18639 | |||
18640 | |||
18641 | |||
18642 | |||
18643 | |||
18644 | # 124 "/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/streambuf.h" 3 | ||
18645 | |||
18646 | |||
18647 | class ios : public _ios_fields { | ||
18648 | ios& operator=(ios&); | ||
18649 | ios (const ios&); | ||
18650 | public: | ||
18651 | typedef __fmtflags fmtflags; | ||
18652 | typedef int iostate; | ||
18653 | typedef int openmode; | ||
18654 | typedef __ssize_t streamsize; | ||
18655 | enum io_state { | ||
18656 | goodbit = 0 , | ||
18657 | eofbit = 1 , | ||
18658 | failbit = 2 , | ||
18659 | badbit = 4 }; | ||
18660 | enum open_mode { | ||
18661 | in = 1 , | ||
18662 | out = 2 , | ||
18663 | ate = 4 , | ||
18664 | app = 8 , | ||
18665 | trunc = 16 , | ||
18666 | nocreate = 32 , | ||
18667 | noreplace = 64 , | ||
18668 | bin = 128 , | ||
18669 | binary = 128 }; | ||
18670 | enum seek_dir { beg, cur, end}; | ||
18671 | typedef enum seek_dir seekdir; | ||
18672 | |||
18673 | enum { skipws= 01 , | ||
18674 | left= 02 , right= 04 , internal= 010 , | ||
18675 | dec= 020 , oct= 040 , hex= 0100 , | ||
18676 | showbase= 0200 , showpoint= 0400 , | ||
18677 | uppercase= 01000 , showpos= 02000 , | ||
18678 | scientific= 04000 , fixed= 010000 , | ||
18679 | unitbuf= 020000 , stdio= 040000 | ||
18680 | |||
18681 | |||
18682 | |||
18683 | }; | ||
18684 | enum { | ||
18685 | basefield=dec+oct+hex, | ||
18686 | floatfield = scientific+fixed, | ||
18687 | adjustfield = left+right+internal | ||
18688 | }; | ||
18689 | |||
18690 | # 177 "/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/streambuf.h" 3 | ||
18691 | |||
18692 | |||
18693 | ostream* tie() const { return _tie; } | ||
18694 | ostream* tie(ostream* val) { ostream* save=_tie; _tie=val; return save; } | ||
18695 | |||
18696 | |||
18697 | wchar_t fill() const { return _fill; } | ||
18698 | wchar_t fill(wchar_t newf) | ||
18699 | {wchar_t oldf = _fill; _fill = newf; return oldf;} | ||
18700 | fmtflags flags() const { return _flags; } | ||
18701 | fmtflags flags(fmtflags new_val) { | ||
18702 | fmtflags old_val = _flags; _flags = new_val; return old_val; } | ||
18703 | int precision() const { return _precision; } | ||
18704 | int precision(int newp) { | ||
18705 | unsigned short oldp = _precision; _precision = (unsigned short)newp; | ||
18706 | return oldp; } | ||
18707 | fmtflags setf(fmtflags val) { | ||
18708 | fmtflags oldbits = _flags; | ||
18709 | _flags |= val; return oldbits; } | ||
18710 | fmtflags setf(fmtflags val, fmtflags mask) { | ||
18711 | fmtflags oldbits = _flags; | ||
18712 | _flags = (_flags & ~mask) | (val & mask); return oldbits; } | ||
18713 | fmtflags unsetf(fmtflags mask) { | ||
18714 | fmtflags oldbits = _flags; | ||
18715 | _flags &= ~mask; return oldbits; } | ||
18716 | int width() const { return _width; } | ||
18717 | int width(int val) { int save = _width; _width = val; return save; } | ||
18718 | |||
18719 | |||
18720 | |||
18721 | |||
18722 | void _throw_failure() const { } | ||
18723 | |||
18724 | void clear(iostate state = 0) { | ||
18725 | _state = _strbuf ? state : state|badbit; | ||
18726 | if (_state & _exceptions) _throw_failure(); } | ||
18727 | void set(iostate flag) { _state |= flag; | ||
18728 | if (_state & _exceptions) _throw_failure(); } | ||
18729 | void setstate(iostate flag) { _state |= flag; | ||
18730 | if (_state & _exceptions) _throw_failure(); } | ||
18731 | int good() const { return _state == 0; } | ||
18732 | int eof() const { return _state & ios::eofbit; } | ||
18733 | int fail() const { return _state & (ios::badbit|ios::failbit); } | ||
18734 | int bad() const { return _state & ios::badbit; } | ||
18735 | iostate rdstate() const { return _state; } | ||
18736 | operator void*() const { return fail() ? (void*)0 : (void*)(-1); } | ||
18737 | int operator!() const { return fail(); } | ||
18738 | iostate exceptions() const { return _exceptions; } | ||
18739 | void exceptions(iostate enable) { | ||
18740 | _exceptions = enable; | ||
18741 | if (_state & _exceptions) _throw_failure(); } | ||
18742 | |||
18743 | streambuf* rdbuf() const { return _strbuf; } | ||
18744 | streambuf* rdbuf(streambuf *_s) { | ||
18745 | streambuf *_old = _strbuf; _strbuf = _s; clear (); return _old; } | ||
18746 | |||
18747 | static int sync_with_stdio(int on); | ||
18748 | static void sync_with_stdio() { sync_with_stdio(1); } | ||
18749 | static fmtflags bitalloc(); | ||
18750 | static int xalloc(); | ||
18751 | void*& pword(int); | ||
18752 | void* pword(int) const; | ||
18753 | long& iword(int); | ||
18754 | long iword(int) const; | ||
18755 | |||
18756 | |||
18757 | |||
18758 | |||
18759 | |||
18760 | |||
18761 | |||
18762 | |||
18763 | |||
18764 | |||
18765 | class Init { | ||
18766 | public: | ||
18767 | Init () { } | ||
18768 | }; | ||
18769 | |||
18770 | protected: | ||
18771 | inline ios(streambuf* sb = 0, ostream* tie_to = 0); | ||
18772 | inline virtual ~ios(); | ||
18773 | inline void init(streambuf* sb, ostream* tie = 0); | ||
18774 | }; | ||
18775 | |||
18776 | |||
18777 | |||
18778 | |||
18779 | typedef ios::seek_dir _seek_dir; | ||
18780 | |||
18781 | |||
18782 | |||
18783 | |||
18784 | |||
18785 | |||
18786 | |||
18787 | |||
18788 | |||
18789 | |||
18790 | class streammarker : private _IO_marker { | ||
18791 | friend class streambuf; | ||
18792 | void set_offset(int offset) { _pos = offset; } | ||
18793 | public: | ||
18794 | streammarker(streambuf *sb); | ||
18795 | ~streammarker(); | ||
18796 | int saving() { return 1; } | ||
18797 | int delta(streammarker&); | ||
18798 | int delta(); | ||
18799 | }; | ||
18800 | |||
18801 | struct streambuf : public _IO_FILE { | ||
18802 | friend class ios; | ||
18803 | friend class istream; | ||
18804 | friend class ostream; | ||
18805 | friend class streammarker; | ||
18806 | const void *&_vtable() { return *(const void**)((_IO_FILE*)this + 1); } | ||
18807 | protected: | ||
18808 | static streambuf* _list_all; | ||
18809 | _IO_FILE*& xchain() { return _chain; } | ||
18810 | void _un_link(); | ||
18811 | void _link_in(); | ||
18812 | char* gptr() const | ||
18813 | { return _flags & 0x100 ? _IO_save_base : _IO_read_ptr; } | ||
18814 | char* pptr() const { return _IO_write_ptr; } | ||
18815 | char* egptr() const | ||
18816 | { return _flags & 0x100 ? _IO_save_end : _IO_read_end; } | ||
18817 | char* epptr() const { return _IO_write_end; } | ||
18818 | char* pbase() const { return _IO_write_base; } | ||
18819 | char* eback() const | ||
18820 | { return _flags & 0x100 ? _IO_save_base : _IO_read_base;} | ||
18821 | char* base() const { return _IO_buf_base; } | ||
18822 | char* ebuf() const { return _IO_buf_end; } | ||
18823 | int blen() const { return _IO_buf_end - _IO_buf_base; } | ||
18824 | void xput_char(char c) { *_IO_write_ptr++ = c; } | ||
18825 | int xflags() { return _flags ; } | ||
18826 | int xflags(int f) {int fl = _flags ; _flags = f; return fl;} | ||
18827 | void xsetflags(int f) { _flags |= f; } | ||
18828 | void xsetflags(int f, int mask) | ||
18829 | { _flags = (_flags & ~mask) | (f & mask); } | ||
18830 | void gbump(int n) | ||
18831 | { _flags & 0x100 ? (_IO_save_base+=n):(_IO_read_ptr+=n);} | ||
18832 | void pbump(int n) { _IO_write_ptr += n; } | ||
18833 | void setb(char* b, char* eb, int a=0); | ||
18834 | void setp(char* p, char* ep) | ||
18835 | { _IO_write_base=_IO_write_ptr=p; _IO_write_end=ep; } | ||
18836 | void setg(char* eb, char* g, char *eg) { | ||
18837 | if (_flags & 0x100 ) _IO_free_backup_area(this); | ||
18838 | _IO_read_base = eb; _IO_read_ptr = g; _IO_read_end = eg; } | ||
18839 | char *shortbuf() { return _shortbuf; } | ||
18840 | |||
18841 | int in_backup() { return _flags & 0x100 ; } | ||
18842 | |||
18843 | char *Gbase() { return in_backup() ? _IO_save_base : _IO_read_base; } | ||
18844 | |||
18845 | char *eGptr() { return in_backup() ? _IO_save_end : _IO_read_end; } | ||
18846 | |||
18847 | char *Bbase() { return in_backup() ? _IO_read_base : _IO_save_base; } | ||
18848 | char *Bptr() { return _IO_backup_base; } | ||
18849 | |||
18850 | char *eBptr() { return in_backup() ? _IO_read_end : _IO_save_end; } | ||
18851 | char *Nbase() { return _IO_save_base; } | ||
18852 | char *eNptr() { return _IO_save_end; } | ||
18853 | int have_backup() { return _IO_save_base != __null ; } | ||
18854 | int have_markers() { return _markers != __null ; } | ||
18855 | void free_backup_area(); | ||
18856 | void unsave_markers(); | ||
18857 | int put_mode() { return _flags & 0x800 ; } | ||
18858 | int switch_to_get_mode(); | ||
18859 | |||
18860 | streambuf(int flags=0); | ||
18861 | public: | ||
18862 | static int flush_all(); | ||
18863 | static void flush_all_linebuffered(); | ||
18864 | virtual ~streambuf(); | ||
18865 | virtual int overflow(int c = (-1) ); | ||
18866 | virtual int underflow(); | ||
18867 | virtual int uflow(); | ||
18868 | virtual int pbackfail(int c); | ||
18869 | |||
18870 | virtual streamsize xsputn(const char* s, streamsize n); | ||
18871 | virtual streamsize xsgetn(char* s, streamsize n); | ||
18872 | virtual streampos seekoff(streamoff, _seek_dir, int mode=ios::in|ios::out); | ||
18873 | virtual streampos seekpos(streampos pos, int mode = ios::in|ios::out); | ||
18874 | |||
18875 | streampos pubseekoff(streamoff o, _seek_dir d, int mode=ios::in|ios::out) | ||
18876 | { return _IO_seekoff (this, o, d, mode); } | ||
18877 | streampos pubseekpos(streampos pos, int mode = ios::in|ios::out) | ||
18878 | { return _IO_seekpos (this, pos, mode); } | ||
18879 | streampos sseekoff(streamoff, _seek_dir, int mode=ios::in|ios::out); | ||
18880 | streampos sseekpos(streampos pos, int mode = ios::in|ios::out); | ||
18881 | virtual streambuf* setbuf(char* p, int len); | ||
18882 | virtual int sync(); | ||
18883 | virtual int doallocate(); | ||
18884 | |||
18885 | int seekmark(streammarker& mark, int delta = 0); | ||
18886 | int sputbackc(char c); | ||
18887 | int sungetc(); | ||
18888 | int unbuffered() { return _flags & 2 ? 1 : 0; } | ||
18889 | int linebuffered() { return _flags & 0x200 ? 1 : 0; } | ||
18890 | void unbuffered(int i) | ||
18891 | { if (i) _flags |= 2 ; else _flags &= ~2 ; } | ||
18892 | void linebuffered(int i) | ||
18893 | { if (i) _flags |= 0x200 ; else _flags &= ~0x200 ; } | ||
18894 | int allocate() { | ||
18895 | if (base() || unbuffered()) return 0; | ||
18896 | else return doallocate(); } | ||
18897 | |||
18898 | void allocbuf() { if (base() == __null ) doallocbuf(); } | ||
18899 | void doallocbuf(); | ||
18900 | int in_avail() { return _IO_read_end - _IO_read_ptr; } | ||
18901 | int out_waiting() { return _IO_write_ptr - _IO_write_base; } | ||
18902 | streamsize sputn(const char* s, streamsize n) { return xsputn(s, n); } | ||
18903 | streamsize padn(char pad, streamsize n) { return _IO_padn(this, pad, n); } | ||
18904 | streamsize sgetn(char* s, streamsize n) { return _IO_sgetn(this, s, n); } | ||
18905 | int ignore(int); | ||
18906 | int get_column(); | ||
18907 | int set_column(int); | ||
18908 | long sgetline(char* buf, size_t n, char delim, int putback_delim); | ||
18909 | int sputc(int c) { return _IO_putc(c, this); } | ||
18910 | int sbumpc() { return _IO_getc(this); } | ||
18911 | int sgetc() { return (( this )->_IO_read_ptr >= ( this )->_IO_read_end && __underflow ( this ) == (-1) ? (-1) : *(unsigned char *) ( this )->_IO_read_ptr) ; } | ||
18912 | int snextc() { | ||
18913 | if (_IO_read_ptr >= _IO_read_end && __underflow(this) == (-1) ) | ||
18914 | return (-1) ; | ||
18915 | else return _IO_read_ptr++, sgetc(); } | ||
18916 | void stossc() { if (_IO_read_ptr < _IO_read_end) _IO_read_ptr++; } | ||
18917 | int vscan(char const *fmt0, __gnuc_va_list ap, ios* stream = __null ); | ||
18918 | int scan(char const *fmt0 ...); | ||
18919 | int vform(char const *fmt0, __gnuc_va_list ap); | ||
18920 | int form(char const *fmt0 ...); | ||
18921 | |||
18922 | |||
18923 | |||
18924 | |||
18925 | virtual streamsize sys_read(char* buf, streamsize size); | ||
18926 | virtual streamsize sys_write(const char*, streamsize); | ||
18927 | virtual streampos sys_seek(streamoff, _seek_dir); | ||
18928 | virtual int sys_close(); | ||
18929 | virtual int sys_stat(void*); | ||
18930 | |||
18931 | virtual int showmanyc(); | ||
18932 | virtual void imbue(void *); | ||
18933 | |||
18934 | }; | ||
18935 | |||
18936 | |||
18937 | |||
18938 | |||
18939 | class filebuf : public streambuf { | ||
18940 | protected: | ||
18941 | void init(); | ||
18942 | public: | ||
18943 | static const int openprot; | ||
18944 | filebuf(); | ||
18945 | filebuf(int fd); | ||
18946 | filebuf(int fd, char* p, int len); | ||
18947 | |||
18948 | |||
18949 | |||
18950 | ~filebuf(); | ||
18951 | filebuf* attach(int fd); | ||
18952 | filebuf* open(const char *filename, const char *mode); | ||
18953 | filebuf* open(const char *filename, ios::openmode mode, int prot = 0664); | ||
18954 | virtual int underflow(); | ||
18955 | virtual int overflow(int c = (-1) ); | ||
18956 | int is_open() const { return _fileno >= 0; } | ||
18957 | int fd() const { return is_open() ? _fileno : (-1) ; } | ||
18958 | filebuf* close(); | ||
18959 | virtual int doallocate(); | ||
18960 | virtual streampos seekoff(streamoff, _seek_dir, int mode=ios::in|ios::out); | ||
18961 | virtual streambuf* setbuf(char* p, int len); | ||
18962 | streamsize xsputn(const char* s, streamsize n); | ||
18963 | streamsize xsgetn(char* s, streamsize n); | ||
18964 | virtual int sync(); | ||
18965 | protected: | ||
18966 | |||
18967 | int is_reading() { return eback() != egptr(); } | ||
18968 | char* cur_ptr() { return is_reading() ? gptr() : pptr(); } | ||
18969 | |||
18970 | char* file_ptr() { return eGptr(); } | ||
18971 | |||
18972 | virtual streamsize sys_read(char* buf, streamsize size); | ||
18973 | virtual streampos sys_seek(streamoff, _seek_dir); | ||
18974 | virtual streamsize sys_write(const char*, streamsize); | ||
18975 | virtual int sys_stat(void*); | ||
18976 | virtual int sys_close(); | ||
18977 | |||
18978 | |||
18979 | |||
18980 | |||
18981 | }; | ||
18982 | |||
18983 | inline void ios::init(streambuf* sb, ostream* tie_to) { | ||
18984 | _state = sb ? ios::goodbit : ios::badbit; _exceptions=0; | ||
18985 | _strbuf=sb; _tie = tie_to; _width=0; _fill=' '; | ||
18986 | |||
18987 | _flags=ios::skipws|ios::dec; | ||
18988 | |||
18989 | |||
18990 | |||
18991 | _precision=6; _arrays = 0; } | ||
18992 | |||
18993 | inline ios::ios(streambuf* sb, ostream* tie_to) { init(sb, tie_to); } | ||
18994 | |||
18995 | inline ios::~ios() { | ||
18996 | |||
18997 | |||
18998 | |||
18999 | |||
19000 | |||
19001 | operator delete[] (_arrays); | ||
19002 | } | ||
19003 | } | ||
19004 | |||
19005 | # 31 "/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/iostream.h" 2 3 | ||
19006 | |||
19007 | |||
19008 | extern "C++" { | ||
19009 | class istream; class ostream; | ||
19010 | typedef ios& (*__manip)(ios&); | ||
19011 | typedef istream& (*__imanip)(istream&); | ||
19012 | typedef ostream& (*__omanip)(ostream&); | ||
19013 | |||
19014 | extern istream& ws(istream& ins); | ||
19015 | extern ostream& flush(ostream& outs); | ||
19016 | extern ostream& endl(ostream& outs); | ||
19017 | extern ostream& ends(ostream& outs); | ||
19018 | |||
19019 | class ostream : virtual public ios | ||
19020 | { | ||
19021 | |||
19022 | void do_osfx(); | ||
19023 | public: | ||
19024 | ostream() { } | ||
19025 | ostream(streambuf* sb, ostream* tied= __null ); | ||
19026 | int opfx() { | ||
19027 | if (!good()) return 0; | ||
19028 | else { if (_tie) _tie->flush(); ; return 1;} } | ||
19029 | void osfx() { ; | ||
19030 | if (flags() & (ios::unitbuf|ios::stdio)) | ||
19031 | do_osfx(); } | ||
19032 | ostream& flush(); | ||
19033 | ostream& put(char c) { _strbuf->sputc(c); return *this; } | ||
19034 | |||
19035 | |||
19036 | |||
19037 | |||
19038 | |||
19039 | ostream& write(const char *s, streamsize n); | ||
19040 | ostream& write(const unsigned char *s, streamsize n) | ||
19041 | { return write((const char*)s, n);} | ||
19042 | ostream& write(const signed char *s, streamsize n) | ||
19043 | { return write((const char*)s, n);} | ||
19044 | ostream& write(const void *s, streamsize n) | ||
19045 | { return write((const char*)s, n);} | ||
19046 | ostream& seekp(streampos); | ||
19047 | ostream& seekp(streamoff, _seek_dir); | ||
19048 | streampos tellp(); | ||
19049 | ostream& form(const char *format ...); | ||
19050 | ostream& vform(const char *format, __gnuc_va_list args); | ||
19051 | |||
19052 | ostream& operator<<(char c); | ||
19053 | ostream& operator<<(unsigned char c) { return (*this) << (char)c; } | ||
19054 | ostream& operator<<(signed char c) { return (*this) << (char)c; } | ||
19055 | ostream& operator<<(const char *s); | ||
19056 | ostream& operator<<(const unsigned char *s) | ||
19057 | { return (*this) << (const char*)s; } | ||
19058 | ostream& operator<<(const signed char *s) | ||
19059 | { return (*this) << (const char*)s; } | ||
19060 | ostream& operator<<(const void *p); | ||
19061 | ostream& operator<<(int n); | ||
19062 | ostream& operator<<(unsigned int n); | ||
19063 | ostream& operator<<(long n); | ||
19064 | ostream& operator<<(unsigned long n); | ||
19065 | |||
19066 | __extension__ ostream& operator<<(long long n); | ||
19067 | __extension__ ostream& operator<<(unsigned long long n); | ||
19068 | |||
19069 | ostream& operator<<(short n) {return operator<<((int)n);} | ||
19070 | ostream& operator<<(unsigned short n) {return operator<<((unsigned int)n);} | ||
19071 | |||
19072 | ostream& operator<<(bool b) { return operator<<((int)b); } | ||
19073 | |||
19074 | ostream& operator<<(double n); | ||
19075 | ostream& operator<<(float n) { return operator<<((double)n); } | ||
19076 | |||
19077 | ostream& operator<<(long double n); | ||
19078 | |||
19079 | |||
19080 | |||
19081 | ostream& operator<<(__omanip func) { return (*func)(*this); } | ||
19082 | ostream& operator<<(__manip func) {(*func)(*this); return *this;} | ||
19083 | ostream& operator<<(streambuf*); | ||
19084 | |||
19085 | |||
19086 | |||
19087 | }; | ||
19088 | |||
19089 | class istream : virtual public ios | ||
19090 | { | ||
19091 | |||
19092 | protected: | ||
19093 | size_t _gcount; | ||
19094 | |||
19095 | int _skip_ws(); | ||
19096 | public: | ||
19097 | istream(): _gcount (0) { } | ||
19098 | istream(streambuf* sb, ostream*tied= __null ); | ||
19099 | istream& get(char* ptr, int len, char delim = '\n'); | ||
19100 | istream& get(unsigned char* ptr, int len, char delim = '\n') | ||
19101 | { return get((char*)ptr, len, delim); } | ||
19102 | istream& get(char& c); | ||
19103 | istream& get(unsigned char& c) { return get((char&)c); } | ||
19104 | istream& getline(char* ptr, int len, char delim = '\n'); | ||
19105 | istream& getline(unsigned char* ptr, int len, char delim = '\n') | ||
19106 | { return getline((char*)ptr, len, delim); } | ||
19107 | istream& get(signed char& c) { return get((char&)c); } | ||
19108 | istream& get(signed char* ptr, int len, char delim = '\n') | ||
19109 | { return get((char*)ptr, len, delim); } | ||
19110 | istream& getline(signed char* ptr, int len, char delim = '\n') | ||
19111 | { return getline((char*)ptr, len, delim); } | ||
19112 | istream& read(char *ptr, streamsize n); | ||
19113 | istream& read(unsigned char *ptr, streamsize n) | ||
19114 | { return read((char*)ptr, n); } | ||
19115 | istream& read(signed char *ptr, streamsize n) | ||
19116 | { return read((char*)ptr, n); } | ||
19117 | istream& read(void *ptr, streamsize n) | ||
19118 | { return read((char*)ptr, n); } | ||
19119 | istream& get(streambuf& sb, char delim = '\n'); | ||
19120 | istream& gets(char **s, char delim = '\n'); | ||
19121 | int ipfx(int need = 0) { | ||
19122 | if (!good()) { set(ios::failbit); return 0; } | ||
19123 | else { | ||
19124 | ; | ||
19125 | if (_tie && (need == 0 || rdbuf()->in_avail() < need)) _tie->flush(); | ||
19126 | if (!need && (flags() & ios::skipws)) return _skip_ws(); | ||
19127 | else return 1; | ||
19128 | } | ||
19129 | } | ||
19130 | int ipfx0() { | ||
19131 | if (!good()) { set(ios::failbit); return 0; } | ||
19132 | else { | ||
19133 | ; | ||
19134 | if (_tie) _tie->flush(); | ||
19135 | if (flags() & ios::skipws) return _skip_ws(); | ||
19136 | else return 1; | ||
19137 | } | ||
19138 | } | ||
19139 | int ipfx1() { | ||
19140 | if (!good()) { set(ios::failbit); return 0; } | ||
19141 | else { | ||
19142 | ; | ||
19143 | if (_tie && rdbuf()->in_avail() == 0) _tie->flush(); | ||
19144 | return 1; | ||
19145 | } | ||
19146 | } | ||
19147 | void isfx() { ; } | ||
19148 | int get() { if (!ipfx1()) return (-1) ; | ||
19149 | else { int ch = _strbuf->sbumpc(); | ||
19150 | if (ch == (-1) ) set(ios::eofbit); | ||
19151 | isfx(); | ||
19152 | return ch; | ||
19153 | } } | ||
19154 | int peek(); | ||
19155 | size_t gcount() { return _gcount; } | ||
19156 | istream& ignore(int n=1, int delim = (-1) ); | ||
19157 | int sync (); | ||
19158 | istream& seekg(streampos); | ||
19159 | istream& seekg(streamoff, _seek_dir); | ||
19160 | streampos tellg(); | ||
19161 | istream& putback(char ch) { | ||
19162 | if (good() && _strbuf->sputbackc(ch) == (-1) ) clear(ios::badbit); | ||
19163 | return *this;} | ||
19164 | istream& unget() { | ||
19165 | if (good() && _strbuf->sungetc() == (-1) ) clear(ios::badbit); | ||
19166 | return *this;} | ||
19167 | istream& scan(const char *format ...); | ||
19168 | istream& vscan(const char *format, __gnuc_va_list args); | ||
19169 | |||
19170 | |||
19171 | |||
19172 | |||
19173 | |||
19174 | |||
19175 | istream& operator>>(char*); | ||
19176 | istream& operator>>(unsigned char* p) { return operator>>((char*)p); } | ||
19177 | istream& operator>>(signed char*p) { return operator>>((char*)p); } | ||
19178 | istream& operator>>(char& c); | ||
19179 | istream& operator>>(unsigned char& c) {return operator>>((char&)c);} | ||
19180 | istream& operator>>(signed char& c) {return operator>>((char&)c);} | ||
19181 | istream& operator>>(int&); | ||
19182 | istream& operator>>(long&); | ||
19183 | |||
19184 | __extension__ istream& operator>>(long long&); | ||
19185 | __extension__ istream& operator>>(unsigned long long&); | ||
19186 | |||
19187 | istream& operator>>(short&); | ||
19188 | istream& operator>>(unsigned int&); | ||
19189 | istream& operator>>(unsigned long&); | ||
19190 | istream& operator>>(unsigned short&); | ||
19191 | |||
19192 | istream& operator>>(bool&); | ||
19193 | |||
19194 | istream& operator>>(float&); | ||
19195 | istream& operator>>(double&); | ||
19196 | istream& operator>>(long double&); | ||
19197 | istream& operator>>( __manip func) {(*func)(*this); return *this;} | ||
19198 | istream& operator>>(__imanip func) { return (*func)(*this); } | ||
19199 | istream& operator>>(streambuf*); | ||
19200 | }; | ||
19201 | |||
19202 | class iostream : public istream, public ostream | ||
19203 | { | ||
19204 | public: | ||
19205 | iostream() { } | ||
19206 | iostream(streambuf* sb, ostream*tied= __null ); | ||
19207 | }; | ||
19208 | |||
19209 | class _IO_istream_withassign : public istream { | ||
19210 | public: | ||
19211 | _IO_istream_withassign& operator=(istream&); | ||
19212 | _IO_istream_withassign& operator=(_IO_istream_withassign& rhs) | ||
19213 | { return operator= (static_cast<istream&> (rhs)); } | ||
19214 | }; | ||
19215 | |||
19216 | class _IO_ostream_withassign : public ostream { | ||
19217 | public: | ||
19218 | _IO_ostream_withassign& operator=(ostream&); | ||
19219 | _IO_ostream_withassign& operator=(_IO_ostream_withassign& rhs) | ||
19220 | { return operator= (static_cast<ostream&> (rhs)); } | ||
19221 | }; | ||
19222 | |||
19223 | extern _IO_istream_withassign cin; | ||
19224 | |||
19225 | extern _IO_ostream_withassign cout, cerr; | ||
19226 | |||
19227 | extern _IO_ostream_withassign clog | ||
19228 | |||
19229 | |||
19230 | |||
19231 | ; | ||
19232 | |||
19233 | extern istream& lock(istream& ins); | ||
19234 | extern istream& unlock(istream& ins); | ||
19235 | extern ostream& lock(ostream& outs); | ||
19236 | extern ostream& unlock(ostream& outs); | ||
19237 | |||
19238 | struct Iostream_init { } ; | ||
19239 | |||
19240 | inline ios& dec(ios& i) | ||
19241 | { i.setf(ios::dec, ios::dec|ios::hex|ios::oct); return i; } | ||
19242 | inline ios& hex(ios& i) | ||
19243 | { i.setf(ios::hex, ios::dec|ios::hex|ios::oct); return i; } | ||
19244 | inline ios& oct(ios& i) | ||
19245 | { i.setf(ios::oct, ios::dec|ios::hex|ios::oct); return i; } | ||
19246 | } | ||
19247 | |||
19248 | |||
19249 | # 13 "today.cpp" 2 | ||
19250 | |||
19251 | |||
19252 | |||
19253 | |||
19254 | |||
19255 | |||
19256 | Today::Today( QWidget* parent, const char* name, WFlags fl ) | ||
19257 | : TodayBase( parent, name, fl ) | ||
19258 | { | ||
19259 | QDate date = QDate::currentDate(); | ||
19260 | QString text = (date.toString()); | ||
19261 | TextLabel1->setText(text); | ||
19262 | db = new DateBookDB; | ||
19263 | getDates(); | ||
19264 | } | ||
19265 | |||
19266 | |||
19267 | |||
19268 | |||
19269 | |||
19270 | |||
19271 | void Today::getDates() | ||
19272 | { | ||
19273 | QDate date = QDate::currentDate(); | ||
19274 | QValueList<EffectiveEvent> list = db->getEffectiveEvents(date, date); | ||
19275 | Config config( "qpe" ); | ||
19276 | bool ampm = config.readBoolEntry( "AMPM", TRUE ); | ||
19277 | |||
19278 | |||
19279 | if ( list.count() > 0 ) { | ||
19280 | QString msg; | ||
19281 | for ( QValueList<EffectiveEvent>::ConstIterator it=list.begin(); | ||
19282 | it!=list.end(); ++it ) { | ||
19283 | |||
19284 | msg += "<B>" + (*it).description() + "</B>" | ||
19285 | |||
19286 | + "<BR>" | ||
19287 | + TimeString::dateString((*it).event().start(),ampm) | ||
19288 | + "<BR>" | ||
19289 | + (*it).notes() + ""; | ||
19290 | } | ||
19291 | DatesField->setText(msg); | ||
19292 | } | ||
19293 | } | ||
19294 | |||
19295 | |||
19296 | |||
19297 | |||
19298 | |||
19299 | |||
19300 | int Today::getTodo() | ||
19301 | { | ||
19302 | QDomDocument dom; | ||
19303 | QDomElement tel; | ||
19304 | |||
19305 | QFile f("todolist.xml"); | ||
19306 | if(f.open(0x0001 )) | ||
19307 | { | ||
19308 | if(dom.setContent(&f)) | ||
19309 | { | ||
19310 | tel = dom.documentElement(); | ||
19311 | if(tel.tagName() == "!DOCTYPE Tasks") | ||
19312 | { | ||
19313 | for(QDomNode el = tel.firstChild(); !el.isNull(); el = el.nextSibling()) | ||
19314 | { | ||
19315 | cout << "ELEMENT: " << el.nodeName().latin1() << endl; | ||
19316 | if(el.nodeName() == "LIGHTING") | ||
19317 | { | ||
19318 | } | ||
19319 | else if(el.nodeName() == "MESH") | ||
19320 | { | ||
19321 | } | ||
19322 | else cout << ("Unknown element name: " + el.nodeName() + " (in <WORLD>)"); | ||
19323 | } | ||
19324 | } | ||
19325 | else | ||
19326 | { | ||
19327 | cout << ("Invalid root element name"); | ||
19328 | return 0; | ||
19329 | } | ||
19330 | } | ||
19331 | else | ||
19332 | { | ||
19333 | cout << ("Invalid data format"); | ||
19334 | return 0; | ||
19335 | } | ||
19336 | } | ||
19337 | else | ||
19338 | { | ||
19339 | cout << ("Invalid file"); | ||
19340 | return 0; | ||
19341 | } | ||
19342 | return 1; | ||
19343 | } | ||
19344 | |||
19345 | |||
19346 | |||
19347 | |||
19348 | |||
19349 | Today::~Today() | ||
19350 | { | ||
19351 | |||
19352 | } | ||
19353 | |||
19354 | |||
19355 | |||
19356 | |||
19357 | void Today::goodBye() | ||
19358 | { | ||
19359 | close(); | ||
19360 | } | ||