• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdemultimedia API Reference
  • KDE Home
  • Contact Us
 

libkcddb

  • sources
  • kde-4.14
  • kdemultimedia
  • libkcddb
  • libkcddb
httplookup.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002 Rik Hemsley ( rikkus ) <rik@kde.org>
3  Copyright (C) 2002 Benjamin Meyer <ben-devel@meyerhome.net>
4  Copyright (C) 2002 Nadeem Hasan <nhasan@kde.org>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License as published by the Free Software Foundation; either
9  version 2 of the License, or ( at your option ) any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Library General Public License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 */
21 
22 #ifndef KCDDB_HTTP_LOOKUP_H
23 #define KCDDB_HTTP_LOOKUP_H
24 
25 #include <kurl.h>
26 
27 #include "lookup.h"
28 
29 namespace KIO
30 {
31  class Job;
32 }
33 
34 namespace KCDDB
35 {
36  class HTTPLookup : public Lookup
37  {
38 
39  Q_OBJECT
40 
41  public:
42 
43  enum State
44  {
45  Idle,
46  WaitingForQueryResponse,
47  WaitingForReadResponse
48  };
49 
50  HTTPLookup();
51  virtual ~HTTPLookup();
52 
53  protected:
54 
55  void initURL( const QString &, uint );
56  void makeURL( const QString & );
57  virtual Result fetchURL() = 0;
58 
59  void jobFinished();
60 
61  Result sendQuery();
62  Result sendRead( const CDDBMatch & );
63 
64  signals:
65 
66  void queryReady();
67  void readReady();
68 
69  protected:
70 
71  bool block_;
72  KUrl cgiURL_;
73  QByteArray data_;
74  State state_;
75  Result result_;
76  };
77 }
78 
79 #endif
80 
81 // vim:tabstop=2:shiftwidth=2:expandtab:cinoptions=(s,U1,m1
KCDDB::HTTPLookup::queryReady
void queryReady()
QByteArray
lookup.h
KCDDB::HTTPLookup::fetchURL
virtual Result fetchURL()=0
KCDDB::HTTPLookup::Idle
Definition: httplookup.h:45
KCDDB::Lookup
Definition: lookup.h:36
KCDDB::HTTPLookup
Definition: httplookup.h:36
KCDDB::HTTPLookup::initURL
void initURL(const QString &, uint)
Definition: httplookup.cpp:67
KCDDB::HTTPLookup::State
State
Definition: httplookup.h:43
KCDDB::HTTPLookup::WaitingForReadResponse
Definition: httplookup.h:47
KCDDB::HTTPLookup::readReady
void readReady()
KCDDB::HTTPLookup::data_
QByteArray data_
Definition: httplookup.h:73
KCDDB::HTTPLookup::HTTPLookup
HTTPLookup()
Definition: httplookup.cpp:29
QString
KCDDB::HTTPLookup::WaitingForQueryResponse
Definition: httplookup.h:46
KCDDB::HTTPLookup::state_
State state_
Definition: httplookup.h:74
QPair
KCDDB::HTTPLookup::sendRead
Result sendRead(const CDDBMatch &)
Definition: httplookup.cpp:52
KCDDB::HTTPLookup::result_
Result result_
Definition: httplookup.h:75
KCDDB::HTTPLookup::sendQuery
Result sendQuery()
Definition: httplookup.cpp:40
KCDDB::Result
Result
Definition: kcddb.h:37
KCDDB::HTTPLookup::cgiURL_
KUrl cgiURL_
Definition: httplookup.h:72
KCDDB::HTTPLookup::block_
bool block_
Definition: httplookup.h:71
KCDDB::HTTPLookup::jobFinished
void jobFinished()
Definition: httplookup.cpp:94
KCDDB::HTTPLookup::makeURL
void makeURL(const QString &)
Definition: httplookup.cpp:78
KCDDB::HTTPLookup::~HTTPLookup
virtual ~HTTPLookup()
Definition: httplookup.cpp:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:28:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkcddb

Skip menu "libkcddb"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdemultimedia API Reference

Skip menu "kdemultimedia API Reference"
  • libkcddb
  • libkcompactdisc

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal