From 9699db9747a36737a5769add77f34d49f7f96b63 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Thu, 29 Mar 2012 19:26:55 +0400 Subject: [PATCH] zapit/src/channel.cpp: add channel flag field Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/c793b78ca0025bbdc0caa390ef58c8504ad87763 Author: [CST] Focus Date: 2012-03-29 (Thu, 29 Mar 2012) --- src/zapit/include/zapit/channel.h | 6 ++++++ src/zapit/src/channel.cpp | 1 + 2 files changed, 7 insertions(+) diff --git a/src/zapit/include/zapit/channel.h b/src/zapit/include/zapit/channel.h index 12df7660a..8842edee6 100644 --- a/src/zapit/include/zapit/channel.h +++ b/src/zapit/include/zapit/channel.h @@ -165,6 +165,11 @@ class CZapitChannel friend class CChannelList; public: + typedef enum channel_flags { + NEW = 0x01, + REMOVED = 0x02, + UPDATED = 0x03 + } channel_flags_t; casys_map_t camap; bool bAlwaysLocked; @@ -177,6 +182,7 @@ class CZapitChannel char * pname; bool has_bouquet; uint8_t polarization; + int flags; /* constructor, desctructor */ CZapitChannel(const std::string & p_name, t_service_id p_sid, t_transport_stream_id p_tsid, t_original_network_id p_onid, unsigned char p_service_type, t_satellite_position p_satellite_position, freq_id_t freq); diff --git a/src/zapit/src/channel.cpp b/src/zapit/src/channel.cpp index 8e9bb4348..7499e2b86 100644 --- a/src/zapit/src/channel.cpp +++ b/src/zapit/src/channel.cpp @@ -66,6 +66,7 @@ void CZapitChannel::Init() has_bouquet = false; record_demux = 2; polarization = 0; + flags = 0; } CZapitChannel::~CZapitChannel(void)