1
0
mirror of https://github.com/rofafor/vdr-plugin-iptv.git synced 2023-10-10 13:37:03 +02:00

Modified cMenuEditStrItem for vdr-1.5.11.

This commit is contained in:
Rolf Ahrenberg 2007-11-04 15:23:16 +00:00
parent bde204f3b3
commit 19b49e00e5

18
setup.c
View File

@ -3,7 +3,7 @@
* *
* See the README file for copyright information and how to reach the author. * See the README file for copyright information and how to reach the author.
* *
* $Id: setup.c,v 1.43 2007/10/27 12:07:40 rahrenbe Exp $ * $Id: setup.c,v 1.44 2007/11/04 15:23:16 rahrenbe Exp $
*/ */
#include <string.h> #include <string.h>
@ -191,22 +191,38 @@ void cIptvMenuEditChannel::Setup(void)
eProtocolCount, protocols)); eProtocolCount, protocols));
switch (data.protocol) { switch (data.protocol) {
case eProtocolFILE: case eProtocolFILE:
#if defined(APIVERSNUM) && APIVERSNUM < 10511
Add(new cMenuEditStrItem(trVDR("File"), data.location, sizeof(data.location), trVDR(FileNameChars))); Add(new cMenuEditStrItem(trVDR("File"), data.location, sizeof(data.location), trVDR(FileNameChars)));
#else
Add(new cMenuEditStrItem(trVDR("File"), data.location, sizeof(data.location)));
#endif
Add(new cMenuEditIntItem(tr("Delay (ms)"), &data.parameter, 0, 0xFFFF)); Add(new cMenuEditIntItem(tr("Delay (ms)"), &data.parameter, 0, 0xFFFF));
break; break;
case eProtocolEXT: case eProtocolEXT:
#if defined(APIVERSNUM) && APIVERSNUM < 10511
Add(new cMenuEditStrItem(tr("Script"), data.location, sizeof(data.location), trVDR(FileNameChars))); Add(new cMenuEditStrItem(tr("Script"), data.location, sizeof(data.location), trVDR(FileNameChars)));
#else
Add(new cMenuEditStrItem(tr("Script"), data.location, sizeof(data.location)));
#endif
Add(new cMenuEditIntItem(tr("Parameter"), &data.parameter, 0, 0xFFFF)); Add(new cMenuEditIntItem(tr("Parameter"), &data.parameter, 0, 0xFFFF));
break; break;
case eProtocolHTTP: case eProtocolHTTP:
case eProtocolUDP: case eProtocolUDP:
default: default:
#if defined(APIVERSNUM) && APIVERSNUM < 10511
Add(new cMenuEditStrItem(tr("Address"), data.location, sizeof(data.location), trVDR(FileNameChars))); Add(new cMenuEditStrItem(tr("Address"), data.location, sizeof(data.location), trVDR(FileNameChars)));
#else
Add(new cMenuEditStrItem(tr("Address"), data.location, sizeof(data.location)));
#endif
Add(new cMenuEditIntItem(tr("Port"), &data.parameter, 0, 0xFFFF)); Add(new cMenuEditIntItem(tr("Port"), &data.parameter, 0, 0xFFFF));
break; break;
} }
// Normal settings // Normal settings
#if defined(APIVERSNUM) && APIVERSNUM < 10511
Add(new cMenuEditStrItem(trVDR("Name"), data.name, sizeof(data.name), trVDR(FileNameChars))); Add(new cMenuEditStrItem(trVDR("Name"), data.name, sizeof(data.name), trVDR(FileNameChars)));
#else
Add(new cMenuEditStrItem(trVDR("Name"), data.name, sizeof(data.name)));
#endif
Add(new cMenuEditIntItem(trVDR("Frequency"), &data.frequency)); Add(new cMenuEditIntItem(trVDR("Frequency"), &data.frequency));
Add(new cMenuEditIntItem(trVDR("Vpid"), &data.vpid, 0, 0x1FFF)); Add(new cMenuEditIntItem(trVDR("Vpid"), &data.vpid, 0, 0x1FFF));
Add(new cMenuEditIntItem(trVDR("Ppid"), &data.ppid, 0, 0x1FFF)); Add(new cMenuEditIntItem(trVDR("Ppid"), &data.ppid, 0, 0x1FFF));