Skip to content

Commit

Permalink
Changed name from fileName to moId
Browse files Browse the repository at this point in the history
  • Loading branch information
SaltyTrout committed Oct 8, 2023
1 parent 9ec5bab commit a2fe976
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/idownloadmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class QDLLEXPORT IDownloadManager : public QObject
* @return absoute path to the downloaded file. This file may not yet exist if the
* download is incomplete
*/
virtual QString downloadPath(QString fileName) = 0;
virtual QString downloadPath(QString moId) = 0;

/**
* @brief Installs a handler to be called when a download complete.
Expand All @@ -52,7 +52,7 @@ class QDLLEXPORT IDownloadManager : public QObject
* reason this should fail).
*/
virtual bool
onDownloadComplete(const std::function<void(QString fileName)>& callback) = 0;
onDownloadComplete(const std::function<void(QString moId)>& callback) = 0;

/**
* @brief Installs a handler to be called when a download is paused.
Expand All @@ -63,8 +63,7 @@ class QDLLEXPORT IDownloadManager : public QObject
* @return true if the handler was successfully installed (there is as of now no known
* reason this should fail).
*/
virtual bool
onDownloadPaused(const std::function<void(QString fileName)>& callback) = 0;
virtual bool onDownloadPaused(const std::function<void(QString moId)>& callback) = 0;

/**
* @brief Installs a handler to be called when a download fails.
Expand All @@ -75,8 +74,7 @@ class QDLLEXPORT IDownloadManager : public QObject
* @return true if the handler was successfully installed (there is as of now no known
* reason this should fail).
*/
virtual bool
onDownloadFailed(const std::function<void(QString fileName)>& callback) = 0;
virtual bool onDownloadFailed(const std::function<void(QString moId)>& callback) = 0;

/**
* @brief Installs a handler to be called when a download is removed.
Expand All @@ -87,8 +85,7 @@ class QDLLEXPORT IDownloadManager : public QObject
* @return true if the handler was successfully installed (there is as of now no known
* reason this should fail).
*/
virtual bool
onDownloadRemoved(const std::function<void(QString fileName)>& callback) = 0;
virtual bool onDownloadRemoved(const std::function<void(QString moId)>& callback) = 0;
};

} // namespace MOBase
Expand Down

0 comments on commit a2fe976

Please sign in to comment.