mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-04 13:17:34 +02:00
Change infosystem timeout values
This commit is contained in:
@@ -136,7 +136,7 @@ InfoSystem::getInfo( const QString &caller, const InfoTypeMap &inputMap, const Q
|
|||||||
{
|
{
|
||||||
requestData.type = type;
|
requestData.type = type;
|
||||||
requestData.input = inputMap[ type ];
|
requestData.input = inputMap[ type ];
|
||||||
QMetaObject::invokeMethod( m_worker.data(), "getInfo", Qt::QueuedConnection, Q_ARG( Tomahawk::InfoSystem::InfoRequestData, requestData ), Q_ARG( uint, ( timeoutMap.contains( type ) ? timeoutMap[ type ] : 3000 ) ) );
|
QMetaObject::invokeMethod( m_worker.data(), "getInfo", Qt::QueuedConnection, Q_ARG( Tomahawk::InfoSystem::InfoRequestData, requestData ), Q_ARG( uint, ( timeoutMap.contains( type ) ? timeoutMap[ type ] : 0 ) ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -170,7 +170,8 @@ public:
|
|||||||
InfoSystem( QObject *parent );
|
InfoSystem( QObject *parent );
|
||||||
~InfoSystem();
|
~InfoSystem();
|
||||||
|
|
||||||
void getInfo( const InfoRequestData &requestData, uint timeoutMillis = 3000 );
|
void getInfo( const InfoRequestData &requestData, uint timeoutMillis = 0 );
|
||||||
|
//WARNING: if changing timeoutMillis above, also change in below function in .cpp file
|
||||||
void getInfo( const QString &caller, const InfoTypeMap &inputMap, const QVariantMap &customData, const InfoTimeoutMap &timeoutMap = InfoTimeoutMap() );
|
void getInfo( const QString &caller, const InfoTypeMap &inputMap, const QVariantMap &customData, const InfoTimeoutMap &timeoutMap = InfoTimeoutMap() );
|
||||||
void pushInfo( const QString &caller, const InfoType type, const QVariant &input );
|
void pushInfo( const QString &caller, const InfoType type, const QVariant &input );
|
||||||
void pushInfo( const QString &caller, const InfoTypeMap &input );
|
void pushInfo( const QString &caller, const InfoTypeMap &input );
|
||||||
|
Reference in New Issue
Block a user