mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 15:59:42 +01:00
* Added TomahawkUtils::msleep( uint ). Sigh.
This commit is contained in:
parent
2dc73d04af
commit
872d8a3da5
@ -316,6 +316,18 @@ extensionToMimetype( const QString& extension )
|
||||
return s_ext2mime.value( extension, "unknown" );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
msleep( unsigned int ms )
|
||||
{
|
||||
#ifdef WIN32
|
||||
Sleep( ms );
|
||||
#else
|
||||
::usleep( ms * 1000 );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
static QMutex s_noProxyHostsMutex;
|
||||
static QStringList s_noProxyHosts;
|
||||
|
||||
|
@ -99,6 +99,8 @@ namespace TomahawkUtils
|
||||
DLLEXPORT QString ageToString( const QDateTime& time, bool appendAgoString = false );
|
||||
DLLEXPORT QString filesizeToString( unsigned int size );
|
||||
DLLEXPORT QString extensionToMimetype( const QString& extension );
|
||||
|
||||
DLLEXPORT void msleep( unsigned int ms );
|
||||
DLLEXPORT bool newerVersion( const QString& oldVersion, const QString& newVersion );
|
||||
|
||||
DLLEXPORT NetworkProxyFactory* proxyFactory( bool makeClone = false, bool noMutexLocker = false );
|
||||
|
Loading…
x
Reference in New Issue
Block a user