27 lines
627 B
C++
27 lines
627 B
C++
#ifndef CONFIGFILES_H
|
|
#define CONFIGFILES_H
|
|
|
|
#include <QObject>
|
|
#include <GlobalDefinitions/Variable.h>
|
|
class ConfigFiles : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit ConfigFiles(QObject *parent = nullptr);
|
|
QList<QStringList> ReadFile_Csv(const QString &filePath);
|
|
static tsServerAddr ReadServerAddr();
|
|
void SystemConfig();
|
|
template <typename T>
|
|
T readAndSetDefault(const QString &Path ,const QString& group, const QString& key, const T& defaultValue);
|
|
|
|
bool isDebug = true;
|
|
|
|
uint16_t TrailRefreshTime;
|
|
uint16_t UIRefreshTime;
|
|
QString RTSP_Url;
|
|
signals:
|
|
|
|
};
|
|
|
|
#endif // CONFIGFILES_H
|