File indexing completed on 2024-05-05 04:51:47

0001 /*
0002     SPDX-FileCopyrightText: 1998-2008 Sebastian Trueg <trueg@k3b.org>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #ifndef _K3B_MUSICBRAINZ_TRACK_LOOPUP_JOB_H_
0007 #define _K3B_MUSICBRAINZ_TRACK_LOOPUP_JOB_H_
0008 
0009 #include "k3bthreadjob.h"
0010 
0011 namespace K3b {
0012     class AudioTrack;
0013 }
0014 
0015 namespace K3b {
0016 class MusicBrainzTrackLookupJob : public ThreadJob
0017 {
0018     Q_OBJECT
0019 
0020 public:
0021     MusicBrainzTrackLookupJob( JobHandler* hdl, QObject* parent );
0022     ~MusicBrainzTrackLookupJob() override;
0023 
0024     void setAudioTrack( AudioTrack* track );
0025 
0026     int results();
0027     QString title( int i ) const;
0028     QString artist( int i ) const;
0029 
0030 private:
0031     bool run() override;
0032 
0033     class Private;
0034     Private* const d;
0035 };
0036 }
0037 
0038 #endif