File: VideoDeviceTuner.h

package info (click to toggle)
camstream 0.27%2Bdfsg-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 12,320 kB
  • ctags: 5,393
  • sloc: cpp: 17,031; sh: 8,154; asm: 455; ansic: 440; makefile: 343
file content (51 lines) | stat: -rw-r--r-- 822 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef VIDEODEVICETUNER_HPP
#define VIDEODEVICETUNER_HPP

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <qobject.h>

#include "TVChannel.h"

class CVideoDeviceLinux;

class CVideoDeviceTuner: public QObject
{
   Q_OBJECT
public:

private:
   CVideoDeviceLinux *pVideo;
   int Tuner;

   QString Name;
   int Flags;
   float FreqLow, FreqHigh;
   float FreqStep;
   ulong ufreq;

public:
   CVideoDeviceTuner(CVideoDeviceLinux *_video, int _tuner);

   const QString GetName();

   float GetLowestFrequency() const;
   float GetHighestFrequency() const;
   float GetFrequency() const;

   bool HasNorm() const;
   TVChannel::TunerNorms GetNorm() const;

   bool Select();

public slots:
   bool SetFrequency(float freq);
   void SetNorm(TVChannel::TunerNorms norm);

signals:
   void Selected(int);
};

#endif