diff options
| author | Tannin <devnull@localhost> | 2013-10-10 19:32:01 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2013-10-10 19:32:01 +0200 |
| commit | 54c7131a5e2fa282369e25344ac190d51676c383 (patch) | |
| tree | cf03c6b8ba02afc17fece75d5e83a20cac4a8fbc /src/downloadmanager.h | |
| parent | 15e256ef4460ecfdf05b4f17b4fe8f889f4c6b11 (diff) | |
- new toggle to display hidden downloads
- hidden downloads can be un-hidden
- the installation manager now more thoroughly cleans up the temporary directory after installation
- added SkyrimLauncher.exe to the list of auto-detected executables
- bugfix: shutting down MO while downloads where active in some occasions didn't work
- bugfix: when canceling the only active download the taskbar icon didn't return to normal
Diffstat (limited to 'src/downloadmanager.h')
| -rw-r--r-- | src/downloadmanager.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/downloadmanager.h b/src/downloadmanager.h index 0d49aa35..a42ac073 100644 --- a/src/downloadmanager.h +++ b/src/downloadmanager.h @@ -102,8 +102,10 @@ private: NexusInfo m_NexusInfo; + bool m_Hidden; + static DownloadInfo *createNew(const NexusInfo &nexusInfo, int modID, int fileID, const QStringList &URLs); - static DownloadInfo *createFromMeta(const QString &filePath); + static DownloadInfo *createFromMeta(const QString &filePath, bool showHidden); /** * @brief rename the file @@ -169,6 +171,11 @@ public: void setSupportedExtensions(const QStringList &extensions); /** + * @brief sets whether hidden files are to be shown after all + */ + void setShowHidden(bool showHidden); + + /** * @brief download from an already open network connection * * @param reply the network reply to download from @@ -264,6 +271,13 @@ public: int getModID(int index) const; /** + * @brief determine if the specified file is supposed to be hidden + * @param index index of the file to look up + * @return true if the specified file is supposed to be hidden + */ + bool isHidden(int index) const; + + /** * @brief retrieve all nexus info of the download specified by index * * @param index index of the file to look up @@ -353,6 +367,12 @@ public slots: void removeDownload(int index, bool deleteFile); /** + * @brief restores the specified download to view (which was previously hidden + * @param index index of the download to restore + */ + void restoreDownload(int index); + + /** * @brief cancel the specified download. This will lead to the corresponding file to be deleted * * @param index index of the download to cancel @@ -436,6 +456,8 @@ private: std::map<QString, int> m_DownloadFails; + bool m_ShowHidden; + }; #endif // DOWNLOADMANAGER_H |
