KCDDB

asynchttplookup.h
1/*
2 SPDX-FileCopyrightText: 2002 Rik Hemsley (rikkus) <rik@kde.org>
3 SPDX-FileCopyrightText: 2002 Benjamin Meyer <ben-devel@meyerhome.net>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#ifndef KCDDB_ASYNC_HTTP_LOOKUP_H
9#define KCDDB_ASYNC_HTTP_LOOKUP_H
10
11#include "httplookup.h"
12
13class KJob;
14
15namespace KCDDB
16{
17 class AsyncHTTPLookup : public HTTPLookup
18 {
19
21
22 public:
23
24 AsyncHTTPLookup();
25 virtual ~AsyncHTTPLookup();
26
27 Result lookup( const QString &, uint, const TrackOffsetList & ) override;
28
29 CDInfoList lookupResponse() const;
30
32
33 void finished( KCDDB::Result );
34
35 protected Q_SLOTS:
36 void slotQueryReady();
37 void requestCDInfoForMatch();
38
39 void slotData( KIO::Job *, const QByteArray & );
40 void slotResult( KJob * );
41
42 protected:
43 Result fetchURL() override;
44
45 Result runQuery();
46 };
47}
48
49#endif // KCDDB_ASYNC_HTTP_LOOKUP_H
50
51// vim:tabstop=2:shiftwidth=2:expandtab:cinoptions=(s,U1,m1
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Nov 6 2024 12:14:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.