Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef SYSTEMLINK_H
00027 #define SYSTEMLINK_H
00028
00029 #include "DaemonLink.h"
00030
00031 class SystemLink : public DaemonLink
00032 {
00033 Q_OBJECT
00034 public:
00035 SystemLink(Station * station);
00036
00037 void powerOff();
00038 void reboot();
00039 void diskSpace();
00040 void clearUsb();
00041 void comments();
00042 void addComment(const QString& c);
00043
00044 void highRateRefresh();
00045 protected:
00046 virtual int bytesAvailable(const char * buffer, int bytesCount);
00047 private slots:
00048 void refreshVariableParameters();
00049 private:
00050 void diskSpace(const char * buffer, int bytesRead, int bytesCount);
00051 bool comments(const char * buffer, int& bytesRead, int bytesCount);
00052 void halting(const char *, int, int);
00053
00054 QTimer _refresh;
00055 };
00056
00057 #endif // SYSTEMLINK_H