00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifndef MMSDVD_H_
00034 #define MMSDVD_H_
00035
00036 #include "mmsmedia/mmsav.h"
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053 class MMSDVD : public MMSAV {
00054 private:
00055 string device;
00056 int audioChannel,
00057 spuChannel;
00058 int maxAudioChannels,
00059 maxSpuChannels;
00060 unsigned int windowWidth,
00061 windowHeight;
00062
00063 void checkDevice(const string device);
00064 void initialize(MMSWindow *window, const string device, const bool verbose);
00065
00066 void mouseEvent(const unsigned int event, const unsigned int x, const unsigned int y) const;
00067
00068 #ifdef __HAVE_GSTREAMER__
00069 #endif
00070 #ifdef __HAVE_XINE__
00071 void xineOpen();
00072 #endif
00073
00074 protected:
00075
00076 public:
00077
00078 static const unsigned short STATUS_PREVIOUS = 100;
00079 static const unsigned short STATUS_NEXT = 101;
00080 static const unsigned short STATUS_EJECT = 102;
00081 static const unsigned short STATUS_ANGLE_PREVIOUS = 103;
00082 static const unsigned short STATUS_ANGLE_NEXT = 104;
00083 static const unsigned short STATUS_AUDIO_PREVIOUS = 105;
00084 static const unsigned short STATUS_AUDIO_NEXT = 106;
00085 static const unsigned short STATUS_SPU_PREVIOUS = 107;
00086 static const unsigned short STATUS_SPU_NEXT = 108;
00087
00088
00089 MMSDVD(MMSWindow *window, const string device = "/dev/dvd", const bool verbose = false);
00090 ~MMSDVD();
00091
00092 void startPlaying(const bool cont = true);
00093 void rewind();
00094 void previous();
00095 void next();
00096 void anglePrevious();
00097 void angleNext();
00098 void audioChannelPrevious();
00099 void audioChannelNext();
00100 void spuChannelPrevious();
00101 void spuChannelNext();
00102
00103 void eject();
00104
00105 void menuUp();
00106 void menuDown();
00107 void menuLeft();
00108 void menuRight();
00109 void menuSelect();
00110 void showMainMenu();
00111 bool inMenu();
00112
00113 void mouseButton(const unsigned int x, const unsigned int y) const;
00114 void mouseMove(const unsigned int x, const unsigned int y) const;
00115
00116
00117 string getTitle();
00118 int getChapterNumber();
00119 int getChapterCount();
00120 int getTitleNumber();
00121 int getTitleCount();
00122
00123 void updateChannelInfo();
00124 };
00125
00126 #endif