Fix crash if key bindings specified in profile cannot be found. Improve
[personal-kdebase.git] / apps / kinfocenter / base / info_sgi.cpp
blob928f030eaf5c1c45bdd17e6cf30cc4330a9ffcdf
1 /* info_sgi.cpp
3 !!!!! this file will be included by info.cpp !!!!!
4 */
6 /* all following functions should return true, when the Information
7 was filled into the lBox-Widget.
8 returning false indicates, that information was not available.
9 */
11 #include <sys/systeminfo.h>
13 bool GetInfo_CPU(QListView *lBox) {
14 QString str;
15 char buf[256];
17 sysinfo(SI_ARCHITECTURE, buf, sizeof(buf));
18 str = QString::fromLocal8Bit(buf);
19 new QListViewItem(lBox, str);
20 return true;
23 bool GetInfo_IRQ(QListView *) {
24 return false;
27 bool GetInfo_DMA(QListView *) {
28 return false;
31 bool GetInfo_PCI(QTreeWidget*) {
32 return false;
35 bool GetInfo_IO_Ports(QListView *) {
36 return false;
39 bool GetInfo_Sound(QListView *) {
40 return false;
43 bool GetInfo_Devices(QListView *) {
44 return false;
47 bool GetInfo_SCSI(QListView *) {
48 return false;
51 bool GetInfo_Partitions(QListView *) {
52 return false;
55 bool GetInfo_XServer_and_Video(QListView *lBox) {
56 return GetInfo_XServer_Generic(lBox);