]> git.saurik.com Git - wxWidgets.git/blame - contrib/include/wx/mmedia/cdwin.h
make wxArtProvider pure virtual (I was not so on
[wxWidgets.git] / contrib / include / wx / mmedia / cdwin.h
CommitLineData
e8482f24
GL
1// /////////////////////////////////////////////////////////////////////////////
2// Name: cdwin.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 __CDA_win_H__
11#define __CDA_win_H__
12
13#ifdef __GNUG__
14#pragma interface
15#endif
16
17#include "wx/wxprec.h"
18#include "cdbase.h"
19
20#ifdef WXMMEDIA_INTERNAL
21#include <windows.h>
22#include <mmsystem.h>
23typedef struct CDAW_Internal {
24 MCIDEVICEID dev_id;
25} CDAW_Internal;
26#endif
27
28///
29class WXDLLEXPORT wxCDAudioWin : public wxCDAudio {
30 DECLARE_DYNAMIC_CLASS(wxCDAudioWin)
31protected:
32 struct CDAW_Internal *m_internal;
33 wxCDtime *m_trksize, *m_trkpos;
34 CDtoc *m_toc;
35 bool m_ok;
36public:
37 ///
38 wxCDAudioWin(void);
39 ///
40 wxCDAudioWin(const char *dev_name);
41 ///
42 virtual ~wxCDAudioWin(void);
43
44 ///
45 virtual bool Play(const wxCDtime& beg_time, const wxCDtime& end_time);
46 ///
47 virtual bool Pause(void);
48 ///
49 virtual bool Resume(void);
50 ///
51 virtual CDstatus GetStatus(void);
52 ///
53 virtual wxCDtime GetTime(void);
54 ///
55 virtual const CDtoc& GetToc(void);
56 ///
57 virtual inline bool Ok(void) const { return m_ok; }
58protected:
59 void PrepareToc();
60};
61
62#endif