diff options
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 |
