• 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
lookup.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_LOOKUP_H
23 #define KCDDB_LOOKUP_H
24 
25 #include <QtCore/QList>
26 #include <QtCore/QObject>
27 #include <QtCore/QPair>
28 #include <libkcddb/cddb.h>
29 #include <libkcddb/cdinfo.h>
30 
31 namespace KCDDB
32 {
33  typedef QPair<QString, QString> CDDBMatch;
34  typedef QList<CDDBMatch> CDDBMatchList;
35 
36  class Lookup : public CDDB, public QObject
37  {
38  public:
39 
40  enum Transport
41  {
42  CDDBP,
43  HTTP
44  };
45 
46 
47  Lookup();
48  virtual ~Lookup();
49 
50  virtual Result lookup( const QString &, uint, const TrackOffsetList & ) = 0;
51 
52  CDInfoList lookupResponse() const;
53 
54  protected:
55 
56  void parseExtraMatch( const QString & );
57  Result parseQuery( const QString & );
58  Result parseRead( const QString & );
59 
60  CDInfoList cdInfoList_;
61  CDDBMatchList matchList_;
62  QString category_;
63  QString discid_;
64  };
65 }
66 
67 #endif // KCDDB_LOOKUP_H
68 // vim:tabstop=2:shiftwidth=2:expandtab:cinoptions=(s,U1,m1
KCDDB::Lookup::cdInfoList_
CDInfoList cdInfoList_
Definition: lookup.h:60
KCDDB::Lookup::Lookup
Lookup()
Definition: lookup.cpp:28
KCDDB::Lookup::discid_
QString discid_
Definition: lookup.h:63
KCDDB::Lookup
Definition: lookup.h:36
KCDDB::Lookup::lookup
virtual Result lookup(const QString &, uint, const TrackOffsetList &)=0
KCDDB::CDDBMatch
QPair< QString, QString > CDDBMatch
Definition: lookup.h:33
KCDDB::Lookup::~Lookup
virtual ~Lookup()
Definition: lookup.cpp:33
KCDDB::Lookup::matchList_
CDDBMatchList matchList_
Definition: lookup.h:61
cdinfo.h
KCDDB::Lookup::lookupResponse
CDInfoList lookupResponse() const
Definition: lookup.cpp:80
KCDDB::Lookup::HTTP
Definition: lookup.h:43
KCDDB::Lookup::CDDBP
Definition: lookup.h:42
QObject
KCDDB::Lookup::parseQuery
Result parseQuery(const QString &)
Definition: lookup.cpp:39
QString
QList< CDDBMatch >
KCDDB::Lookup::category_
QString category_
Definition: lookup.h:62
QPair
cddb.h
KCDDB::CDDBMatchList
QList< CDDBMatch > CDDBMatchList
Definition: lookup.h:34
KCDDB::Result
Result
Definition: kcddb.h:37
KCDDB::CDDB
Definition: cddb.h:33
KCDDB::Lookup::parseRead
Result parseRead(const QString &)
Definition: lookup.cpp:69
KCDDB::Lookup::Transport
Transport
Definition: lookup.h:40
KCDDB::Lookup::parseExtraMatch
void parseExtraMatch(const QString &)
Definition: lookup.cpp:62
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