Commit 94125a70 authored by Damien Lucas's avatar Damien Lucas

. Add a GetType method in the C_Input class.

  it returns "dvb", "local", "video" or "tcp"
parent fb8c1310
......@@ -2,7 +2,7 @@
* localinput.h: Local Input class definition
*-------------------------------------------------------------------------------
* (c)1999-2001 VideoLAN
* $Id: localinput.h,v 1.7 2003/07/31 14:46:36 nitrox Exp $
* $Id: localinput.h,v 1.8 2003/09/10 12:57:52 nitrox Exp $
*
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
*
......@@ -45,6 +45,7 @@ public:
C_LocalInput(C_Module* pModule, const C_String& strName);
~C_LocalInput();
virtual C_String GetType () {return C_String("local");}
protected:
// Init/termination methods
virtual void OnInit();
......
......@@ -2,7 +2,7 @@
* tcpinput.h: TCP Input class definition
*-------------------------------------------------------------------------------
* (c)2003 Anevia
* $Id: tcpinput.h,v 1.1 2003/08/25 12:45:59 nitrox Exp $
* $Id: tcpinput.h,v 1.2 2003/09/10 12:57:52 nitrox Exp $
*
* Authors: Damien Lucas <damien.lucas@anevia.com>
*
......@@ -35,6 +35,7 @@ class C_TcpInput : public C_Input
public:
C_TcpInput(C_Module* pModule, const C_String& strName);
~C_TcpInput();
virtual C_String GetType() {return C_String("tcp");}
protected:
// Init/termination methods
......
......@@ -2,7 +2,7 @@
* v4linput.h: eading from a v4l device (WebCam, tv tuner)
*-------------------------------------------------------------------------------
* (c)1999-2001 VideoLAN
* $Id: v4linput.h,v 1.3 2003/06/08 18:32:24 tooney Exp $
* $Id: v4linput.h,v 1.4 2003/09/10 12:57:52 nitrox Exp $
*
* Authors: Tristan Leteurtre <tooney@videolan.org>
*
......@@ -34,6 +34,7 @@ public:
C_v4lInput(C_Module* pModule, const C_String& strName);
~C_v4lInput();
virtual C_String GetType() {return C_String("v4l");}
protected:
// Init/termination methods
virtual void OnInit();
......
......@@ -2,7 +2,7 @@
* videoinput.h: Video Input class definition
*-------------------------------------------------------------------------------
* (c)1999-2001 VideoLAN
* $Id: videoinput.h,v 1.6 2003/06/02 19:50:36 jpsaman Exp $
* $Id: videoinput.h,v 1.7 2003/09/10 12:57:52 nitrox Exp $
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
*
......@@ -41,6 +41,7 @@ public:
C_VideoInput(C_Module* pModule, const C_String& strName);
~C_VideoInput();
virtual C_String GetType() {return C_String("video");}
protected:
// Init/termination methods
virtual void OnInit();
......
......@@ -2,7 +2,7 @@
* input.h: Input class definition
*-------------------------------------------------------------------------------
* (c)1999-2001 VideoLAN
* $Id: input.h,v 1.9 2003/08/01 16:07:09 nitrox Exp $
* $Id: input.h,v 1.10 2003/09/10 12:57:52 nitrox Exp $
*
* Authors: Benoit Steiner <benny@via.ecp.fr>
*
......@@ -96,6 +96,7 @@ class C_Input
// Misc
const C_String& GetName() const;
virtual C_String GetType() = 0;
bool operator == (const C_Input& cInput) const;
//virtual C_Input* Clone() const = 0;
......
......@@ -2,7 +2,7 @@
* request.cpp: User requests encapsulation
*-------------------------------------------------------------------------------
* (c)1999-2001 VideoLAN
* $Id: request.cpp,v 1.3 2003/08/01 16:07:09 nitrox Exp $
* $Id: request.cpp,v 1.4 2003/09/10 12:57:52 nitrox Exp $
*
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
*
......@@ -618,7 +618,7 @@ C_String C_Message::AnswerToString(C_Answer &cAnswer)
{
C_String str(cAnswer.m_strProvider);
str += C_String(" ") + cAnswer.m_cMessages.Size();
//str += C_String(" ") + cAnswer.m_cMessages.Size();
C_ListIterator<C_String> cIterator1 = cAnswer.m_cMessages.CreateIterator();
while (cIterator1.HasNext())
......@@ -626,7 +626,7 @@ C_String C_Message::AnswerToString(C_Answer &cAnswer)
str += " " + *cIterator1.GetNext();
}
str += C_String(" ") + cAnswer.m_cAnswerList.Size();
//str += C_String(" ") + cAnswer.m_cAnswerList.Size();
C_ListIterator<C_Answer> cIterator2 = cAnswer.m_cAnswerList.CreateIterator();
while (cIterator2.HasNext())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment