src: Refactored SourceGroupSettings into components as bases architecture

This commit is contained in:
Eberhard Graether
2019-10-18 13:05:27 +02:00
parent 941e5dbcaa
commit bd09cc4feb
105 changed files with 1610 additions and 1827 deletions
@@ -0,0 +1,29 @@
#ifndef SOURCE_GROUP_SETTINGS_WITH_CUSTOM_COMMAND_H
#define SOURCE_GROUP_SETTINGS_WITH_CUSTOM_COMMAND_H
#include "SourceGroupSettingsComponent.h"
class SourceGroupSettingsWithCustomCommand
: public SourceGroupSettingsComponent
{
public:
virtual ~SourceGroupSettingsWithCustomCommand() = default;
const std::wstring& getCustomCommand() const;
void setCustomCommand(const std::wstring& customCommand);
bool getRunInParallel() const;
void setRunInParallel(bool runInParallel);
protected:
bool equals(const SourceGroupSettingsBase* other) const override;
void load(const ConfigManager* config, const std::string& key) override;
void save(ConfigManager* config, const std::string& key) override;
private:
std::wstring m_customCommand;
bool m_runInParallel = false;
};
#endif // SOURCE_GROUP_SETTINGS_WITH_CUSTOM_COMMAND_H