kradio4  r778
rds_decoder.h
Go to the documentation of this file.
1 /***************************************************************************
2  rds_decoder.h - description
3  -------------------
4  begin : Feb 2009
5  copyright : (C) 2009 Ernst Martin Witte
6  email : emw-kradio@nocabal.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef KRADIO_V4LRADIO_RDS_DECODER_H
19 #define KRADIO_V4LRADIO_RDS_DECODER_H
20 
21 #ifdef HAVE_CONFIG_H
22 #include <config.h>
23 #endif
24 
25 #include <kdemacros.h>
26 
27 #include "rds_group.h"
28 #include "rds_type_0a_decoder.h"
29 #include "rds_type_2ab_decoder.h"
30 
31 class KDE_EXPORT RDSDecoder
32 {
33 public:
34  RDSDecoder(RDSGroup *rds_group_decoder);
35  ~RDSDecoder();
36 
37  void addRawData(unsigned char *rawdata, int n);
38 
39  const RDS_Type0A_Decoder *getStationNameDecoder() const;
40  const RDS_Type2AB_Decoder *getRadioTextADecoder () const;
41  const RDS_Type2AB_Decoder *getRadioTextBDecoder () const;
42 
43  double statsBlockErrorRate() const;
44  double statsGroupErrorRate() const;
45 
46 protected:
47 
49  RDSTypeDecoder *m_type_decoders[GROUP_TYPE_COUNT];
50 };
51 
52 #endif
53 
RDSGroup * m_group_decoder
Definition: rds_decoder.h:48