]> git.saurik.com Git - wxWidgets.git/blame - contrib/include/wx/mmedia/cdwin.h
Don't set insertion point if the text is the same in SetValue
[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"
15e8daec 18#include "wx/mmedia/defs.h"
e8482f24
GL
19#include "cdbase.h"
20
21#ifdef WXMMEDIA_INTERNAL
22#include <windows.h>
23#include <mmsystem.h>
24typedef struct CDAW_Internal {
25 MCIDEVICEID dev_id;
26} CDAW_Internal;
27#endif
28
29///
15e8daec 30class WXDLLIMPEXP_MMEDIA wxCDAudioWin : public wxCDAudio {
e8482f24
GL
31 DECLARE_DYNAMIC_CLASS(wxCDAudioWin)
32protected:
33 struct CDAW_Internal *m_internal;
34 wxCDtime *m_trksize, *m_trkpos;
35 CDtoc *m_toc;
36 bool m_ok;
37public:
38 ///
39 wxCDAudioWin(void);
40 ///
41 wxCDAudioWin(const char *dev_name);
42 ///
43 virtual ~wxCDAudioWin(void);
44
45 ///
46 virtual bool Play(const wxCDtime& beg_time, const wxCDtime& end_time);
47 ///
48 virtual bool Pause(void);
49 ///
50 virtual bool Resume(void);
51 ///
52 virtual CDstatus GetStatus(void);
53 ///
54 virtual wxCDtime GetTime(void);
55 ///
56 virtual const CDtoc& GetToc(void);
57 ///
58 virtual inline bool Ok(void) const { return m_ok; }
59protected:
60 void PrepareToc();
61};
62
63#endif