diff options
| author | Thomas Tanner <trtanner@btinternet.com> | 2015-11-26 21:02:45 +0000 |
|---|---|---|
| committer | Thomas Tanner <trtanner@btinternet.com> | 2015-11-26 21:02:45 +0000 |
| commit | 2025145ff6e1ddf1b433eae2f9418e10a6fea82e (patch) | |
| tree | b8ebd015f5e718f03a9f55389e53d43fd0557d31 /src/nexusinterface.h | |
| parent | 1b1fc247dfc4eade8ab34679ca7c58e850a0a1a3 (diff) | |
Replaced the IPluginGame getNexusDisplayURL with some APIs in NexusInterface
It makes more sense to have them here as they have very little to do with the game, more to do with the origin of the mod.
Diffstat (limited to 'src/nexusinterface.h')
| -rw-r--r-- | src/nexusinterface.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/nexusinterface.h b/src/nexusinterface.h index 807d0aec..3fa8f564 100644 --- a/src/nexusinterface.h +++ b/src/nexusinterface.h @@ -325,6 +325,26 @@ public: */
MOBase::IPluginGame const *managedGame() const;
+ /**
+ * @brief see if the passed URL is related to the current game
+ *
+ * Arguably, this should optionally take a gameplugin pointer
+ */
+ bool isURLGameRelated(QUrl const &url) const;
+
+ /**
+ * @brief Get the nexus page for the current game
+ *
+ * Arguably, this should optionally take a gameplugin pointer
+ */
+ QString getGameURL() const;
+
+ /**
+ * @brief Get the URL for the mod web page
+ * @param modID
+ */
+ QString getModURL(int modID) const;
+
signals:
void requestNXMDownload(const QString &url);
|
