2023-05-19 15:32:52 +02:00
|
|
|
#ifndef UTILS_H_INCLUDED
|
|
|
|
#define UTILS_H_INCLUDED
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <QString>
|
2023-08-11 11:03:21 +02:00
|
|
|
#include <QStringList>
|
2023-05-19 15:32:52 +02:00
|
|
|
#include <QFile>
|
2023-08-11 11:03:21 +02:00
|
|
|
#include <QFileInfo>
|
|
|
|
#include <QDateTime>
|
2023-05-19 15:32:52 +02:00
|
|
|
|
2023-08-02 15:45:20 +02:00
|
|
|
namespace Utils {
|
|
|
|
int read1stLineOfFile(QString fileName);
|
|
|
|
QString zoneName(quint8 i);
|
2023-08-11 11:03:21 +02:00
|
|
|
void printCriticalErrorMsg(QString const &errorMsg);
|
|
|
|
void printInfoMsg(QString const &infoMsg);
|
|
|
|
void printLineEditInfo(QStringList const &lines);
|
|
|
|
QString getTariffLoadTime(QString fileName);
|
2023-08-02 15:45:20 +02:00
|
|
|
}
|
2023-05-19 15:32:52 +02:00
|
|
|
|
|
|
|
#endif // UTILS_H_INCLUDED
|