aboutsummaryrefslogtreecommitdiff
path: root/libs/bsapacker/src/ModDto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/bsapacker/src/ModDto.cpp')
-rw-r--r--libs/bsapacker/src/ModDto.cpp43
1 files changed, 43 insertions, 0 deletions
diff --git a/libs/bsapacker/src/ModDto.cpp b/libs/bsapacker/src/ModDto.cpp
new file mode 100644
index 0000000..bf07dd9
--- /dev/null
+++ b/libs/bsapacker/src/ModDto.cpp
@@ -0,0 +1,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