Fix crash if key bindings specified in profile cannot be found. Improve
[personal-kdebase.git] / apps / kinfocenter / base / os_current.h
blob38b3de4a5cd17b300bffd9a5496c39f0ead333dd
1 #ifndef OS_CURRENT_H_
2 #define OS_CURRENT_H_
4 class QTreeWidget;
5 class QTreeWidgetItem;
6 class QString;
8 /* function call-back-prototypes... */
10 bool GetInfo_CPU(QTreeWidget* tree);
11 bool GetInfo_IRQ(QTreeWidget* tree);
12 bool GetInfo_DMA(QTreeWidget* tree);
13 bool GetInfo_PCI(QTreeWidget* tree);
14 bool GetInfo_IO_Ports(QTreeWidget* tree);
15 bool GetInfo_Sound(QTreeWidget* tree);
16 bool GetInfo_Devices(QTreeWidget* tree);
17 bool GetInfo_SCSI(QTreeWidget* tree);
18 bool GetInfo_Partitions(QTreeWidget* tree);
19 bool GetInfo_XServer_and_Video(QTreeWidget* tree);
22 #ifdef __linux__
24 #define INFO_CPU_AVAILABLE
25 #define INFO_IRQ_AVAILABLE
26 #define INFO_DMA_AVAILABLE
27 #define INFO_IOPORTS_AVAILABLE
28 #define INFO_SOUND_AVAILABLE
29 #define INFO_DEVICES_AVAILABLE
30 #define INFO_SCSI_AVAILABLE
31 #define INFO_PARTITIONS_AVAILABLE
32 #define INFO_XSERVER_AVAILABLE
34 /* i18n("Maybe the proc-filesystem is not enabled in Linux-Kernel.") */
35 #define DEFAULT_ERRORSTRING QString()
38 #elif defined(sgi) && sgi
40 #define INFO_CPU_AVAILABLE
41 #define INFO_IRQ_AVAILABLE
42 #define INFO_DMA_AVAILABLE
43 #define INFO_IOPORTS_AVAILABLE
44 #define INFO_SOUND_AVAILABLE
45 #define INFO_DEVICES_AVAILABLE
46 #define INFO_SCSI_AVAILABLE
47 #define INFO_PARTITIONS_AVAILABLE
48 #define INFO_XSERVER_AVAILABLE
50 #define DEFAULT_ERRORSTRING i18n("This system may not be completely supported yet.")
52 #elif defined(__FreeBSD__) || defined(__DragonFly__)
55 #define INFO_CPU_AVAILABLE
56 #define INFO_IRQ_AVAILABLE
57 #define INFO_DMA_AVAILABLE
58 #define INFO_IOPORTS_AVAILABLE
59 #define INFO_SOUND_AVAILABLE
60 #define INFO_DEVICES_AVAILABLE
61 #define INFO_SCSI_AVAILABLE
62 #define INFO_PARTITIONS_AVAILABLE
63 #define INFO_XSERVER_AVAILABLE
65 #define DEFAULT_ERRORSTRING i18n("This system may not be completely supported yet.")
67 #elif __hpux
69 #define INFO_CPU_AVAILABLE
70 #define INFO_IRQ_AVAILABLE
71 #define INFO_DMA_AVAILABLE
72 #define INFO_IOPORTS_AVAILABLE
73 #define INFO_SOUND_AVAILABLE
75 #define INFO_DEVICES_AVAILABLE
76 #define INFO_SCSI_AVAILABLE
78 #define INFO_PARTITIONS_AVAILABLE
80 #define INFO_XSERVER_AVAILABLE
82 #define DEFAULT_ERRORSTRING QString()
84 #elif __NetBSD__
86 #define INFO_CPU_AVAILABLE
87 #define INFO_IRQ_AVAILABLE
88 #define INFO_DMA_AVAILABLE
89 #define INFO_IOPORTS_AVAILABLE
90 #define INFO_SOUND_AVAILABLE
91 #define INFO_DEVICES_AVAILABLE
92 #define INFO_SCSI_AVAILABLE
93 #define INFO_PARTITIONS_AVAILABLE
94 #define INFO_XSERVER_AVAILABLE
96 #define DEFAULT_ERRORSTRING i18n("This system may not be completely supported yet.")
98 #elif __OpenBSD__
100 #define INFO_CPU_AVAILABLE
101 #define INFO_IRQ_AVAILABLE
102 #define INFO_DMA_AVAILABLE
103 #define INFO_IOPORTS_AVAILABLE
104 #define INFO_SOUND_AVAILABLE
105 #define INFO_DEVICES_AVAILABLE
106 #define INFO_SCSI_AVAILABLE
107 #define INFO_PARTITIONS_AVAILABLE
108 #define INFO_XSERVER_AVAILABLE
110 #define DEFAULT_ERRORSTRING i18n("This system may not be completely supported yet.")
112 #elif defined(__svr4__) && defined(sun)
114 #define INFO_CPU_AVAILABLE
115 #define INFO_IRQ_AVAILABLE
116 #define INFO_DMA_AVAILABLE
117 #define INFO_IOPORTS_AVAILABLE
118 #define INFO_SOUND_AVAILABLE
119 #define INFO_DEVICES_AVAILABLE
120 #define INFO_SCSI_AVAILABLE
121 #define INFO_PARTITIONS_AVAILABLE
122 #define INFO_XSERVER_AVAILABLE
124 #define DEFAULT_ERRORSTRING i18n("This system may not be completely supported yet.")
126 #elif __svr4__
128 #define INFO_CPU_AVAILABLE
129 #define INFO_IRQ_AVAILABLE
130 #define INFO_DMA_AVAILABLE
131 #define INFO_IOPORTS_AVAILABLE
132 #define INFO_SOUND_AVAILABLE
133 #define INFO_DEVICES_AVAILABLE
134 #define INFO_SCSI_AVAILABLE
135 #define INFO_PARTITIONS_AVAILABLE
136 #define INFO_XSERVER_AVAILABLE
138 #define DEFAULT_ERRORSTRING i18n("This system may not be completely supported yet.")
140 #elif _AIX
142 #define INFO_DEVICES_AVAILABLE
143 #define INFO_SCSI_AVAILABLE
144 #define INFO_PARTITIONS_AVAILABLE
145 #define INFO_CPU_AVAILABLE
147 #define INFO_IRQ_AVAILABLE
148 #define INFO_DMA_AVAILABLE
149 #define INFO_IOPORTS_AVAILABLE
150 #define INFO_SOUND_AVAILABLE
151 #define INFO_XSERVER_AVAILABLE
153 #define DEFAULT_ERRORSTRING i18n("This system may not be completely supported yet.")
155 #elif defined(__APPLE__)
157 #define INFO_CPU_AVAILABLE
158 //#define INFO_IRQ_AVAILABLE
159 //#define INFO_DMA_AVAILABLE
160 //#define INFO_IOPORTS_AVAILABLE
161 #define INFO_SOUND_AVAILABLE
162 #define INFO_DEVICES_AVAILABLE
163 #define INFO_SCSI_AVAILABLE
164 #define INFO_PARTITIONS_AVAILABLE
165 #define INFO_XSERVER_AVAILABLE
167 #define DEFAULT_ERRORSTRING i18n("This system may not be completely supported yet.")
169 #else
171 #define INFO_CPU_AVAILABLE
172 #define INFO_IRQ_AVAILABLE
173 #define INFO_DMA_AVAILABLE
174 #define INFO_IOPORTS_AVAILABLE
175 #define INFO_SOUND_AVAILABLE
176 #define INFO_DEVICES_AVAILABLE
177 #define INFO_SCSI_AVAILABLE
178 #define INFO_PARTITIONS_AVAILABLE
179 #define INFO_XSERVER_AVAILABLE
181 #define DEFAULT_ERRORSTRING i18n("This system may not be completely supported yet.")
183 #endif
185 #endif /*OS_CURRENT_H_*/