mirror of
				https://github.com/rofafor/vdr-plugin-iptv.git
				synced 2023-10-10 11:37:03 +00:00 
			
		
		
		
	Compare commits
	
		
			2 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					dab869cf3a | ||
| 
						 | 
					aaca7cba1a | 
							
								
								
									
										12
									
								
								HISTORY
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								HISTORY
									
									
									
									
									
								
							@@ -226,6 +226,10 @@ VDR Plugin 'iptv' Revision History
 | 
			
		||||
- Made devices to shutdown already in cPluginManager::Stop()
 | 
			
		||||
  to prevent possible crashes while VDR shutdown.
 | 
			
		||||
 | 
			
		||||
2014-03-09: Version 2.0.3
 | 
			
		||||
 | 
			
		||||
- Fixed installation target bugs (Thanks to Alexander Grothe).
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
==================================
 | 
			
		||||
VDR Plugin 'iptv' Revision History
 | 
			
		||||
@@ -235,3 +239,11 @@ VDR Plugin 'iptv' Revision History
 | 
			
		||||
 | 
			
		||||
- Added initial CAM support.
 | 
			
		||||
- Added missing RTSP/UDP support.
 | 
			
		||||
 | 
			
		||||
2014-03-09: Version 2.1.1
 | 
			
		||||
 | 
			
		||||
- Fixed installation target bugs (Thanks to Alexander Grothe).
 | 
			
		||||
 | 
			
		||||
2014-03-16: Version 2.1.2
 | 
			
		||||
 | 
			
		||||
- Updated for vdr-2.1.6.
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								Makefile
									
									
									
									
									
								
							@@ -32,6 +32,7 @@ PKGCFG = $(if $(VDRDIR),$(shell pkg-config --variable=$(1) $(VDRDIR)/vdr.pc),$(s
 | 
			
		||||
LIBDIR = $(call PKGCFG,libdir)
 | 
			
		||||
LOCDIR = $(call PKGCFG,locdir)
 | 
			
		||||
PLGCFG = $(call PKGCFG,plgcfg)
 | 
			
		||||
RESDIR = $(call PKGCFG,resdir)
 | 
			
		||||
CFGDIR = $(call PKGCFG,configdir)
 | 
			
		||||
#
 | 
			
		||||
TMPDIR ?= /tmp
 | 
			
		||||
@@ -147,7 +148,8 @@ install-lib: $(SOFILE)
 | 
			
		||||
 | 
			
		||||
install-conf:
 | 
			
		||||
	@mkdir -p $(DESTDIR)$(CFGDIR)/plugins/$(PLUGIN)
 | 
			
		||||
	@cp -pn $(PLUGIN)/* $(DESTDIR)$(CFGDIR)/plugins/$(PLUGIN)/
 | 
			
		||||
	@mkdir -p $(DESTDIR)$(RESDIR)/plugins/$(PLUGIN)
 | 
			
		||||
	@cp -pn $(PLUGIN)/* $(DESTDIR)$(RESDIR)/plugins/$(PLUGIN)/
 | 
			
		||||
 | 
			
		||||
install: install-lib install-i18n install-conf
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										7
									
								
								config.c
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								config.c
									
									
									
									
									
								
							@@ -19,6 +19,7 @@ cIptvConfig::cIptvConfig(void)
 | 
			
		||||
  for (unsigned int i = 0; i < ARRAY_SIZE(disabledFiltersM); ++i)
 | 
			
		||||
      disabledFiltersM[i] = -1;
 | 
			
		||||
  memset(configDirectoryM, 0, sizeof(configDirectoryM));
 | 
			
		||||
  memset(resourceDirectoryM, 0, sizeof(resourceDirectoryM));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
unsigned int cIptvConfig::GetDisabledFiltersCount(void) const
 | 
			
		||||
@@ -45,3 +46,9 @@ void cIptvConfig::SetConfigDirectory(const char *directoryP)
 | 
			
		||||
  debug("cIptvConfig::%s(%s)", __FUNCTION__, directoryP);
 | 
			
		||||
  ERROR_IF(!realpath(directoryP, configDirectoryM), "Cannot canonicalize configuration directory");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void cIptvConfig::SetResourceDirectory(const char *directoryP)
 | 
			
		||||
{
 | 
			
		||||
  debug("cIptvConfig::%s(%s)", __FUNCTION__, directoryP);
 | 
			
		||||
  ERROR_IF(!realpath(directoryP, resourceDirectoryM), "Cannot canonicalize resource directory");
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										3
									
								
								config.h
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								config.h
									
									
									
									
									
								
							@@ -21,6 +21,7 @@ private:
 | 
			
		||||
  unsigned int sectionFilteringM;
 | 
			
		||||
  int disabledFiltersM[SECTION_FILTER_TABLE_SIZE];
 | 
			
		||||
  char configDirectoryM[PATH_MAX];
 | 
			
		||||
  char resourceDirectoryM[PATH_MAX];
 | 
			
		||||
 | 
			
		||||
public:
 | 
			
		||||
  cIptvConfig();
 | 
			
		||||
@@ -30,6 +31,7 @@ public:
 | 
			
		||||
  unsigned int GetUseBytes(void) const { return useBytesM; }
 | 
			
		||||
  unsigned int GetSectionFiltering(void) const { return sectionFilteringM; }
 | 
			
		||||
  const char *GetConfigDirectory(void) const { return configDirectoryM; }
 | 
			
		||||
  const char *GetResourceDirectory(void) const { return resourceDirectoryM; }
 | 
			
		||||
  unsigned int GetDisabledFiltersCount(void) const;
 | 
			
		||||
  int GetDisabledFilters(unsigned int indexP) const;
 | 
			
		||||
  void SetTsBufferSize(unsigned int sizeP) { tsBufferSizeM = sizeP; }
 | 
			
		||||
@@ -39,6 +41,7 @@ public:
 | 
			
		||||
  void SetSectionFiltering(unsigned int onOffP) { sectionFilteringM = onOffP; }
 | 
			
		||||
  void SetDisabledFilters(unsigned int indexP, int numberP);
 | 
			
		||||
  void SetConfigDirectory(const char *directoryP);
 | 
			
		||||
  void SetResourceDirectory(const char *directoryP);
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
extern cIptvConfig IptvConfig;
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										9
									
								
								iptv.c
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								iptv.c
									
									
									
									
									
								
							@@ -13,15 +13,15 @@
 | 
			
		||||
#include "device.h"
 | 
			
		||||
#include "iptvservice.h"
 | 
			
		||||
 | 
			
		||||
#if defined(APIVERSNUM) && APIVERSNUM < 20104
 | 
			
		||||
#error "VDR-2.1.4 API version or greater is required!"
 | 
			
		||||
#if defined(APIVERSNUM) && APIVERSNUM < 20106
 | 
			
		||||
#error "VDR-2.1.6 API version or greater is required!"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifndef GITVERSION
 | 
			
		||||
#define GITVERSION ""
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
       const char VERSION[]     = "2.1.0" GITVERSION;
 | 
			
		||||
       const char VERSION[]     = "2.1.2" GITVERSION;
 | 
			
		||||
static const char DESCRIPTION[] = trNOOP("Experience the IPTV");
 | 
			
		||||
 | 
			
		||||
class cPluginIptv : public cPlugin {
 | 
			
		||||
@@ -99,7 +99,8 @@ bool cPluginIptv::Initialize(void)
 | 
			
		||||
{
 | 
			
		||||
  debug("cPluginIptv::%s()", __FUNCTION__);
 | 
			
		||||
  // Initialize any background activities the plugin shall perform.
 | 
			
		||||
  IptvConfig.SetConfigDirectory(cPlugin::ResourceDirectory(PLUGIN_NAME_I18N));
 | 
			
		||||
  IptvConfig.SetConfigDirectory(cPlugin::ConfigDirectory(PLUGIN_NAME_I18N));
 | 
			
		||||
  IptvConfig.SetResourceDirectory(cPlugin::ResourceDirectory(PLUGIN_NAME_I18N));
 | 
			
		||||
  return cIptvDevice::Initialize(deviceCountM);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										12
									
								
								po/de_DE.po
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								po/de_DE.po
									
									
									
									
									
								
							@@ -5,10 +5,10 @@
 | 
			
		||||
#
 | 
			
		||||
msgid ""
 | 
			
		||||
msgstr ""
 | 
			
		||||
"Project-Id-Version: vdr-iptv 2.1.0\n"
 | 
			
		||||
"Project-Id-Version: vdr-iptv 2.1.2\n"
 | 
			
		||||
"Report-Msgid-Bugs-To: <see README>\n"
 | 
			
		||||
"POT-Creation-Date: 2014-01-08 01:18+0200\n"
 | 
			
		||||
"PO-Revision-Date: 2014-01-08 01:18+0200\n"
 | 
			
		||||
"POT-Creation-Date: 2014-03-16 03:16+0200\n"
 | 
			
		||||
"PO-Revision-Date: 2014-03-16 03:16+0200\n"
 | 
			
		||||
"Last-Translator: Tobias Grimm <tg@e-tobi.net>\n"
 | 
			
		||||
"Language-Team: German <vdr@linuxtv.org>\n"
 | 
			
		||||
"Language: de\n"
 | 
			
		||||
@@ -130,12 +130,6 @@ msgstr "DATEI"
 | 
			
		||||
msgid "EXT"
 | 
			
		||||
msgstr "EXT"
 | 
			
		||||
 | 
			
		||||
msgid "Nid"
 | 
			
		||||
msgstr "Nid"
 | 
			
		||||
 | 
			
		||||
msgid "Tid"
 | 
			
		||||
msgstr "Tid"
 | 
			
		||||
 | 
			
		||||
msgid "Rid"
 | 
			
		||||
msgstr "Rid"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										12
									
								
								po/fi_FI.po
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								po/fi_FI.po
									
									
									
									
									
								
							@@ -5,10 +5,10 @@
 | 
			
		||||
#
 | 
			
		||||
msgid ""
 | 
			
		||||
msgstr ""
 | 
			
		||||
"Project-Id-Version: vdr-iptv 2.1.0\n"
 | 
			
		||||
"Project-Id-Version: vdr-iptv 2.1.2\n"
 | 
			
		||||
"Report-Msgid-Bugs-To: <see README>\n"
 | 
			
		||||
"POT-Creation-Date: 2014-01-08 01:18+0200\n"
 | 
			
		||||
"PO-Revision-Date: 2014-01-08 01:18+0200\n"
 | 
			
		||||
"POT-Creation-Date: 2014-03-16 03:16+0200\n"
 | 
			
		||||
"PO-Revision-Date: 2014-03-16 03:16+0200\n"
 | 
			
		||||
"Last-Translator: Rolf Ahrenberg\n"
 | 
			
		||||
"Language-Team: Finnish <vdr@linuxtv.org>\n"
 | 
			
		||||
"Language: fi\n"
 | 
			
		||||
@@ -145,12 +145,6 @@ msgstr "FILE"
 | 
			
		||||
msgid "EXT"
 | 
			
		||||
msgstr "EXT"
 | 
			
		||||
 | 
			
		||||
msgid "Nid"
 | 
			
		||||
msgstr "Verkko-ID"
 | 
			
		||||
 | 
			
		||||
msgid "Tid"
 | 
			
		||||
msgstr "Lähete-ID"
 | 
			
		||||
 | 
			
		||||
msgid "Rid"
 | 
			
		||||
msgstr "Radio-ID"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										12
									
								
								po/fr_FR.po
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								po/fr_FR.po
									
									
									
									
									
								
							@@ -6,10 +6,10 @@
 | 
			
		||||
#
 | 
			
		||||
msgid ""
 | 
			
		||||
msgstr ""
 | 
			
		||||
"Project-Id-Version: vdr-iptv 2.1.0\n"
 | 
			
		||||
"Project-Id-Version: vdr-iptv 2.1.2\n"
 | 
			
		||||
"Report-Msgid-Bugs-To: <see README>\n"
 | 
			
		||||
"POT-Creation-Date: 2014-01-08 01:18+0200\n"
 | 
			
		||||
"PO-Revision-Date: 2014-01-08 01:18+0200\n"
 | 
			
		||||
"POT-Creation-Date: 2014-03-16 03:16+0200\n"
 | 
			
		||||
"PO-Revision-Date: 2014-03-16 03:16+0200\n"
 | 
			
		||||
"Last-Translator: NIVAL Michaël <mnival@club-internet.fr>\n"
 | 
			
		||||
"Language-Team: French <vdr@linuxtv.org>\n"
 | 
			
		||||
"Language: fr\n"
 | 
			
		||||
@@ -147,12 +147,6 @@ msgstr "FICHIER"
 | 
			
		||||
msgid "EXT"
 | 
			
		||||
msgstr "EXT"
 | 
			
		||||
 | 
			
		||||
msgid "Nid"
 | 
			
		||||
msgstr "Nid"
 | 
			
		||||
 | 
			
		||||
msgid "Tid"
 | 
			
		||||
msgstr "Tid"
 | 
			
		||||
 | 
			
		||||
msgid "Rid"
 | 
			
		||||
msgstr "Rid"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										12
									
								
								po/it_IT.po
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								po/it_IT.po
									
									
									
									
									
								
							@@ -5,10 +5,10 @@
 | 
			
		||||
#
 | 
			
		||||
msgid ""
 | 
			
		||||
msgstr ""
 | 
			
		||||
"Project-Id-Version: vdr-iptv 2.1.0\n"
 | 
			
		||||
"Project-Id-Version: vdr-iptv 2.1.2\n"
 | 
			
		||||
"Report-Msgid-Bugs-To: <see README>\n"
 | 
			
		||||
"POT-Creation-Date: 2014-01-08 01:18+0200\n"
 | 
			
		||||
"PO-Revision-Date: 2014-01-08 01:18+0200\n"
 | 
			
		||||
"POT-Creation-Date: 2014-03-16 03:16+0200\n"
 | 
			
		||||
"PO-Revision-Date: 2014-03-16 03:16+0200\n"
 | 
			
		||||
"Last-Translator: Diego Pierotto <vdr-italian@tiscali.it>\n"
 | 
			
		||||
"Language-Team: Italian <vdr@linuxtv.org>\n"
 | 
			
		||||
"Language: it\n"
 | 
			
		||||
@@ -146,12 +146,6 @@ msgstr "FILE"
 | 
			
		||||
msgid "EXT"
 | 
			
		||||
msgstr "EXT"
 | 
			
		||||
 | 
			
		||||
msgid "Nid"
 | 
			
		||||
msgstr "Nid"
 | 
			
		||||
 | 
			
		||||
msgid "Tid"
 | 
			
		||||
msgstr "Tid"
 | 
			
		||||
 | 
			
		||||
msgid "Rid"
 | 
			
		||||
msgstr "Rid"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										12
									
								
								po/nl_NL.po
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								po/nl_NL.po
									
									
									
									
									
								
							@@ -5,10 +5,10 @@
 | 
			
		||||
#
 | 
			
		||||
msgid ""
 | 
			
		||||
msgstr ""
 | 
			
		||||
"Project-Id-Version: vdr-iptv 2.1.0\n"
 | 
			
		||||
"Project-Id-Version: vdr-iptv 2.1.2\n"
 | 
			
		||||
"Report-Msgid-Bugs-To: <see README>\n"
 | 
			
		||||
"POT-Creation-Date: 2014-01-08 01:18+0200\n"
 | 
			
		||||
"PO-Revision-Date: 2014-01-08 01:18+0200\n"
 | 
			
		||||
"POT-Creation-Date: 2014-03-16 03:16+0200\n"
 | 
			
		||||
"PO-Revision-Date: 2014-03-16 03:16+0200\n"
 | 
			
		||||
"Last-Translator: Carel\n"
 | 
			
		||||
"Language-Team: Dutch <vdr@linuxtv.org>\n"
 | 
			
		||||
"Language: nl\n"
 | 
			
		||||
@@ -145,12 +145,6 @@ msgstr "BESTAND"
 | 
			
		||||
msgid "EXT"
 | 
			
		||||
msgstr "EXT"
 | 
			
		||||
 | 
			
		||||
msgid "Nid"
 | 
			
		||||
msgstr "Nid"
 | 
			
		||||
 | 
			
		||||
msgid "Tid"
 | 
			
		||||
msgstr "Tid"
 | 
			
		||||
 | 
			
		||||
msgid "Rid"
 | 
			
		||||
msgstr "Rid"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										12
									
								
								po/ru_RU.po
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								po/ru_RU.po
									
									
									
									
									
								
							@@ -5,10 +5,10 @@
 | 
			
		||||
#
 | 
			
		||||
msgid ""
 | 
			
		||||
msgstr ""
 | 
			
		||||
"Project-Id-Version: vdr-iptv 2.1.0\n"
 | 
			
		||||
"Project-Id-Version: vdr-iptv 2.1.2\n"
 | 
			
		||||
"Report-Msgid-Bugs-To: <see README>\n"
 | 
			
		||||
"POT-Creation-Date: 2014-01-08 01:18+0200\n"
 | 
			
		||||
"PO-Revision-Date: 2014-01-08 01:18+0200\n"
 | 
			
		||||
"POT-Creation-Date: 2014-03-16 03:16+0200\n"
 | 
			
		||||
"PO-Revision-Date: 2014-03-16 03:16+0200\n"
 | 
			
		||||
"Last-Translator: Alexander Gross <Bikalexander@gmail.com>\n"
 | 
			
		||||
"Language-Team: Russian <vdr@linuxtv.org>\n"
 | 
			
		||||
"Language: ru\n"
 | 
			
		||||
@@ -131,12 +131,6 @@ msgstr "ФАЙЛ"
 | 
			
		||||
msgid "EXT"
 | 
			
		||||
msgstr "EXT"
 | 
			
		||||
 | 
			
		||||
msgid "Nid"
 | 
			
		||||
msgstr "Nid"
 | 
			
		||||
 | 
			
		||||
msgid "Tid"
 | 
			
		||||
msgstr "Tid"
 | 
			
		||||
 | 
			
		||||
msgid "Rid"
 | 
			
		||||
msgstr "Rid"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -158,7 +158,7 @@ bool cIptvProtocolExt::SetSource(const char* locationP, const int parameterP, co
 | 
			
		||||
  if (!isempty(locationP)) {
 | 
			
		||||
     struct stat stbuf;
 | 
			
		||||
     // Update script file and parameter
 | 
			
		||||
     scriptFileM = cString::sprintf("%s/%s", IptvConfig.GetConfigDirectory(), locationP);
 | 
			
		||||
     scriptFileM = cString::sprintf("%s/%s", IptvConfig.GetResourceDirectory(), locationP);
 | 
			
		||||
     if ((stat(*scriptFileM, &stbuf) != 0) || (strstr(*scriptFileM, "..") != 0)) {
 | 
			
		||||
        error("Non-existent or relative path script '%s'", *scriptFileM);
 | 
			
		||||
        return false;
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										20
									
								
								source.c
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								source.c
									
									
									
									
									
								
							@@ -136,8 +136,6 @@ const char *cIptvSourceParam::allowedProtocolCharsS = " abcdefghijklmnopqrstuvwx
 | 
			
		||||
cIptvSourceParam::cIptvSourceParam(char sourceP, const char *descriptionP)
 | 
			
		||||
  : cSourceParam(sourceP, descriptionP),
 | 
			
		||||
    paramM(0),
 | 
			
		||||
    nidM(0),
 | 
			
		||||
    tidM(0),
 | 
			
		||||
    ridM(0),
 | 
			
		||||
    dataM(),
 | 
			
		||||
    itpM()
 | 
			
		||||
@@ -155,8 +153,6 @@ void cIptvSourceParam::SetData(cChannel *channelP)
 | 
			
		||||
{
 | 
			
		||||
  debug("cIptvSourceParam::%s(%s)", __FUNCTION__, channelP->Parameters());
 | 
			
		||||
  dataM = *channelP;
 | 
			
		||||
  nidM = dataM.Nid();
 | 
			
		||||
  tidM = dataM.Tid();
 | 
			
		||||
  ridM = dataM.Rid();
 | 
			
		||||
  itpM.Parse(dataM.Parameters());
 | 
			
		||||
  paramM = 0;
 | 
			
		||||
@@ -166,21 +162,19 @@ void cIptvSourceParam::GetData(cChannel *channelP)
 | 
			
		||||
{
 | 
			
		||||
  debug("cIptvSourceParam::%s(%s)", __FUNCTION__, channelP->Parameters());
 | 
			
		||||
  channelP->SetTransponderData(channelP->Source(), channelP->Frequency(), dataM.Srate(), itpM.ToString(Source()), true);
 | 
			
		||||
  channelP->SetId(nidM, tidM, channelP->Sid(), ridM);
 | 
			
		||||
  channelP->SetId(channelP->Nid(), channelP->Tid(), channelP->Sid(), ridM);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cOsdItem *cIptvSourceParam::GetOsdItem(void)
 | 
			
		||||
{
 | 
			
		||||
  debug("cIptvSourceParam::%s()", __FUNCTION__);
 | 
			
		||||
  switch (paramM++) {
 | 
			
		||||
    case  0: return new cMenuEditIntItem( tr("Nid"),              &nidM, 0);
 | 
			
		||||
    case  1: return new cMenuEditIntItem( tr("Tid"),              &tidM, 0);
 | 
			
		||||
    case  2: return new cMenuEditIntItem( tr("Rid"),              &ridM, 0);
 | 
			
		||||
    case  3: return new cMenuEditBoolItem(tr("Scan section ids"), &itpM.sidScanM);
 | 
			
		||||
    case  4: return new cMenuEditBoolItem(tr("Scan pids"),        &itpM.pidScanM);
 | 
			
		||||
    case  5: return new cMenuEditStraItem(tr("Protocol"),         &itpM.protocolM,  ELEMENTS(protocolsM),  protocolsM);
 | 
			
		||||
    case  6: return new cMenuEditStrItem( tr("Address"),           itpM.addressM,   sizeof(itpM.addressM), allowedProtocolCharsS);
 | 
			
		||||
    case  7: return new cMenuEditIntItem( tr("Parameter"),        &itpM.parameterM, 0,                     0xFFFF);
 | 
			
		||||
    case  0: return new cMenuEditIntItem( tr("Rid"),              &ridM, 0);
 | 
			
		||||
    case  1: return new cMenuEditBoolItem(tr("Scan section ids"), &itpM.sidScanM);
 | 
			
		||||
    case  2: return new cMenuEditBoolItem(tr("Scan pids"),        &itpM.pidScanM);
 | 
			
		||||
    case  3: return new cMenuEditStraItem(tr("Protocol"),         &itpM.protocolM,  ELEMENTS(protocolsM),  protocolsM);
 | 
			
		||||
    case  4: return new cMenuEditStrItem( tr("Address"),           itpM.addressM,   sizeof(itpM.addressM), allowedProtocolCharsS);
 | 
			
		||||
    case  5: return new cMenuEditIntItem( tr("Parameter"),        &itpM.parameterM, 0,                     0xFFFF);
 | 
			
		||||
    default: return NULL;
 | 
			
		||||
    }
 | 
			
		||||
  return NULL;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user