direcs
2012-09-30
|
Handles the access to the global log-file. More...
#include <logfile.h>
Public Slots | |
void | appendLog (QString text, bool CR=true) |
void | writeHeartbeat (unsigned char state) |
Public Member Functions | |
Logfile () | |
void | setFilename (QString filename) |
~Logfile () |
Private Attributes | |
QFile | file |
QString | logFilename |
QDateTime | now |
QString | programPath |
Logfile::Logfile | ( | ) |
Definition at line 23 of file logfile.cpp.
Logfile::~Logfile | ( | ) |
Definition at line 29 of file logfile.cpp.
|
slot |
Appends text to the log file.
text | is the text to be written. |
CR | adds a carriage return (CR) to the text, if true (default). This parameter is optional! |
Definition at line 74 of file logfile.cpp.
void Logfile::setFilename | ( | QString | filename | ) |
Sets the name of the log file.
filename |
Definition at line 113 of file logfile.cpp.
|
slot |
Write the received heartbeat signal from the hardware to the logfile.
state | is unused! |
Definition at line 127 of file logfile.cpp.