📄 broadcast.h
字号:
/******************************************************************************** broadcast.h: Broadcast class definition*-------------------------------------------------------------------------------* (c)1999-2001 VideoLAN* $Id: broadcast.h,v 1.1 2001/10/06 21:23:36 bozo Exp $** Authors: Benoit Steiner <benny@via.ecp.fr>** 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 _BROADCAST_H_#define _BROADCAST_H_//------------------------------------------------------------------------------// Forward declaration//------------------------------------------------------------------------------class C_Input;class C_Channel;class C_Program;//------------------------------------------------------------------------------// Defines//------------------------------------------------------------------------------#define BROADCAST_WAITING 1#define BROADCAST_RUNNING 2#define BROADCAST_STOPPED 3#define BROADCAST_SUSPENDED 4 #define BROADCAST_ERROR 5//------------------------------------------------------------------------------// C_Broadcast//------------------------------------------------------------------------------// //------------------------------------------------------------------------------class C_Broadcast{ public: // Class construction C_Broadcast(const C_Program* pProgram, C_Input* pInput, C_Channel* pChannel); void SetStatus(byte bStatus) { m_bStatus = bStatus; } // Accessors// const C_String& GetPgrmName() const// { return m_pProgram->GetName(); } const C_Program* GetProgram() const { return m_pProgram; } C_Input* GetInput() const { return m_pInput; } C_Channel* GetChannel() const { return m_pChannel; } byte GetStatus() const { return m_bStatus; } void SetOption(const C_String& strName, const C_String strValue); const C_String GetOption(const C_String& strName) const; void SetOptions(const C_HashTable<C_String, C_String>& cOptions); private:// C_String m_strPgrmName; const C_Program* m_pProgram; C_Input* m_pInput; C_Channel* m_pChannel; C_HashTable<C_String, C_String> m_cOptions; byte m_bStatus;};#else#error "Multiple inclusions of broadcast.h"#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -