]> git.saurik.com Git - wxWidgets.git/blob - contrib/include/wx/mmedia/cdunix.h
compilation fix (missing header) (patch 1151763)
[wxWidgets.git] / contrib / include / wx / mmedia / cdunix.h
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 #if defined(__GNUG__) && !defined(__APPLE__)
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/defs.h"
21 #include "wx/mmedia/cdbase.h"
22
23 ///
24 class WXDLLIMPEXP_MMEDIA wxCDAudioLinux : public wxCDAudio {
25 DECLARE_DYNAMIC_CLASS(wxCDAudioLinux)
26 protected:
27 wxCDtime m_time;
28 CDstatus m_status;
29 CDtoc *m_toc;
30 int m_fd;
31 wxCDtime *m_trksize, *m_trkpos;
32 public:
33 ///
34 wxCDAudioLinux();
35 ///
36 wxCDAudioLinux(const wxString& dev_name);
37 ///
38 virtual ~wxCDAudioLinux();
39
40 ///
41 virtual bool Play(const wxCDtime& beg_time, const wxCDtime& end_time);
42 ///
43 virtual bool Pause();
44 ///
45 virtual bool Resume();
46 ///
47 virtual CDstatus GetStatus();
48 ///
49 virtual wxCDtime GetTime();
50 ///
51 virtual CDtoc& GetToc();
52 ///
53 virtual inline bool Ok() const { return (m_fd != -1); }
54 protected:
55 ///
56 void OpenDevice(const wxString& dev_name);
57 };
58
59 #endif