aboutsummaryrefslogtreecommitdiff
path: root/libs/bsapacker/src/ModDto.cpp
blob: bf07dd9d2b77a86db63a098472dbbc6176542d63 (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
33
34
35
36
37
38
39
40
41
42
43
#include "ModDto.h"

#include <QDir>

namespace BsaPacker
{
	ModDto::ModDto(
		const int nexusId,
		const QString& modDir,
		const QString& archiveName,
		const QString& archiveExtension)
		: m_NexusId(nexusId),
		  m_Path(modDir),
		  m_ArchiveName(archiveName),
		  m_ArchiveExtension(archiveExtension)
	{
	}

	QString ModDto::ArchiveExtension() const
	{
		return this->m_ArchiveExtension;
	}

	QString ModDto::ArchiveName() const
	{
		return this->m_ArchiveName;
	}

	QString ModDto::Directory() const
	{
		return this->m_Path.path();
	}

	QString ModDto::ModForename() const
	{
		return this->m_Path.dirName();
	}

	int ModDto::NexusId() const
	{
		return this->m_NexusId;
	}
} // namespace BsaPacker