KCDDB

cddbplookup.h
1 /*
2  SPDX-FileCopyrightText: 2002 Rik Hemsley ( rikkus ) <[email protected]>
3  SPDX-FileCopyrightText: 2002 Benjamin Meyer <[email protected]>
4  SPDX-FileCopyrightText: 2002 Nadeem Hasan <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 
9 #ifndef KCDDB_CDDBP_LOOKUP_H
10 #define KCDDB_CDDBP_LOOKUP_H
11 
12 #include "lookup.h"
13 
14 #include <QTcpSocket>
15 
16 namespace KCDDB
17 {
18  class CDDBPLookup : public Lookup
19  {
20  public:
21  CDDBPLookup();
22  virtual ~CDDBPLookup();
23 
24  void sendHandshake();
25  void sendProto();
26  void sendQuery();
27  void sendRead( const CDDBMatch & );
28  void sendQuit();
29 
30  void close();
31  protected:
32  qint64 writeLine( const QString & );
33 
34  bool parseGreeting( const QString & );
35  bool parseHandshake( const QString & );
36 
37  bool isConnected()
38  { return QAbstractSocket::ConnectedState == socket_->state(); }
39 
40  QTcpSocket* socket_;
41  };
42 }
43 
44 #endif
45 
46 // vim:tabstop=2:shiftwidth=2:expandtab:cinoptions=(s,U1,m1
const QList< QKeySequence > & close()
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.