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