game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
anonymous_namespace{file_download_service.cpp} Namespace Reference

Functions

bool isHttpUrl (const std::string &url)
const std::regex & kContentLengthRegex ()
const std::regex & kPercentRegex ()
const std::regex & kSpeedRegex ()
const std::regex & kSpeedRegexWithB ()
void storeFuture (std::shared_ptr< std::future< void > > f)

Variables

std::vector< std::shared_ptr< std::future< void > > > activeFutures_
std::mutex futuresMutex_

Function Documentation

◆ isHttpUrl()

bool anonymous_namespace{file_download_service.cpp}::isHttpUrl ( const std::string & url)

Definition at line 89 of file file_download_service.cpp.

◆ kContentLengthRegex()

const std::regex & anonymous_namespace{file_download_service.cpp}::kContentLengthRegex ( )

Definition at line 55 of file file_download_service.cpp.

◆ kPercentRegex()

const std::regex & anonymous_namespace{file_download_service.cpp}::kPercentRegex ( )

Definition at line 40 of file file_download_service.cpp.

◆ kSpeedRegex()

const std::regex & anonymous_namespace{file_download_service.cpp}::kSpeedRegex ( )

Definition at line 45 of file file_download_service.cpp.

◆ kSpeedRegexWithB()

const std::regex & anonymous_namespace{file_download_service.cpp}::kSpeedRegexWithB ( )

Definition at line 50 of file file_download_service.cpp.

◆ storeFuture()

void anonymous_namespace{file_download_service.cpp}::storeFuture ( std::shared_ptr< std::future< void > > f)

Definition at line 64 of file file_download_service.cpp.

References activeFutures_, and futuresMutex_.

Variable Documentation

◆ activeFutures_

std::vector<std::shared_ptr<std::future<void> > > anonymous_namespace{file_download_service.cpp}::activeFutures_

Definition at line 61 of file file_download_service.cpp.

Referenced by storeFuture().

◆ futuresMutex_

std::mutex anonymous_namespace{file_download_service.cpp}::futuresMutex_

Definition at line 62 of file file_download_service.cpp.

Referenced by storeFuture().