From 2773aecdea641ca8a0b362085eba3dc5273e0fa6 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 7 Aug 2015 14:50:09 +0200 Subject: Create enum class subchannel_type_t --- src/MuxElements.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'src/MuxElements.h') diff --git a/src/MuxElements.h b/src/MuxElements.h index ebcf708..d714c76 100644 --- a/src/MuxElements.h +++ b/src/MuxElements.h @@ -39,6 +39,14 @@ #include "RemoteControl.h" #include "Eti.h" +enum class subchannel_type_t { + Audio = 0, + DataDmb = 1, + Fidc = 2, + Packet = 3 +}; + + struct dabOutput { dabOutput(const char* proto, const char* name) : outputProto(proto), outputName(name), output(NULL) { } @@ -172,13 +180,6 @@ struct dabProtection { }; }; -enum dab_subchannel_type_t { - Audio = 0, - DataDmb = 1, - Fidc = 2, - Packet = 3 -}; - class dabSubchannel { public: @@ -192,7 +193,7 @@ public: std::string inputUri; DabInputBase* input; unsigned char id; - dab_subchannel_type_t type; + subchannel_type_t type; uint16_t startAddress; uint16_t bitrate; dabProtection protection; @@ -297,7 +298,7 @@ class DabService : public RemoteControllable unsigned char language; bool program; - unsigned char getType(boost::shared_ptr ensemble); + subchannel_type_t getType(boost::shared_ptr ensemble); unsigned char nbComponent(std::vector& components); DabLabel label; -- cgit v1.2.3