2
/***************************************************************************
5
begin : Fri Oct 31 2003
6
copyright : (C) 2003 by Dirk Ziegelmeier
8
***************************************************************************/
11
* This library is free software; you can redistribute it and/or
12
* modify it under the terms of the GNU Library General Public
13
* License as published by the Free Software Foundation; either
14
* version 2 of the License, or (at your option) any later version.
16
* This library is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19
* Library General Public License for more details.
21
* You should have received a copy of the GNU Library General Public License
22
* along with this library; see the file COPYING.LIB. If not, write to
23
* the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
24
* Boston, MA 02110-1301, USA.
35
// ---------------------------------------------- Manager
38
* Provides access to the current VBI decoder
40
class VbiManager : public QObject
45
/// Scans for VBI plugins
51
/// Returns whether decoder is _running_ (!= receiving data)
52
virtual bool decoding() const;
54
/// Returns whether decoder receives data
55
virtual bool tuned() const;
57
/// Returns pointer to internal decoder data. Platform specific!!!
58
void* internalData() const;
60
/// Call this before you are going to use the decoder
63
/// Call if you stop using the decoder
66
/// Suspends the sending of VBI data
69
/// Resumes the sending of VBI data
73
/// New network identification received
74
void networkId(const QString& name, int& id, const QString& call);
76
/// Closed caption data received
77
void caption(int pgno);
79
/// Teletext page received
80
void ttxPage(int pgno, int subno, int pno, bool roll, bool header, bool clock);
82
/// Aspect ratio changed
83
void aspect(int fline, int lline, double ratio, bool mode, int subtitles);
85
/// Program title info received
86
void progTitle(const QString& title);
88
/// Program rating information changed
89
void ratingChanged(const QString& rating);
91
/// Decoder state changed. If true, reinit your client. If false, don't touch internal data pointer!
97
VbiManager(PluginFactory* pf);
101
void customEvent(QCustomEvent* e);
104
KdetvVbiPlugin* _plugin;
109
// ---------------------------------------------- Events the manager understands
112
EventIdStationName = QEvent::User,
121
class EventStationName : public QCustomEvent
124
EventStationName(const QString& name, int id, const QString& call);
125
virtual ~EventStationName();
132
class EventCaption : public QCustomEvent
135
EventCaption(int pgno);
136
virtual ~EventCaption();
141
class EventTtx : public QCustomEvent
144
EventTtx(int pgno, int subno, int pno,
145
bool roll, bool header, bool clock);
156
class EventAspect : public QCustomEvent
159
EventAspect(int fline, int lline, double ratio, bool mode, int subtitles);
160
virtual ~EventAspect();
169
class EventProgTitle : public QCustomEvent
172
EventProgTitle(const QString& title);
173
virtual ~EventProgTitle();
178
class EventRating : public QCustomEvent
181
EventRating(const QString& rating);
182
virtual ~EventRating();
187
class EventRunning : public QCustomEvent
190
EventRunning(bool running);
191
virtual ~EventRunning();