kradio4
r778
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
src
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
37
enum
RDS_0A_State
{
RDS_0A_WAIT4GRP
,
RDS_0A_COMPLETE
};
38
39
class
KDE_EXPORT
RDS_Type0A_Decoder
:
public
RDSTypeDecoder
40
{
41
public
:
42
RDS_Type0A_Decoder
();
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];
54
QString
m_stationNameComplete
;
55
56
unsigned
int
m_next_expected_position
;
57
58
RDS_0A_State
m_state
;
59
};
60
61
62
63
64
#endif
65
RDSGroup
Definition:
rds_group.h:78
RDSTypeDecoder::addGroup
virtual void addGroup(const RDSGroup &g)=0
RDS_Type0A_Decoder::m_stationNameComplete
QString m_stationNameComplete
Definition:
rds_type_0a_decoder.h:54
RDS_Type0A_Decoder::m_next_expected_position
unsigned int m_next_expected_position
Definition:
rds_type_0a_decoder.h:56
RDSTypeDecoder
Definition:
rds_type_decoder.h:29
RDS_Type0A_Decoder
Definition:
rds_type_0a_decoder.h:39
RDS_0A_WAIT4GRP
Definition:
rds_type_0a_decoder.h:37
RDSTypeDecoder::isComplete
virtual bool isComplete() const =0
RDS_STATIONNAME_MAX_LEN
#define RDS_STATIONNAME_MAX_LEN
Definition:
rds_type_0a_decoder.h:35
RDS_0A_COMPLETE
Definition:
rds_type_0a_decoder.h:37
RDS_0A_State
RDS_0A_State
Definition:
rds_type_0a_decoder.h:37
rds_type_decoder.h
RDS_Type0A_Decoder::m_state
RDS_0A_State m_state
Definition:
rds_type_0a_decoder.h:58
Generated by
1.8.8