diff options
author | Arseniy-Movshev <dodoradio@outlook.com> | 2023-06-08 14:55:29 +0100 |
---|---|---|
committer | Arseniy-Movshev <dodoradio@outlook.com> | 2023-06-20 00:05:28 +0100 |
commit | a816cfed03b7a02156377c29bd8a77b9c58333db (patch) | |
tree | 4b0d3db87240d94441c493de163a09eff743da2a /daemon/logger.h | |
parent | 6087e0b0dd7a5246aca9024ef777b62080d35834 (diff) |
Move fileNameForDate to a common header file
This function shows up in quite a few places so this seems justified.
Other functions may get this treatment later
Diffstat (limited to '')
-rw-r--r-- | daemon/logger.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/daemon/logger.h b/daemon/logger.h index 2eff33f..328c0d7 100644 --- a/daemon/logger.h +++ b/daemon/logger.h @@ -50,7 +50,6 @@ private: void fileAddRecord(QString sensorPrefix, QString logdata, QDateTime recordTime = QDateTime::currentDateTime()); //adds a record to today's log file for the given sensor bool dayFileExists(QString sensorPrefix, QDateTime date = QDateTime::currentDateTime()); //check if today has a log file for the given sensor QStringList fileGetPrevRecord(QString sensorPrefix, QDateTime recordTime = QDateTime::currentDateTime()); //works backwards to find the last record in today's file before the given time - returns nothing if no file is found. - QString fileNameForDate(QDate date, QString prefix); void setupFilePath(QString sensorPrefix); //sets up the paths for sensors to write into #endif // LOGGER_H |