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

« back to all changes in this revision

Viewing changes to kinfocenter/Modules/base/info_osx.cpp

  • 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
 *  Copyright (c) 2003 Benjamin Reed <ranger@befunk.com>
 
3
 *
 
4
 *  info_osx.cpp is part of the KDE program kcminfo.  Copied wholesale
 
5
 *  from info_fbsd.cpp =)
 
6
 *
 
7
 *  This program is free software; you can redistribute it and/or modify
 
8
 *  it under the terms of the GNU General Public License as published by
 
9
 *  the Free Software Foundation; either version 2 of the License, or
 
10
 *  (at your option) any later version.
 
11
 *
 
12
 *  This program is distributed in the hope that it will be useful,
 
13
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 *  GNU General Public License for more details.
 
16
 *
 
17
 *  You should have received a copy of the GNU General Public License
 
18
 *  along with this program; if not, write to the Free Software
 
19
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
20
 */
 
21
 
 
22
/*
 
23
 * all following functions should return true, when the Information
 
24
 * was filled into the lBox-Widget. Returning false indicates that
 
25
 * information was not available.
 
26
 */
 
27
 
 
28
#include <sys/types.h>
 
29
#include <sys/sysctl.h>
 
30
 
 
31
#include <fstab.h>
 
32
#include <stdio.h>
 
33
#include <stdlib.h>
 
34
 
 
35
#include <iostream>
 
36
 
 
37
#include <QFile>
 
38
#include <QFontMetrics>
 
39
 
 
40
#include <QTextStream>
 
41
 
 
42
#include <kdebug.h>
 
43
 
 
44
#include <mach/mach.h>
 
45
#include <mach-o/arch.h>
 
46
 
 
47
#include <machine/limits.h>
 
48
 
 
49
bool GetInfo_IRQ(QTreeWidget*) {
 
50
        return false;
 
51
}
 
52
 
 
53
bool GetInfo_DMA(QTreeWidget*) {
 
54
        return false;
 
55
}
 
56
 
 
57
bool GetInfo_PCI(QTreeWidget*) {
 
58
        return false;
 
59
}
 
60
 
 
61
bool GetInfo_IO_Ports(QTreeWidget*) {
 
62
        return false;
 
63
}
 
64
 
 
65
bool GetInfo_SCSI(QTreeWidget*) {
 
66
        return false;
 
67
}
 
68
 
 
69
bool GetInfo_XServer_and_Video(QTreeWidget* tree) {
 
70
#ifdef Q_WS_X11
 
71
        return GetInfo_XServer_Generic(tree);
 
72
#else
 
73
        return false;
 
74
#endif
 
75
}