• 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
cddbplookup.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_CDDBP_LOOKUP_H
23 #define KCDDB_CDDBP_LOOKUP_H
24 
25 #include <qtcpsocket.h>
26 
27 #include "lookup.h"
28 
29 namespace KCDDB
30 {
31  class CDDBPLookup : public Lookup
32  {
33  public:
34  CDDBPLookup();
35  virtual ~CDDBPLookup();
36 
37  void sendHandshake();
38  void sendProto();
39  void sendQuery();
40  void sendRead( const CDDBMatch & );
41  void sendQuit();
42 
43  void close();
44  protected:
45  qint64 writeLine( const QString & );
46 
47  bool parseGreeting( const QString & );
48  bool parseHandshake( const QString & );
49 
50  bool isConnected()
51  { return QAbstractSocket::ConnectedState == socket_->state(); }
52 
53  QTcpSocket* socket_;
54  };
55 }
56 
57 #endif
58 
59 // vim:tabstop=2:shiftwidth=2:expandtab:cinoptions=(s,U1,m1
KCDDB::CDDBPLookup::sendQuery
void sendQuery()
Definition: cddbplookup.cpp:62
KCDDB::CDDBPLookup::sendHandshake
void sendHandshake()
Definition: cddbplookup.cpp:44
QAbstractSocket::state
SocketState state() const
lookup.h
KCDDB::CDDBPLookup::CDDBPLookup
CDDBPLookup()
Definition: cddbplookup.cpp:30
KCDDB::CDDBPLookup::sendRead
void sendRead(const CDDBMatch &)
Definition: cddbplookup.cpp:72
KCDDB::Lookup
Definition: lookup.h:36
KCDDB::CDDBPLookup
Definition: cddbplookup.h:31
KCDDB::CDDBPLookup::close
void close()
Definition: cddbplookup.cpp:91
KCDDB::CDDBPLookup::sendQuit
void sendQuit()
Definition: cddbplookup.cpp:85
KCDDB::CDDBPLookup::parseGreeting
bool parseGreeting(const QString &)
Definition: cddbplookup.cpp:101
QString
QPair
KCDDB::CDDBPLookup::parseHandshake
bool parseHandshake(const QString &)
Definition: cddbplookup.cpp:124
KCDDB::CDDBPLookup::sendProto
void sendProto()
Definition: cddbplookup.cpp:56
KCDDB::CDDBPLookup::~CDDBPLookup
virtual ~CDDBPLookup()
Definition: cddbplookup.cpp:37
KCDDB::CDDBPLookup::writeLine
qint64 writeLine(const QString &)
Definition: cddbplookup.cpp:141
QTcpSocket
KCDDB::CDDBPLookup::isConnected
bool isConnected()
Definition: cddbplookup.h:50
KCDDB::CDDBPLookup::socket_
QTcpSocket * socket_
Definition: cddbplookup.h:53
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