diff options
| author | Brian Munro <brian.alexander.munro@gmail.com> | 2018-08-02 09:15:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-02 09:15:12 +0200 |
| commit | 9a3a15b1f6339589be97e2546b7d532d30abc292 (patch) | |
| tree | 2776d6834b92fdc95b5b26ab43e9e743e10c1128 /src/pluginlist.h | |
| parent | 886fb10288baf4f52af2ad812a1c2121e138a16e (diff) | |
| parent | 1ea43586d8eb304d8e91bf7f1480d7e4db5ef05f (diff) | |
Merge pull request #454 from Modorganizer2/Develop
Release 2.1.4
Diffstat (limited to 'src/pluginlist.h')
| -rw-r--r-- | src/pluginlist.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/pluginlist.h b/src/pluginlist.h index f6745aa8..b8e35c32 100644 --- a/src/pluginlist.h +++ b/src/pluginlist.h @@ -28,6 +28,7 @@ namespace MOBase { class IPluginGame; } #include <QString>
#include <QListWidget>
#include <QTimer>
+#include <QTime>
#include <QTemporaryFile>
#pragma warning(push)
@@ -192,6 +193,8 @@ public: */
int enabledCount() const;
+ int timeElapsedSinceLastChecked() const;
+
QString getName(int index) const { return m_ESPs.at(index).m_Name; }
int getPriority(int index) const { return m_ESPs.at(index).m_Priority; }
QString getIndexPriority(int index) const;
@@ -273,11 +276,12 @@ signals: void writePluginsList();
+
private:
struct ESPInfo {
- ESPInfo(const QString &name, bool enabled, const QString &originName, const QString &fullPath, bool hasIni);
+ ESPInfo(const QString &name, bool enabled, const QString &originName, const QString &fullPath, bool hasIni, std::set<QString> archives);
QString m_Name;
QString m_FullPath;
bool m_Enabled;
@@ -294,6 +298,7 @@ private: QString m_Author;
QString m_Description;
bool m_HasIni;
+ std::set<QString> m_Archives;
std::set<QString> m_Masters;
mutable std::set<QString> m_MasterUnset;
bool operator < (const ESPInfo& str) const
@@ -346,6 +351,8 @@ private: QTemporaryFile m_TempFile;
+ QTime m_LastCheck;
+
const MOBase::IPluginGame *m_GamePlugin;
};
|
