1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 08:19:42 +01:00

* Fixed unnamed DbCmd_SourceOffline & removed more debug output. Sigh :-)

This commit is contained in:
Christian Muehlhaeuser 2011-05-20 01:16:06 +02:00
parent 2f11b397dd
commit b2b836ff01
2 changed files with 10 additions and 5 deletions

View File

@ -1,5 +1,5 @@
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
*
*
* Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
*
* Tomahawk is free software: you can redistribute it and/or modify
@ -30,6 +30,9 @@ Q_OBJECT
public:
explicit DatabaseCommand_SourceOffline( int id );
virtual QString commandname() const { return "sourceoffline"; }
bool doesMutates() const { return true; }
void exec( DatabaseImpl* lib );

View File

@ -95,7 +95,7 @@ ScriptResolver::readStdout()
void
ScriptResolver::sendMsg( const QByteArray& msg )
{
qDebug() << Q_FUNC_INFO << m_ready << msg << msg.length();
// qDebug() << Q_FUNC_INFO << m_ready << msg << msg.length();
quint32 len;
qToBigEndian( msg.length(), (uchar*) &len );
@ -107,7 +107,7 @@ ScriptResolver::sendMsg( const QByteArray& msg )
void
ScriptResolver::handleMsg( const QByteArray& msg )
{
qDebug() << Q_FUNC_INFO << msg.size() << QString::fromAscii( msg );
// qDebug() << Q_FUNC_INFO << msg.size() << QString::fromAscii( msg );
bool ok;
QVariant v = m_parser.parse( msg, &ok );
@ -213,7 +213,7 @@ ScriptResolver::resolve( const Tomahawk::query_ptr& query )
m.insert( "qid", query->id() );
const QByteArray msg = m_serializer.serialize( QVariant( m ) );
qDebug() << "ASKING SCRIPT RESOLVER TO RESOLVE:" << msg;
// qDebug() << "ASKING SCRIPT RESOLVER TO RESOLVE:" << msg;
sendMsg( msg );
}
@ -221,7 +221,8 @@ ScriptResolver::resolve( const Tomahawk::query_ptr& query )
void
ScriptResolver::doSetup( const QVariantMap& m )
{
qDebug() << Q_FUNC_INFO << m;
// qDebug() << Q_FUNC_INFO << m;
m_name = m.value( "name" ).toString();
m_weight = m.value( "weight", 0 ).toUInt();
m_timeout = m.value( "timeout", 25 ).toUInt() * 1000;
@ -267,6 +268,7 @@ ScriptResolver::saveConfig()
sendMsg( data );
}
QWidget* ScriptResolver::configUI() const
{
if( m_configWidget.isNull() )