rds_decoder.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef KRADIO_V4LRADIO_RDS_DECODER_H
00019 #define KRADIO_V4LRADIO_RDS_DECODER_H
00020
00021 #ifdef HAVE_CONFIG_H
00022 #include <config.h>
00023 #endif
00024
00025 #include <kdemacros.h>
00026
00027 #include "rds_group.h"
00028 #include "rds_type_0a_decoder.h"
00029 #include "rds_type_2ab_decoder.h"
00030
00031 class KDE_EXPORT RDSDecoder
00032 {
00033 public:
00034 RDSDecoder(RDSGroup *rds_group_decoder);
00035 ~RDSDecoder();
00036
00037 void addRawData(unsigned char *rawdata, int n);
00038
00039 const RDS_Type0A_Decoder *getStationNameDecoder() const;
00040 const RDS_Type2AB_Decoder *getRadioTextADecoder () const;
00041 const RDS_Type2AB_Decoder *getRadioTextBDecoder () const;
00042
00043 double statsBlockErrorRate() const;
00044 double statsGroupErrorRate() const;
00045
00046 protected:
00047
00048 RDSGroup *m_group_decoder;
00049 RDSTypeDecoder *m_type_decoders[GROUP_TYPE_COUNT];
00050 };
00051
00052 #endif
00053