aboutsummaryrefslogtreecommitdiff
path: root/libs/bsapacker/src/SettingsService.h
blob: 42f9299aebe4373142b23d14afa825b04abffb5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef SETTINGSSERVICE_H
#define SETTINGSSERVICE_H

#include <bsapacker/ISettingsService.h>

#include <imoinfo.h>
#include <pluginsetting.h>

namespace BsaPacker
{
	class SettingsService : public ISettingsService
	{
	public:
		explicit SettingsService(MOBase::IOrganizer* organizer);
		~SettingsService() override = default;
		[[nodiscard]] QVariant GetPluginSetting(const QString& setting) const override;

		static const QString& SETTING_ENABLED;
		static const QString& SETTING_HIDE_LOOSE_ASSETS;
		static const QString& SETTING_CREATE_PLUGINS;
		static const QString& SETTING_BLACKLISTED_FILES;
		static const QString& SETTING_COMPRESS_ARCHIVES;
		//static const QString& SETTING_SPLIT_ARCHIVES;

		static const QList<MOBase::PluginSetting>& PluginSettings;

	private:
		MOBase::IOrganizer* m_Organizer = nullptr;
	};
} // namespace BsaPacker

#endif // SETTINGSSERVICE_H