Files
EJM_Display/FileOperation/ConfigFiles.h

27 lines
627 B
C
Raw Permalink Normal View History

2025-08-20 23:06:28 +08:00
#ifndef CONFIGFILES_H
#define CONFIGFILES_H
#include <QObject>
2025-09-15 22:28:43 +08:00
#include <GlobalDefinitions/Variable.h>
2025-08-20 23:06:28 +08:00
class ConfigFiles : public QObject
{
Q_OBJECT
public:
explicit ConfigFiles(QObject *parent = nullptr);
QList<QStringList> ReadFile_Csv(const QString &filePath);
2025-09-15 22:28:43 +08:00
static tsServerAddr ReadServerAddr();
2025-10-14 20:05:38 +08:00
void SystemConfig();
2025-10-16 17:40:00 +08:00
template <typename T>
T readAndSetDefault(const QString &Path ,const QString& group, const QString& key, const T& defaultValue);
2025-10-14 20:05:38 +08:00
bool isDebug = true;
uint16_t TrailRefreshTime;
2025-10-16 17:40:00 +08:00
uint16_t UIRefreshTime;
2025-10-14 20:05:38 +08:00
QString RTSP_Url;
2025-08-20 23:06:28 +08:00
signals:
};
#endif // CONFIGFILES_H