timerlist: use CListHelpers

remove duplicated code and use CListHelpers::UpDownKey().
Some variable types had to be changed to avoid typecasts, as
a result (int) casts to foo.size() had to be added :-)


Origin commit data
------------------
Commit: 8f95f259c1
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-16 (Sat, 16 Jan 2016)
This commit is contained in:
Stefan Seyfried
2016-01-16 18:18:50 +01:00
parent 040843c4ae
commit bb5ff88608
3 changed files with 19 additions and 52 deletions

View File

@@ -24,6 +24,7 @@
#include <global.h>
#include <gui/bouquetlist.h>
#include <libupnpclient/upnpclient.h>
#include <timerdclient/timerdtypes.h>
static int upDownKey(int size, neutrino_msg_t msg, int lines, int sel)
{
@@ -83,3 +84,4 @@ updown_t(std::vector<CZapitBouquet*>);
updown_t(std::vector<CZapitChannel*>);
updown_t(std::vector<CChannelEvent>);
updown_t(std::vector<CUPnPDevice>);
updown_t(std::vector<CTimerd::responseGetTimer>);