~ubuntu-branches/ubuntu/karmic/kaffeine/karmic

« back to all changes in this revision

Viewing changes to kaffeine/src/input/dvb/dvbsection.h

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2008-01-22 13:50:29 UTC
  • mfrom: (1.3.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080122135029-zc52zvfzp99m6brl
Tags: 0.8.6-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef DVBSECTION_H
22
22
#define DVBSECTION_H
23
23
 
24
 
#include <linux/dvb/dmx.h>
25
 
 
26
 
#include <qptrlist.h>
27
 
#include <qobject.h>
28
 
#include <qthread.h>
29
 
#include <qdatetime.h>
30
 
 
31
 
 
32
 
 
33
 
class DVBsection : public QObject, public QThread
34
 
{
35
 
        Q_OBJECT
36
 
 
37
 
public:
38
 
 
39
 
        DVBsection( bool *ok, int anum, int tnum, const QString &charset="ISO8859-1" );
40
 
        DVBsection( bool *ok, int anum, int tnum, bool openDemux, const QString &charset="ISO8859-1" );
41
 
        ~DVBsection();
42
 
        static unsigned int getBits( unsigned char *b, int offbits, int nbits );
43
 
 
44
 
protected:
45
 
 
46
 
        virtual void run() {}
47
 
        QString langDesc( unsigned char* buf );
48
 
        void stopFilter();
49
 
        void closeFilter();
50
 
        bool setFilter( int pid, int tid, int timeout=5000, bool checkcrc=true );
51
 
        bool openFilter( int pid, int tid, int timeout=5000, bool checkcrc=true );
52
 
        QString getText( unsigned char *buf, int length );
53
 
        QTime getTime( unsigned char *buf );
54
 
        QDate getDate( unsigned char *buf );
55
 
        QDateTime getDateTime( unsigned char *buf );
56
 
 
57
 
        int fdDemux;
58
 
        int indexChannels;
59
 
        bool isRunning;
60
 
        QString demuxer;
61
 
        int adapter;
62
 
        int tuner;
63
 
        QCString defaultCharset;
64
 
};
 
24
#include "kaffeinedvbsection.h"
65
25
 
66
26
#endif /* DVBSECTION_H */