⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 device.h

📁 Linux下比较早的基于命令行的DVD播放器
💻 H
字号:
//// Copyright (c) 2003 by Istv醤 V醨adi//// This file is part of dxr3Player, a DVD player written specifically // for the DXR3 (aka Hollywood+) decoder card.// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation; either version 2 of the License, or// (at your option) any later version.//// This program is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the// GNU General Public License for more details.//// You should have received a copy of the GNU General Public License// along with this program; if not, write to the Free Software// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA#ifndef DXR3PLAYER_DVD_DEVICE_H#define DXR3PLAYER_DVD_DEVICE_H//------------------------------------------------------------------------------#include <memory>#include <libmpdvdkit/ifo_types.h>//------------------------------------------------------------------------------namespace dvd {//------------------------------------------------------------------------------class FileHandler;//------------------------------------------------------------------------------/** * Interface for DVD devices, such as a DVD ROM */class Device{public:    /**     * Search for a suitable device based on the given path.     */    static std::auto_ptr<Device> findDevice(const char* dvdPath);    /**     * Virtual destructor.     */    virtual ~Device() {}    /**     * Determine if there is a disk in the device.     */    virtual bool hasDisk() = 0;    /**     * Determine if the DVD is open or not.     */    virtual bool isOpen() const = 0;        /**     * Try to open the DVD device. If succeeds, read in all IFO data.     *     * @return if the opening has succeeded.     */    virtual bool open() = 0;    /**     * Get the ID of the currently opened disc into the given buffer.      * The buffer must be at least 16 bytes long.     */    virtual void getID(unsigned char* dest) const = 0;    /**     * Get the ifo handle for the given VTS. If VTS is 0, the VMG's     * handle is returned.     */    virtual const ifo_handle_t* getIFOHandle(unsigned titleNo) const = 0;        /**     * Open the menu or VTS file for the given title.     *     * @return the file handler opened, or 0 if it cannot be opened.     */    virtual FileHandler* openFile(unsigned titleNo, bool isMenu) const = 0;    /**     * Close the DVD device.     */    virtual void close() = 0;    /**     * Eject the DVD device.     */    virtual void eject() = 0;};//------------------------------------------------------------------------------} /* namespace dvd *///------------------------------------------------------------------------------#endif // DXR3PLAYER_DVD_DEVICE_H// Local variables:// mode: c++// End:

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -