You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
667 B
34 lines
667 B
#ifndef CONFIG_H
|
|
#define CONFIG_H
|
|
|
|
#include <QObject>
|
|
#include <QPointer>
|
|
|
|
class QSettings;
|
|
class Config : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
static Config& getInstance();
|
|
QString getTitle();
|
|
QString getRecordPath();
|
|
void setRecordPath(const QString& path);
|
|
QString getServerVersion();
|
|
int getMaxFps();
|
|
int getDesktopOpenGL();
|
|
int getSkin();
|
|
int getRenderExpiredFrames();
|
|
QString getPushFilePath();
|
|
QString getServerPath();
|
|
|
|
private:
|
|
explicit Config(QObject *parent = nullptr);
|
|
const QString& getConfigPath();
|
|
|
|
private:
|
|
static QString s_configPath;
|
|
QPointer<QSettings> m_settings;
|
|
};
|
|
|
|
#endif // CONFIG_H
|