File indexing completed on 2024-04-21 04:54:19

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 TEST_H
0008 #define TEST_H
0009 
0010 #include <QEventLoop>
0011 #include <QObject>
0012 #include "libkcddb/client.h"
0013 #include "libkcddb/kcddb.h"
0014 
0015 using namespace KCDDB;
0016 
0017 class AsyncMusicBrainzTest : public QObject
0018 {
0019   Q_OBJECT
0020   private Q_SLOTS:
0021     void testLookup();
0022     void slotFinished(KCDDB::Result);
0023 
0024   private:
0025 
0026     QEventLoop m_eventLoop;
0027     KCDDB::Client * client_;
0028     CDInfo m_info;
0029     Result m_result;
0030 };
0031 
0032 #endif