mirror of
https://github.com/ModOrganizer2/modorganizer-bsapacker.git
synced 2026-07-27 14:06:14 -07:00
26 lines
720 B
C++
26 lines
720 B
C++
#ifndef MODDTOFACTORY_H
|
|
#define MODDTOFACTORY_H
|
|
|
|
#include <bsapacker/IModDtoFactory.h>
|
|
#include <bsapacker/IModContext.h>
|
|
#include <bsapacker/IModDto.h>
|
|
|
|
namespace BsaPacker
|
|
{
|
|
class ModDtoFactory : public IModDtoFactory
|
|
{
|
|
public:
|
|
ModDtoFactory(const IModContext* modContext);
|
|
~ModDtoFactory() override = default;
|
|
[[nodiscard]] std::unique_ptr<IModDto> Create() const override;
|
|
[[nodiscard]] static QString ArchiveNameValidator(const QString& modName,
|
|
const QString& pluginName);
|
|
[[nodiscard]] static bool CanOverwriteFile(const QString& filePath,
|
|
const QString& fileName);
|
|
|
|
private:
|
|
const IModContext* m_ModContext = nullptr;
|
|
};
|
|
} // namespace BsaPacker
|
|
#endif // MODDTOFACTORY_H
|