mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 06:07:37 +02:00
* Added TomahawkUtils::msleep( uint ). Sigh.
This commit is contained in:
@@ -316,6 +316,18 @@ extensionToMimetype( const QString& extension )
|
|||||||
return s_ext2mime.value( extension, "unknown" );
|
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 QMutex s_noProxyHostsMutex;
|
||||||
static QStringList s_noProxyHosts;
|
static QStringList s_noProxyHosts;
|
||||||
|
|
||||||
|
@@ -99,6 +99,8 @@ namespace TomahawkUtils
|
|||||||
DLLEXPORT QString ageToString( const QDateTime& time, bool appendAgoString = false );
|
DLLEXPORT QString ageToString( const QDateTime& time, bool appendAgoString = false );
|
||||||
DLLEXPORT QString filesizeToString( unsigned int size );
|
DLLEXPORT QString filesizeToString( unsigned int size );
|
||||||
DLLEXPORT QString extensionToMimetype( const QString& extension );
|
DLLEXPORT QString extensionToMimetype( const QString& extension );
|
||||||
|
|
||||||
|
DLLEXPORT void msleep( unsigned int ms );
|
||||||
DLLEXPORT bool newerVersion( const QString& oldVersion, const QString& newVersion );
|
DLLEXPORT bool newerVersion( const QString& oldVersion, const QString& newVersion );
|
||||||
|
|
||||||
DLLEXPORT NetworkProxyFactory* proxyFactory( bool makeClone = false, bool noMutexLocker = false );
|
DLLEXPORT NetworkProxyFactory* proxyFactory( bool makeClone = false, bool noMutexLocker = false );
|
||||||
|
Reference in New Issue
Block a user