File indexing completed on 2024-04-28 04:48:14

0001 /****************************************************************************************
0002  * Copyright (c) 2012 Jasneet Singh Bhatti <jazneetbhatti@gmail.com>                    *
0003  * This program is free software; you can redistribute it and/or modify it under        *
0004  * the terms of the GNU General Public License as published by the Free Software        *
0005  * Foundation; either version 2 of the License, or (at your option) any later           *
0006  * version.                                                                             *
0007  *                                                                                      *
0008  * This program is distributed in the hope that it will be useful, but WITHOUT ANY      *
0009  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A      *
0010  * PARTICULAR PURPOSE. See the GNU General Public License for more details.             *
0011  *                                                                                      *
0012  * You should have received a copy of the GNU General Public License along with         *
0013  * this program.  If not, see <http://www.gnu.org/licenses/>.                           *
0014  ****************************************************************************************/
0015 
0016 #include "MockTrackForUrlWorker.h"
0017 
0018 #include "core/meta/Meta.h"
0019 
0020 MockTrackForUrlWorker::MockTrackForUrlWorker( const QUrl &url )
0021     : TrackForUrlWorker( url )
0022 {
0023 }
0024 
0025 MockTrackForUrlWorker::MockTrackForUrlWorker( const QString &url )
0026     : TrackForUrlWorker( url )
0027 {
0028 }
0029 
0030 void
0031 MockTrackForUrlWorker::run(ThreadWeaver::JobPointer self, ThreadWeaver::Thread *thread)
0032 {
0033     Q_UNUSED(thread);
0034     
0035     emit started(self);
0036     
0037     QFETCH( Meta::TrackPtr, track );
0038     m_track = track;
0039     
0040     emit done(self);
0041 }