File indexing completed on 2024-04-28 04:54:34
0001 /* 0002 SPDX-FileCopyrightText: 2006 Richard Lärkäng <nouseforaname@home.se> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef ASYNCMUSICBRAINZLOOKUP_H 0008 #define ASYNCMUSICBRAINZLOOKUP_H 0009 0010 #include "lookup.h" 0011 0012 namespace KCDDB 0013 { 0014 class LookupThread; 0015 0016 class AsyncMusicBrainzLookup : public Lookup 0017 { 0018 0019 Q_OBJECT 0020 0021 public: 0022 AsyncMusicBrainzLookup(); 0023 virtual ~AsyncMusicBrainzLookup(); 0024 0025 Result lookup( const QString &, uint, const TrackOffsetList & ) override; 0026 0027 CDInfoList lookupResponse() const; 0028 0029 Q_SIGNALS: 0030 void finished( KCDDB::Result ); 0031 0032 protected Q_SLOTS: 0033 void processLookupResult( KCDDB::Result result, KCDDB::CDInfoList lookupResponse ); 0034 }; 0035 } 0036 0037 #endif // ASYNCMUSICBRAINZLOOKUP_H 0038 0039 // vim:tabstop=2:shiftwidth=2:expandtab:cinoptions=(s,U1,m1