summaryrefslogtreecommitdiff
path: root/src/loot.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-11-24 23:23:15 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2019-11-24 23:23:15 -0500
commit64304a6368cf8357bb04d1c0057aec637ebb479a (patch)
tree99556c89a6a480bf8684fba3eee705312cac37bb /src/loot.h
parent70ee786102c8436c7f8f9e8a5d2ea71035d8d572 (diff)
tweaked css, finished markdown report
copy markdown.html to resources/
Diffstat (limited to 'src/loot.h')
-rw-r--r--src/loot.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/loot.h b/src/loot.h
index 3a7c6aa9..30ef4b60 100644
--- a/src/loot.h
+++ b/src/loot.h
@@ -21,6 +21,8 @@ public:
{
MOBase::log::Levels type;
QString text;
+
+ QString toMarkdown() const;
};
struct File
@@ -39,6 +41,7 @@ public:
QString info;
QString toString(bool isClean) const;
+ QString toMarkdown(bool isClean) const;
QString cleaningString() const;
};
@@ -52,12 +55,17 @@ public:
bool loadsArchive = false;
bool isMaster = false;
bool isLightMaster = false;
+
+ QString toMarkdown() const;
};
struct Stats
{
qint64 time = 0;
- QString version;
+ QString lootcliVersion;
+ QString lootVersion;
+
+ QString toMarkdown() const;
};
struct Report
@@ -65,6 +73,8 @@ public:
std::vector<Message> messages;
std::vector<Plugin> plugins;
Stats stats;
+
+ QString toMarkdown() const;
};
@@ -107,6 +117,7 @@ private:
Message reportMessage(const QJsonObject& message) const;
std::vector<Plugin> reportPlugins(const QJsonArray& plugins) const;
Loot::Plugin reportPlugin(const QJsonObject& plugin) const;
+ Loot::Stats reportStats(const QJsonObject& stats) const;
std::vector<Message> reportMessages(const QJsonArray& array) const;
std::vector<Loot::File> reportFiles(const QJsonArray& array) const;