summaryrefslogtreecommitdiff
path: root/src/directoryrefresher.h
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2014-05-31 13:43:48 +0200
committerTannin <devnull@localhost>2014-05-31 13:43:48 +0200
commit1eb783aae348f906056cee17cb65dfd507429901 (patch)
treed9e5b93c1d528a2182416d971b27e49cb524532b /src/directoryrefresher.h
parent93a19799b86dd6e12a186e84eb43699b318b214d (diff)
- added a new mod type that represents files handled externally (i.e. DLCs) as mods in MO
- hashes of file names in bsa files are no longer checked all the time - author and description is now read from esp files - rewrote the code that fixes modlists after a rename, should be a bit more robust - fixes to qt 5 and msvc 2013 compatibility - started to update the tutorial (not done yet!) - bugfix: counter for the problems badge wasn't calculated correctly
Diffstat (limited to 'src/directoryrefresher.h')
-rw-r--r--src/directoryrefresher.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/src/directoryrefresher.h b/src/directoryrefresher.h
index 691448fa..f828d793 100644
--- a/src/directoryrefresher.h
+++ b/src/directoryrefresher.h
@@ -23,6 +23,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#include <directoryentry.h>
#include <QObject>
#include <QMutex>
+#include <QStringList>
#include <vector>
#include <set>
#include <tuple>
@@ -83,7 +84,7 @@ public:
* @param directory
* @param priorityDir
*/
- void addModToStructure(MOShared::DirectoryEntry *directoryStructure, const QString &modName, int priority, const QString &directory);
+ void addModToStructure(MOShared::DirectoryEntry *directoryStructure, const QString &modName, int priority, const QString &directory, const QStringList &stealFiles, const QStringList &archives);
public slots:
@@ -100,8 +101,22 @@ signals:
private:
- std::vector<std::tuple<QString, QString, int> > m_Mods;
- std::set<QString> m_ManagedArchives;
+ struct EntryInfo {
+ EntryInfo(const QString &modName, const QString &absolutePath,
+ const QStringList &stealFiles, const QStringList &archives, int priority)
+ : modName(modName), absolutePath(absolutePath), stealFiles(stealFiles)
+ , archives(archives), priority(priority) {}
+ QString modName;
+ QString absolutePath;
+ QStringList stealFiles;
+ QStringList archives;
+ int priority;
+ };
+
+private:
+
+ std::vector<EntryInfo> m_Mods;
+ std::set<QString> m_EnabledArchives;
MOShared::DirectoryEntry *m_DirectoryStructure;
QMutex m_RefreshLock;