• 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
client.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002 Rik Hemsley (rikkus) <rik@kde.org>
3  Copyright (C) 2002-2005 Benjamin C. Meyer <ben at meyerhome dot net>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef KCDDB_CLIENT_H
22 #define KCDDB_CLIENT_H
23 
24 #include "kcddbconfig.h"
25 #include "cdinfo.h"
26 #include <QtCore/QObject>
27 #include "kcddb.h"
28 #include <kdemacros.h>
29 
30 namespace KCDDB
31 {
32  class Lookup;
33  class Submit;
34 
43  class KCDDB_EXPORT Client : public QObject
44  {
45  Q_OBJECT
46 
47  public:
48 
52  Client();
53 
54  virtual ~Client();
55 
56  Config & config() const;
57 
61  CDInfoList lookupResponse() const;
62 
72  Result lookup(const TrackOffsetList &trackOffsetList);
76  Result submit(const CDInfo &cdInfo, const TrackOffsetList &trackOffsetList);
77 
81  void store(const CDInfo &cdInfo, const TrackOffsetList &trackOffsetList);
82 
83  void setBlockingMode( bool );
84  bool blockingMode() const;
85 
86  Q_SIGNALS:
90  void finished( KCDDB::Result result );
91 
92  protected Q_SLOTS:
96  void slotFinished( KCDDB::Result result );
100  void slotSubmitFinished( KCDDB::Result result );
101 
102  private:
103  Result runPendingLookups();
104 
105  class Private;
106  Private * const d;
107  };
108 }
109 
110 #endif // KCDDB_CLIENT_H
111 // vim:tabstop=2:shiftwidth=2:expandtab:cinoptions=(s,U1,m1
cdinfo.h
KCDDB::CDInfo
Information about a CD.
Definition: cdinfo.h:117
QObject
kcddb.h
QList
KCDDB::Client
Class used to obtain CDDB information about a CD.
Definition: client.h:43
KCDDB_EXPORT
#define KCDDB_EXPORT
Definition: kcddb_export.h:32
KCDDB::Result
Result
Definition: kcddb.h:37
KCDDB::Config
Definition: kcddbconfig.h:31
kcddbconfig.h
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