00001
00002
00003
00004
00005
00006
00007
00008 #ifndef QTSYSTEMINFO_H
00009 #define QTSYSTEMINFO_H
00010
00011 #define QTSYSTEMINFO_VERSION 0x009000
00012
00013 #include <QObject>
00014 #include <QString>
00015
00016 class QtSystemInfoPrivate;
00017
00018 class QtSystemInfo: public QObject
00019 {
00020 public:
00021 enum SystemType
00022 {
00023 UnknownType = -1,
00024 UnknownUnix,
00025 MacOSX,
00026 Windows,
00027 WindowsCE,
00028 Linux,
00029 UnknownBSD,
00030 FreeBSD,
00031 OpenBSD,
00032 NetBSD
00033 };
00034
00035 enum ArchitectureType
00036 {
00037 UnknownArchitectureType = -1,
00038 I386,
00039 I486,
00040 I586,
00041 I686,
00042 X86_64,
00043 PPC,
00044 PPC64
00045 };
00046
00047 QtSystemInfo(QObject *parent = 0);
00048 ~QtSystemInfo();
00049
00053 QString kernelName() const;
00054
00058 QString kernelVersion() const;
00059
00063 QString architectureName() const;
00064
00068 ArchitectureType architecture() const;
00069
00073 SystemType systemType() const;
00074
00078 QString systemName() const;
00079
00083 QString systemVersion() const;
00084
00097 QString getSystemInformation(QString format = QString());
00098
00099 private:
00100 QtSystemInfoPrivate *d;
00101 };
00102
00103
00104 #endif