00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef KSYSINFO_H
00019 #define KSYSINFO_H
00020
00021 class TQString;
00022 class TQFont;
00023 class TQFontDatabase;
00024
00025 class KSysInfo {
00026 public:
00027 KSysInfo();
00028 ~KSysInfo();
00029
00030 bool isXfromXFreeInc();
00031 bool isXfromXOrg();
00032 int getXRelease();
00033 bool getRenderSupport();
00034
00035 TQFont getNormalFont();
00036 TQFont getSmallFont();
00037 TQFont getBoldFont();
00038 TQFont getFixedWidthFont();
00039
00040 int getCpuSpeed();
00041 private:
00042 void initXInfo();
00043 void initFontFamilies();
00044 void initHWInfo();
00045 private:
00046
00047 TQString m_xvendor;
00048 bool m_xfree_inc;
00049 bool m_xorg;
00050 int m_xrelease;
00051 bool m_xrender;
00052
00053 TQFontDatabase* m_fdb;
00054 TQString m_normal_font;
00055 TQString m_fixed_font;
00056
00057 int m_cpu_speed;
00058 };
00059
00060 #endif