KCDDB

asynchttplookup.h
1 /*
2  SPDX-FileCopyrightText: 2002 Rik Hemsley (rikkus) <[email protected]>
3  SPDX-FileCopyrightText: 2002 Benjamin Meyer <[email protected]>
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 
13 class KJob;
14 
15 namespace KCDDB
16 {
17  class AsyncHTTPLookup : public HTTPLookup
18  {
19 
20  Q_OBJECT
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 
31  Q_SIGNALS:
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_SIGNALSQ_SIGNALS
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Nov 26 2021 23:22:53 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.