ndgui/NetworkDiscovery
|
00001 /* 00002 * Copyright (c) 2010,2011 - RZ Uni Freiburg 00003 * Copyright (c) 2010,2011 - OpenSLX Project 00004 * 00005 * This program/file is free software distributed under the GPL version 2. 00006 * See http://openslx.org/COPYING 00007 * 00008 * If you have any feedback please consult http://openslx.org/feedback and 00009 * send your feedback to feedback@openslx.org 00010 * 00011 * General information about OpenSLX can be found under http://openslx.org 00012 * 00013 * 00014 * Helper class to get system information. 00015 * 00016 */ 00017 00018 #ifndef SYSINFO_H 00019 #define SYSINFO_H 00020 00021 #ifdef __cplusplus 00022 extern "C" { 00023 #endif 00024 00025 #include "sysfs/libsysfs.h" 00026 #include <libusb-1.0/libusb.h> 00027 #ifdef __cplusplus 00028 } 00029 #endif 00030 00031 #include "fbgui.h" 00032 //#include <qjson/serializer.h> 00033 00034 class SysInfo { 00035 public: 00036 SysInfo(); 00037 ~SysInfo(); 00038 // public access, valid infoName: "mbserial", "usb" 00039 const QString getInfo(const QString& infoName); 00040 00041 private: 00042 // private system information readers 00043 const QString getMainboardSerial(); 00044 const QString getUsbVendorIdProductIdSerialNumber(); 00045 00046 // JSon testing 00047 //QJson::Serializer serializer; 00048 }; 00049 00050 #endif // SYSTINFO_H