mirror of
				https://github.com/rofafor/vdr-plugin-iptv.git
				synced 2023-10-10 11:37:03 +00:00 
			
		
		
		
	Added initial support for cDevice::MaySwitchTransponder().
This commit is contained in:
		
							
								
								
									
										5
									
								
								device.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								device.c
									
									
									
									
									
								
							@@ -254,6 +254,11 @@ bool cIptvDevice::IsTunedToTransponder(const cChannel *channelP) const
 | 
				
			|||||||
  return channelP ? (channelP->GetChannelID() == channelM.GetChannelID()) : false;
 | 
					  return channelP ? (channelP->GetChannelID() == channelM.GetChannelID()) : false;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					bool cIptvDevice::MaySwitchTransponder(const cChannel *channelP) const
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  return cDevice::MaySwitchTransponder(channelP);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bool cIptvDevice::SetChannelDevice(const cChannel *channelP, bool liveViewP)
 | 
					bool cIptvDevice::SetChannelDevice(const cChannel *channelP, bool liveViewP)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  cIptvProtocolIf *protocol;
 | 
					  cIptvProtocolIf *protocol;
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								device.h
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								device.h
									
									
									
									
									
								
							@@ -90,6 +90,8 @@ public:
 | 
				
			|||||||
  virtual int NumProvidedSystems(void) const;
 | 
					  virtual int NumProvidedSystems(void) const;
 | 
				
			||||||
  virtual const cChannel *GetCurrentlyTunedTransponder(void) const;
 | 
					  virtual const cChannel *GetCurrentlyTunedTransponder(void) const;
 | 
				
			||||||
  virtual bool IsTunedToTransponder(const cChannel *channelP) const;
 | 
					  virtual bool IsTunedToTransponder(const cChannel *channelP) const;
 | 
				
			||||||
 | 
					  virtual bool MaySwitchTransponder(const cChannel *channelP) const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
protected:
 | 
					protected:
 | 
				
			||||||
  virtual bool SetChannelDevice(const cChannel *channelP, bool liveViewP);
 | 
					  virtual bool SetChannelDevice(const cChannel *channelP, bool liveViewP);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user