KCDDB

cddbplookup.h
1/*
2 SPDX-FileCopyrightText: 2002 Rik Hemsley ( rikkus ) <rik@kde.org>
3 SPDX-FileCopyrightText: 2002 Benjamin Meyer <ben-devel@meyerhome.net>
4 SPDX-FileCopyrightText: 2002 Nadeem Hasan <nhasan@kde.org>
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
16namespace 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
AKONADI_CONTACT_CORE_EXPORT const char Lookup[]
SocketState state() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:33 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.