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

📄 manager.h

📁 可用该程序将avi的电影文件转化为TS流
💻 H
字号:
/******************************************************************************** manager.h: Manager class definition*-------------------------------------------------------------------------------* (c)1999-2001 VideoLAN* $Id: manager.h,v 1.4 2002/09/26 16:05:34 jpsaman Exp $** Authors: Benoit Steiner <benny@via.ecp.fr>*          Arnaud de Bossoreille de Ribou <bozo@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 _MANAGER_H_#define _MANAGER_H_//------------------------------------------------------------------------------// C_Manager : manage all the inputs and their programs//------------------------------------------------------------------------------class C_Manager : public C_RequestHandler, public C_EventHandler,                  public C_Thread{ public:  C_Manager(handle hLog, C_EventHub* pEventHub);  virtual ~C_Manager();  int Init();  int Run();  int Stop();  int Destroy();  // Handlers  virtual C_Answer HandleRequest(const C_Request& cRequest);  virtual void HandleEvent(const C_Event& cEvent); protected:  // Pgrm table management  void InitPgrmTable();  void DestroyPgrmTable();  // Inputs management  void InitInputs();  void DestroyInputs();  // Channels management  void InitChannels();  void DestroyChannels();    void StopPrograms();  // Commands processing  C_Answer Browse(const C_Request& cRequest);  C_Answer Show(const C_Request& cRequest);  C_Answer Start(const C_Request& cRequest);  C_Answer Resume(const C_Request& cRequest);  C_Answer Suspend(const C_Request& cRequest);  C_Answer Stop(const C_Request& cRequest);  C_Answer Config(const C_Request& cRequest);  C_Answer Program(const C_Request& cRequest);  C_Answer Input(const C_Request& cRequest);  C_Answer Channel(const C_Request& cRequest);  // C_Answer Forward(const C_Request& cRequest);  // C_Answer Rewind(const C_Request& cRequest);  // C_Thread APIs to isolate events  virtual void InitWork();  virtual void DoWork();  virtual void StopWork();  virtual void CleanWork(); private:  virtual void PrivHandleEvent(const C_Event& cEvent);  handle m_hLog;  C_EventHub* m_pEventHub;  C_Mutex m_cCmdLock;  bool m_bStop;  C_Mutex m_cEventFifoLock;  C_Semaphore m_cEventQueued;  C_Vector<C_Event> m_cEventFifo;  // Ressources  C_Repository<C_String, C_Input> m_cInputList;  C_Repository<C_String, C_Channel> m_cChannelList;  // Programs  C_PgrmDirectory m_cProgramList;  // Running broadcasts  C_Repository<C_String, C_Broadcast> m_cBroadcasts;};#else#error "Multiple inclusions of manager.h"#endif

⌨️ 快捷键说明

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