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

📄 useroperations.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_USEROPERATIONS_H#define DXR3PLAYER_DVD_USEROPERATIONS_H//------------------------------------------------------------------------------#include <libmpdvdkit/ifo_types.h>//------------------------------------------------------------------------------namespace dvd {//------------------------------------------------------------------------------/** * The user operation flags. */class UserOperations{public:    /// Flag mask: time play or search    static const size_t TIME_PLAY_SEARCH = 0x00000001;    /// Flag mask: PTT play or search    static const size_t PTT_PLAY_SEARCH = 0x00000002;    /// Flag mask: title play    static const size_t TITLE_PLAY = 0x00000004;    /// Flag mask: stop    static const size_t STOP = 0x00000008;    /// Flag mask: go up    static const size_t GOUP = 0x00000010;    /// Flag mask: time or PTT search    static const size_t TIME_PTT_SEARCH = 0x00000020;    /// Flag mask: topPG or prevPG search    static const size_t TOP_PREV_PG_SEARCH = 0x00000040;    /// Flag mask: nextPG search    static const size_t NEXT_PG_SEARCH = 0x00000080;    /// Flag mask: forward scan    static const size_t FORWARD_SCAN = 0x00000100;    /// Flag mask: backward scan    static const size_t BACKWARD_SCAN = 0x00000200;    /// Flag mask: title menu call    static const size_t MENU_TITLE = 0x00000400;    /// Flag mask: root menu call    static const size_t MENU_ROOT = 0x00000800;    /// Flag mask: subpicture menu call    static const size_t MENU_SUBPICTURE = 0x00001000;    /// Flag mask: audio menu call    static const size_t MENU_AUDIO = 0x00002000;    /// Flag mask: angle menu call    static const size_t MENU_ANGLE = 0x00004000;    /// Flag mask: PTT menu call    static const size_t MENU_PTT = 0x00008000;    /// Flag mask: resume    static const size_t RESUME = 0x00010000;    /// Flag mask: button select or activate    static const size_t BUTTON = 0x00020000;    /// Flag mask: still off    static const size_t STILL_OFF = 0x00040000;    /// Flag mask: pause one    static const size_t PAUSE_ON = 0x00080000;    /// Flag mask: audio stream change    static const size_t AUDIO_CHANGE = 0x00100000;    /// Flag mask: subpicture stream change    static const size_t SPU_CHANGE = 0x00200000;    /// Flag mask: angle change    static const size_t ANGLE_CHANGE = 0x00400000;    /// Flag mask: Karaoke audio mix change    static const size_t KARAOKE_MIX_CHANGE = 0x00800000;    /// Flag mask: video presentation mode change    static const size_t VIDEO_CHANGE = 0x01000000;private:    /**     * The low level structure.     */    size_t flags;public:    /**     * Construct the object from the given user operations structure.     */    explicit UserOperations(user_ops_t user_ops);        /**     * Check if any of the the given flags is set     */    bool isAnySet(size_t mask) const;    /**     * Check if all of the the given flags is set     */    bool isAllSet(size_t mask) const;    /**     * Add another mask to this one.     */    UserOperations& operator+=(const UserOperations& other);};//------------------------------------------------------------------------------// Inline definitions//------------------------------------------------------------------------------inline bool UserOperations::isAnySet(size_t mask) const{    return (flags&mask)!=0;}//------------------------------------------------------------------------------inline bool UserOperations::isAllSet(size_t mask) const{    return (flags&mask)==mask;}//------------------------------------------------------------------------------inline UserOperations& UserOperations::operator+=(const UserOperations& other){    flags |= other.flags;    return *this;}//------------------------------------------------------------------------------} /* namespace dvd *///------------------------------------------------------------------------------#endif // DXR3PLAYER_DVD_USEROPERATIONS_H// Local variables:// mode: c++// End:

⌨️ 快捷键说明

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