show event logos only in infoviewer

Origin commit data
------------------
Branch: ni/coolstream
Commit: 9433cf88e5
Author: TangoCash <eric@loxat.de>
Date: 2018-12-25 (Tue, 25 Dec 2018)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
TangoCash
2018-12-25 01:12:16 +01:00
committed by vanhofen
parent 258c404cff
commit aeef8cc297
5 changed files with 15 additions and 7 deletions

View File

@@ -200,7 +200,10 @@ class CComponentsChannelLogo : public CComponentsPicture
uint64_t channel_id;
///channel name
std::string channel_name;
///mode of event logo
bool enable_event_logo;
///alternate image file, if no channel logo is available
std::string alt_pic_name;
@@ -250,7 +253,11 @@ class CComponentsChannelLogo : public CComponentsPicture
void setAltLogo(const std::string& picture_name);
///set an alternate logo if no logo is available, NOTE: value of has_logo will set to true
void setAltLogo(const char* picture_name);
///enable/disable eventlogo
void enableEventLogo(bool enable = true){enable_event_logo = enable;}
void disableEventLogo(){enableEventLogo(false);}
///returns true, if any logo is available, also if an alternate logo was setted
bool hasLogo(){return has_logo;};