Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Oct 21, 2017
1 parent 91c05c3 commit 630cfbd
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion doomsday/apps/client/include/network/packagedownloader.h
Expand Up @@ -24,18 +24,30 @@
#include <de/String>

/**
* Utility for downloading packages from a remote repository.
* Utility for downloading packages from remote repositories.
* @ingroup network
*/
class PackageDownloader
{
public:
PackageDownloader();

/**
* Mount a server's remote file repository.
*
* @param serverInfo Server information.
*/
void mountFileRepository(de::shell::ServerInfo const &serverInfo);

void unmountFileRepository();

/**
* Start downloading files for a set of packages. A notification callback is done
* after the operation is complete (successfully or not).
*
* @param packageIds Packages to download from the remote repository.
* @param callback Called when the downloads are finished or cancelled.
*/
void download(de::StringList packageIds, std::function<void ()> callback);

de::String fileRepository() const;
Expand Down

0 comments on commit 630cfbd

Please sign in to comment.