KCompactDisc

wmlib_interface.h
1/*
2 * KCompactDisc - A CD drive interface for the KDE Project.
3 *
4 * Copyright (C) 2007 Alexander Kern <alex.kern@gmx.de>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
10 *
11 * This program 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
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 */
20
21#ifndef WMLIB_INTERFACE_H
22#define WMLIB_INTERFACE_H
23
24#include "kcompactdisc_p.h"
25
26class KWMLibCompactDiscPrivate : public KCompactDiscPrivate
27{
28 Q_OBJECT
29
30 public:
31 KWMLibCompactDiscPrivate(KCompactDisc *, const QString&, const QString &, const QString&);
32 ~KWMLibCompactDiscPrivate() override;
33
34 bool createInterface() override;
35
36 unsigned trackLength(unsigned) override;
37 bool isTrackAudio(unsigned) override;
38 void playTrackPosition(unsigned, unsigned) override;
39 void pause() override;
40 void stop() override;
41 void eject() override;
42 void closetray() override;
43
44 void setVolume(unsigned) override;
45 void setBalance(unsigned) override;
46 unsigned volume() override;
47 unsigned balance() override;
48
49 void queryMetadata() override;
50
51
52 private:
53 KCompactDisc::DiscStatus discStatusTranslate(int);
54 void *m_handle;
55 QString m_audioSystem;
56 QString m_audioDevice;
57
58
59 private Q_SLOTS:
60 void timerExpired();
61 void cdtext();
62};
63
64#endif // WMLIB_INTERFACE_H
KCompactDisc - A CD drive interface for the KDE Project.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:10:51 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.