~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to kinfocenter/Modules/base/os_current.h

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/*
 
3
Copyright 2010  Nicolas Ternisien <nicolas.ternisien@gmail.com>
 
4
 
 
5
This library is free software; you can redistribute it and/or
 
6
modify it under the terms of the GNU Lesser General Public
 
7
License as published by the Free Software Foundation; either
 
8
version 2.1 of the License, or (at your option) version 3, or any
 
9
later version accepted by the membership of KDE e.V. (or its
 
10
successor approved by the membership of KDE e.V.), which shall
 
11
act as a proxy defined in Section 6 of version 3 of the license.
 
12
 
 
13
This library is distributed in the hope that it will be useful,
 
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
16
Lesser General Public License for more details.
 
17
 
 
18
You should have received a copy of the GNU Lesser General Public 
 
19
License along with this library.  If not, see <http://www.gnu.org/licenses/>.
 
20
*/
 
21
 
 
22
#ifndef OS_CURRENT_H_
 
23
#define OS_CURRENT_H_
 
24
 
 
25
class QTreeWidget;
 
26
class QString;
 
27
 
 
28
/* function call-back-prototypes... */
 
29
 
 
30
bool GetInfo_IRQ(QTreeWidget* tree);
 
31
bool GetInfo_DMA(QTreeWidget* tree);
 
32
bool GetInfo_PCI(QTreeWidget* tree);
 
33
bool GetInfo_IO_Ports(QTreeWidget* tree);
 
34
bool GetInfo_SCSI(QTreeWidget* tree);
 
35
bool GetInfo_XServer_and_Video(QTreeWidget* tree);
 
36
 
 
37
 
 
38
#ifdef __linux__
 
39
 
 
40
        #define INFO_IRQ_AVAILABLE
 
41
        #define INFO_DMA_AVAILABLE
 
42
        #define INFO_IOPORTS_AVAILABLE
 
43
        #define INFO_SCSI_AVAILABLE
 
44
        #define INFO_XSERVER_AVAILABLE
 
45
        
 
46
        /* i18n("Maybe the proc-filesystem is not enabled in Linux-Kernel.") */
 
47
        #define DEFAULT_ERRORSTRING QString() 
 
48
 
 
49
 
 
50
#elif defined(sgi) && sgi
 
51
 
 
52
        #define INFO_IRQ_AVAILABLE
 
53
        #define INFO_DMA_AVAILABLE
 
54
        #define INFO_IOPORTS_AVAILABLE
 
55
        #define INFO_SCSI_AVAILABLE
 
56
        #define INFO_XSERVER_AVAILABLE
 
57
 
 
58
        #define DEFAULT_ERRORSTRING  i18n("This system may not be completely supported yet.")
 
59
 
 
60
#elif defined(__FreeBSD__) || defined(__DragonFly__)
 
61
 
 
62
        #define INFO_IRQ_AVAILABLE
 
63
        #define INFO_DMA_AVAILABLE
 
64
        #define INFO_IOPORTS_AVAILABLE
 
65
        #define INFO_SCSI_AVAILABLE
 
66
        #define INFO_XSERVER_AVAILABLE
 
67
        
 
68
        #define DEFAULT_ERRORSTRING  i18n("This system may not be completely supported yet.")
 
69
 
 
70
#elif defined(__hpux)
 
71
 
 
72
        #define INFO_IRQ_AVAILABLE
 
73
        #define INFO_DMA_AVAILABLE
 
74
        #define INFO_IOPORTS_AVAILABLE
 
75
        
 
76
        #define INFO_SCSI_AVAILABLE
 
77
        
 
78
        #define INFO_XSERVER_AVAILABLE
 
79
        
 
80
        #define DEFAULT_ERRORSTRING QString()
 
81
 
 
82
#elif defined(__NetBSD__)
 
83
 
 
84
        #define INFO_IRQ_AVAILABLE
 
85
        #define INFO_DMA_AVAILABLE
 
86
        #define INFO_IOPORTS_AVAILABLE
 
87
        #define INFO_SCSI_AVAILABLE
 
88
        #define INFO_XSERVER_AVAILABLE
 
89
        
 
90
        #define DEFAULT_ERRORSTRING  i18n("This system may not be completely supported yet.")
 
91
 
 
92
#elif defined(__OpenBSD__)
 
93
 
 
94
        #define INFO_IRQ_AVAILABLE
 
95
        #define INFO_DMA_AVAILABLE
 
96
        #define INFO_IOPORTS_AVAILABLE
 
97
        #define INFO_SCSI_AVAILABLE
 
98
        #define INFO_XSERVER_AVAILABLE
 
99
 
 
100
        #define DEFAULT_ERRORSTRING  i18n("This system may not be completely supported yet.")
 
101
 
 
102
#elif defined(__svr4__) && defined(sun)
 
103
 
 
104
        #define INFO_IRQ_AVAILABLE
 
105
        #define INFO_DMA_AVAILABLE
 
106
        #define INFO_IOPORTS_AVAILABLE
 
107
        #define INFO_SCSI_AVAILABLE
 
108
        #define INFO_XSERVER_AVAILABLE
 
109
 
 
110
        #define DEFAULT_ERRORSTRING  i18n("This system may not be completely supported yet.")
 
111
 
 
112
#elif defined(_AIX)
 
113
 
 
114
        #define INFO_SCSI_AVAILABLE
 
115
 
 
116
        #define INFO_IRQ_AVAILABLE
 
117
        #define INFO_DMA_AVAILABLE
 
118
        #define INFO_IOPORTS_AVAILABLE
 
119
        #define INFO_XSERVER_AVAILABLE
 
120
 
 
121
        #define DEFAULT_ERRORSTRING  i18n("This system may not be completely supported yet.")
 
122
 
 
123
#elif defined(__APPLE__)
 
124
 
 
125
        //#define INFO_IRQ_AVAILABLE
 
126
        //#define INFO_DMA_AVAILABLE
 
127
        //#define INFO_IOPORTS_AVAILABLE
 
128
        #define INFO_SCSI_AVAILABLE
 
129
        #define INFO_XSERVER_AVAILABLE
 
130
 
 
131
        #define DEFAULT_ERRORSTRING  i18n("This system may not be completely supported yet.")
 
132
 
 
133
#else
 
134
 
 
135
        #define INFO_IRQ_AVAILABLE
 
136
        #define INFO_DMA_AVAILABLE
 
137
        #define INFO_IOPORTS_AVAILABLE
 
138
        #define INFO_SCSI_AVAILABLE
 
139
        #define INFO_XSERVER_AVAILABLE
 
140
        
 
141
        #define DEFAULT_ERRORSTRING  i18n("This system may not be completely supported yet.")
 
142
 
 
143
#endif
 
144
 
 
145
#endif /*OS_CURRENT_H_*/