Statistics
| Branch: | Tag: | Revision:

dvbd / src / faketuner.cpp @ 59be6a47

History | View | Annotate | Download (1.37 KB)

1
/*
2
  Copyright 2003 John Knottenbelt
3
  
4
  This program is free software; you can redistribute it and/or modify
5
  it under the terms of the GNU General Public License as published by
6
  the Free Software Foundation; either version 2 of the License, or
7
  (at your option) any later version.
8
 
9
  This program is distributed in the hope that it will be useful,
10
  but WITHOUT ANY WARRANTY; without even the implied warranty of
11
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
  GNU General Public License for more details.
13
 
14
  You should have received a copy of the GNU General Public License
15
  along with this program; if not, write to the Free Software
16
  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
17
*/
18

    
19
#include "faketuner.h"
20
#include "fakedemuxer.h"
21

    
22
FakeTuner::FakeTuner( const Tuner &realTuner )
23
  : Tuner( "/dev/dummy/frontend" )
24
{
25
  // No attempt is made to track the current
26
  // state of the tuner. This would be the place
27
  // to do it, though.
28

    
29
  setTuneParams(realTuner.getTuneParams());
30
}
31

    
32
Demuxer *FakeTuner::makeNewDemuxer(int pid, Demuxer::PESType pesType) const
33
{
34
  return new FakeDemuxer(const_cast<FakeTuner *>(this), pid, pesType);
35
}
36

    
37
bool FakeTuner::openFrontend()
38
{
39
  return true;
40
}
41

    
42
void FakeTuner::closeFrontend()
43
{
44
}
45

    
46
bool FakeTuner::openDvr()
47
{
48
  return true;
49
}
50

    
51
void FakeTuner::closeDvr()
52
{
53
}
54

    
55
bool FakeTuner::tune()
56
{
57
  return true;
58
}