KCompactDisc

wm_platform.h
1#ifndef WM_PLATFORM_H
2#define WM_PLATFORM_H
3/*
4 * This file is part of WorkMan, the civilized CD player library
5 * Copyright (C) 1991-1997 by Steven Grimm <koreth@midwinter.com>
6 * Copyright (C) by Dirk Försterling <milliByte@DeathsDoor.com>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
17 *
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the Free
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 *
22 * The platform interface
23 *
24 * This is just one more step to a more modular and understandable code.
25 */
26
27#define WM_CDS_ERROR(status) ((status) < 0 ||\
28 (status) == WM_CDM_UNKNOWN)
29
30#define WM_CDS_NO_DISC(status) ((status) < 0 ||\
31 (status) == WM_CDM_UNKNOWN ||\
32 (status) == WM_CDM_EJECTED ||\
33 (status) == WM_CDM_NO_DISC)
34
35#define WM_CDS_DISC_READY(status) ((status) == WM_CDM_TRACK_DONE ||\
36 (status) == WM_CDM_PLAYING ||\
37 (status) == WM_CDM_FORWARD ||\
38 (status) == WM_CDM_PAUSED ||\
39 (status) == WM_CDM_STOPPED ||\
40 (status) == WM_CDM_LOADING ||\
41 (status) == WM_CDM_BUFFERING)
42
43#define WM_CDS_DISC_PLAYING(status) ((status) == WM_CDM_TRACK_DONE ||\
44 (status) == WM_CDM_PLAYING ||\
45 (status) == WM_CDM_FORWARD ||\
46 (status) == WM_CDM_PAUSED)
47#define WM_CDM_BACK 1
48#define WM_CDM_TRACK_DONE 1
49#define WM_CDM_PLAYING 2
50#define WM_CDM_FORWARD 3
51#define WM_CDM_PAUSED 4
52#define WM_CDM_STOPPED 5
53#define WM_CDM_EJECTED 6
54#define WM_CDM_DEVICECHANGED 9 /* deprecated */
55#define WM_CDM_NO_DISC 10
56#define WM_CDM_UNKNOWN 11
57#define WM_CDM_CDDAERROR 12
58#define WM_CDM_LOADING 13 /* tribute to phonon state machine */
59#define WM_CDM_BUFFERING 14 /* tribute to phonon state machine */
60#define WM_CDM_CDDAACK 0xF0
61
62#endif /* WM_PLATFORM_H */
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:13:35 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.