kradio4  r778
rds_type_0a_decoder.h
Go to the documentation of this file.
1 /***************************************************************************
2  rds_decoder_0a.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_0A_H
19 #define KRADIO_V4LRADIO_RDS_DECODER_0A_H
20 
21 #ifdef HAVE_CONFIG_H
22 #include <config.h>
23 #endif
24 
25 #include <kdemacros.h>
26 
27 #include "rds_type_decoder.h"
28 
29 #include <QtCore/QString>
30 
31 #define RDS_0A_POS_BLOCK RDS_BLK_B
32 #define RDS_0A_POS_SHIFT 0
33 #define RDS_0A_POS_MASK 0x0003
34 
35 #define RDS_STATIONNAME_MAX_LEN 8
36 
38 
39 class KDE_EXPORT RDS_Type0A_Decoder : public RDSTypeDecoder
40 {
41 public:
43 
44  virtual void addGroup(const RDSGroup &g);
45  virtual bool isComplete() const;
46 
47  const QString &getStationName() const;
48 
49 protected:
50  void addChar(unsigned char c);
51  void clear();
52 
53  char m_stationName[RDS_STATIONNAME_MAX_LEN+1];
55 
57 
59 };
60 
61 
62 
63 
64 #endif
65 
virtual void addGroup(const RDSGroup &g)=0
unsigned int m_next_expected_position
#define RDS_STATIONNAME_MAX_LEN
virtual bool isComplete() const =0
RDS_0A_State