]> git.saurik.com Git - wxWidgets.git/blame - contrib/include/wx/mmedia/cdunix.h
formatting changes
[wxWidgets.git] / contrib / include / wx / mmedia / cdunix.h
CommitLineData
e8482f24
GL
1// ---------------------------------------------------------------------------
2// Name: cdunix.h
3// Purpose: wxMMedia
4// Author: Guilhem Lavaux
5// Created: 1997
6// Updated: 2000
7// Copyright: (C) 1997, 1998, 1999, 2000 Guilhem Lavaux
8// License: wxWindows license
9// ---------------------------------------------------------------------------
10#ifndef __CDUNIXH__
11#define __CDUNIXH__
12
13#ifdef __GNUG__
14#pragma interface "cdunix.h"
15#endif
16
17#include "wx/defs.h"
18#include "wx/object.h"
19#include "wx/string.h"
20#include "wx/mmedia/cdbase.h"
21
22///
23class WXDLLEXPORT wxCDAudioLinux : public wxCDAudio {
24 DECLARE_DYNAMIC_CLASS(wxCDAudioLinux)
25protected:
26 wxCDtime m_time;
27 CDstatus m_status;
28 CDtoc *m_toc;
29 int m_fd;
30 wxCDtime *m_trksize, *m_trkpos;
31public:
32 ///
33 wxCDAudioLinux();
34 ///
35 wxCDAudioLinux(const wxString& dev_name);
36 ///
37 virtual ~wxCDAudioLinux();
38
39 ///
40 virtual bool Play(const wxCDtime& beg_time, const wxCDtime& end_time);
41 ///
42 virtual bool Pause();
43 ///
44 virtual bool Resume();
45 ///
46 virtual CDstatus GetStatus();
47 ///
48 virtual wxCDtime GetTime();
49 ///
50 virtual CDtoc& GetToc();
51 ///
52 virtual inline bool Ok() const { return (m_fd != -1); }
53protected:
54 ///
55 void OpenDevice(const wxString& dev_name);
56};
57
58#endif