BibleTime
Classes | Functions
anonymous_namespace{btinstallmgr.cpp} Namespace Reference

Classes

struct  HasSetTimeoutMillis
 
struct  HasSetTimeoutMillis< T, std::void_t< decltype(std::declval< T & >().setTimeoutMillis(0))> >
 

Functions

template<typename T >
int calculateIntPercentage (T done, T total)
 
template<typename T >
T normalizeCompletionPercentage (const T value)
 

Function Documentation

◆ calculateIntPercentage()

template<typename T >
int anonymous_namespace{btinstallmgr.cpp}::calculateIntPercentage ( T  done,
T  total 
)
inline

Definition at line 40 of file btinstallmgr.cpp.

References BT_ASSERT.

Referenced by BtInstallMgr::statusUpdate().

◆ normalizeCompletionPercentage()

template<typename T >
T anonymous_namespace{btinstallmgr.cpp}::normalizeCompletionPercentage ( const T  value)
inline

Definition at line 31 of file btinstallmgr.cpp.