Init Commit
This commit is contained in:
33
Server/Service/Options.h
Normal file
33
Server/Service/Options.h
Normal file
@@ -0,0 +1,33 @@
|
||||
//
|
||||
// Created by fly on 2021/12/17.
|
||||
//
|
||||
|
||||
#ifndef REGISTRYCENTER_OPTIONS_H
|
||||
#define REGISTRYCENTER_OPTIONS_H
|
||||
|
||||
#include <rep_Options_source.h>
|
||||
|
||||
class Options : public OptionsSource {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit Options(QObject *parent = nullptr);
|
||||
|
||||
~Options() override = default;
|
||||
|
||||
void registerOption(
|
||||
QString optionId,
|
||||
QString optionName,
|
||||
QVariant defaultValue,
|
||||
OptionsSource::OptionType type,
|
||||
bool autoLoad,
|
||||
QString editConfig,
|
||||
QString description
|
||||
) override;
|
||||
|
||||
QVariant getOption(QString optionId) override;
|
||||
|
||||
void setOption(QString optionId, QVariant value) override;
|
||||
};
|
||||
|
||||
|
||||
#endif //REGISTRYCENTER_OPTIONS_H
|
||||
Reference in New Issue
Block a user