diff --git a/cross-configure.cool b/cross-configure.cool
index b35b48763..60daab140 100755
--- a/cross-configure.cool
+++ b/cross-configure.cool
@@ -27,5 +27,5 @@ export FREETYPE_CONFIG=$PREFIX/bin/freetype-config
export CURL_CONFIG=$PREFIX/bin/curl-config
./autogen.sh
-./configure --prefix=${PREFIX} --build=i386-pc-linux-gnu --host=$HOST --without-driver --with-target=cdk --with-targetprefix="" "$*"
+./configure --prefix=${PREFIX} --build=i386-pc-linux-gnu --host=$HOST --enable-flac --with-target=cdk --with-targetprefix="" "$*"
diff --git a/cross-configure.cool.debug b/cross-configure.cool.debug
index 6ce9ebed1..10f42ba3b 100755
--- a/cross-configure.cool.debug
+++ b/cross-configure.cool.debug
@@ -1,6 +1,6 @@
#!/bin/sh
-PREFIX=/opt/newcross/arm-cx2450x-linux-gnueabi/arm-cx2450x-linux-gnueabi/sys-root/usr
+PREFIX=/opt/arm/arm-cx2450x-linux-gnueabi/arm-cx2450x-linux-gnueabi/sys-root/usr
CCPATH=
HOST=arm-cx2450x-linux-gnueabi
@@ -27,5 +27,5 @@ export FREETYPE_CONFIG=$PREFIX/bin/freetype-config
export CURL_CONFIG=$PREFIX/bin/curl-config
./autogen.sh
-./configure --prefix=${PREFIX} --build=i386-pc-linux-gnu --host=$HOST --without-driver --with-target=cdk --with-targetprefix="" "$*"
+./configure --prefix=${PREFIX} --build=i386-pc-linux-gnu --host=$HOST --enable-flac --with-target=cdk --with-targetprefix="" "$*"
diff --git a/data/cables.xml b/data/cables.xml
index b0b9f8965..619c3279a 100644
--- a/data/cables.xml
+++ b/data/cables.xml
@@ -1337,6 +1337,7 @@
+
diff --git a/data/locale/deutsch.locale b/data/locale/deutsch.locale
index d09ead308..2ca31dd32 100644
--- a/data/locale/deutsch.locale
+++ b/data/locale/deutsch.locale
@@ -125,6 +125,7 @@ audiomenu.pref_subs Sprache
audiomenu.pref_subs_head Untertitelwahl
audiomenu.spdif_dd Dolby Digital über S/PDIF
audiomenu.stereo stereo
+audiomenu.volume_adjust Lautstärke ändern, in %
audiomenu.volume_step Lautstärke Schrittweite
audioplayer.add Hinzufügen
audioplayer.add_ic Icecast
@@ -291,6 +292,7 @@ date.Sun So
date.Thu Do
date.Tue Di
date.Wed Mi
+epg.saving Speichere EPG
epgextended.actors Darsteller
epgextended.director Regie
epgextended.guests Gäste
@@ -866,7 +868,7 @@ menu.hint_misc_zapit Behandlung der Start-TV/Start-Radio Kanäle
menu.hint_movie Wiedergabe von Filmen
menu.hint_net_broadcast Hier können Sie die Broadcast-Adresse ändern,\nwenn Sie unsicher sind, verwenden Sie zuletzt .255
menu.hint_net_dhcp Verwenden Sie einen DHCP-Server für die automatische\nKonfiguration können Sie es hier einstellen
-menu.hint_net_djmount Mountet UPnP-Geräte als Dateisystem\nunter / media/00upnp
+menu.hint_net_djmount Mountet UPnP-Geräte als Dateisystem\nunter /media/00upnp
menu.hint_net_ftpd Aktivieren Sie die Dateiübertragung über FTP
menu.hint_net_gateway Hier können Sie die Gateway-Adresse des Routers eingeben
menu.hint_net_hostname Hier kann man den Hostnamen der Box ändern
@@ -975,6 +977,7 @@ menu.hint_scan_logical_hd Wenn der Kanal in SD und in HD verfügbar ist,\nwird H
menu.hint_scan_longitude Geben Sie ihren Längengrad ein
menu.hint_scan_manual Manueller Transponder-Scan mit ausgewählten Parametern
menu.hint_scan_mod Wählen Sie eine Transponder-Modulation
+menu.hint_scan_motor_18v Benutze 18V für Motorbewegung
menu.hint_scan_motor_speed Rotor-Bewegungsgeschwindigkeit in 1/10 Grad pro Sekunde
menu.hint_scan_motorpos Wählen Sie eine gespeicherten Positions-Nummer für diesen Satelliten
menu.hint_scan_nid Hier können Sie ihre Kabelnetzwerk-Id in dezimal eingeben
@@ -1158,6 +1161,7 @@ motorcontrol.store Speichere Motorposition (a)
motorcontrol.timed_mode Zeitgesteuerter Schrittweitenmodus
motorcontrol.user_menu Benutzermenü
motorcontrol.west_limit Setze westliches (soft) Limit
+moviebrowser.book_add Lesezeichen setzen
moviebrowser.book_clear_all Lösche alle
moviebrowser.book_head Markierungen
moviebrowser.book_lastmoviestop letzter Wiedergabestopp:
diff --git a/data/locale/english.locale b/data/locale/english.locale
index 10e8c4549..3f3100cbf 100644
--- a/data/locale/english.locale
+++ b/data/locale/english.locale
@@ -125,6 +125,7 @@ audiomenu.pref_subs Prefered subtitle language
audiomenu.pref_subs_head Subtitle language preferences
audiomenu.spdif_dd Encoded DD on SPDIF
audiomenu.stereo stereo
+audiomenu.volume_adjust Volume adjustment, in %
audiomenu.volume_step Volume step
audioplayer.add Add
audioplayer.add_ic Icecast
@@ -291,6 +292,7 @@ date.Sun Sun
date.Thu Thu
date.Tue Tue
date.Wed Wed
+epg.saving Saving EPG
epgextended.actors Actors
epgextended.director Director
epgextended.guests Guests
@@ -866,7 +868,7 @@ menu.hint_misc_zapit Initial TV/Radio channels
menu.hint_movie Play movies
menu.hint_net_broadcast Enter broadcast address\nif unsure, use IP address with last .255
menu.hint_net_dhcp Use DHCP server to auto-configure
-menu.hint_net_djmount mount uPnp devices as filesystem\nunder /media/00upnp
+menu.hint_net_djmount Mount UPnP devices as filesystem\nunder /media/00upnp
menu.hint_net_ftpd Enable file transfer using FTP
menu.hint_net_gateway Enter gateway/router IP address
menu.hint_net_hostname Change your box hostname
@@ -975,6 +977,7 @@ menu.hint_scan_logical_hd If both SD and HD channel versions present\nput HD to
menu.hint_scan_longitude Enter your longtitude
menu.hint_scan_manual Manual transponder scan using\nselected parameters
menu.hint_scan_mod Select transponder modulation
+menu.hint_scan_motor_18v Use 18V when moving rotor
menu.hint_scan_motor_speed Rotor moving speed in 1/10 degree\nper second
menu.hint_scan_motorpos Select stored position number for\nthis satellite
menu.hint_scan_nid Enter decimal network ID
@@ -1158,6 +1161,7 @@ motorcontrol.store Store Motor Position (a)
motorcontrol.timed_mode Timed Step Mode
motorcontrol.user_menu User menu
motorcontrol.west_limit Set West (soft) Limit
+moviebrowser.book_add Add bookmark
moviebrowser.book_clear_all Clear all
moviebrowser.book_head Bookmarks
moviebrowser.book_lastmoviestop Last play stop:
diff --git a/lib/libdvbsub/dvbsub.cpp b/lib/libdvbsub/dvbsub.cpp
index ad67f055e..21a2b1bc6 100644
--- a/lib/libdvbsub/dvbsub.cpp
+++ b/lib/libdvbsub/dvbsub.cpp
@@ -16,7 +16,6 @@
#include "Debug.hpp"
#include "PacketQueue.hpp"
-#include "semaphore.h"
#include "helpers.hpp"
#include "dvbsubtitle.h"
diff --git a/lib/libdvbsub/dvbsubtitle.cpp b/lib/libdvbsub/dvbsubtitle.cpp
index 43297eade..b88ed4d6d 100644
--- a/lib/libdvbsub/dvbsubtitle.cpp
+++ b/lib/libdvbsub/dvbsubtitle.cpp
@@ -22,7 +22,7 @@ extern "C" {
#include
#include
}
-#include "driver/framebuffer.h"
+#include
#include "Debug.hpp"
// Set these to 'true' for debug output:
diff --git a/lib/libtuxtxt/tuxtxt.cpp b/lib/libtuxtxt/tuxtxt.cpp
index c629daa6a..9ef4c5c67 100644
--- a/lib/libtuxtxt/tuxtxt.cpp
+++ b/lib/libtuxtxt/tuxtxt.cpp
@@ -15,9 +15,10 @@
#include "teletext.h"
#include "tuxtxt.h"
-#include "driver/framebuffer.h"
+#include
#include
#include
+#include
/* same as in rcinput.h... */
#define KEY_TTTV KEY_FN_1
@@ -82,7 +83,7 @@ void gethotlist()
hotlistchanged = 0;
maxhotlist = -1;
- sprintf(line, CONFIGDIR "/tuxtxt/hotlist%d.conf", tuxtxt_cache.vtxtpid);
+ sprintf(line, TUXTXTDIR "/hotlist%d.conf", tuxtxt_cache.vtxtpid);
#if TUXTXT_DEBUG
printf("TuxTxt
-#ifndef NEW_CST_KERNEL
-#include
-#endif
-
#include
#include
@@ -68,7 +64,8 @@ extern int tuxtxt_get_zipsize(int p, int sp);
#endif
-#define TUXTXTCONF CONFIGDIR "/tuxtxt/tuxtxt2.conf"
+#define TUXTXTDIR CONFIGDIR "/tuxtxt"
+#define TUXTXTCONF TUXTXTDIR "/tuxtxt2.conf"
/* fonts */
#define TUXTXTTTF FONTDIR "/tuxtxt.ttf"
diff --git a/lib/sectionsdclient/sectionsdMsg.h b/lib/sectionsdclient/sectionsdMsg.h
index 527b45cce..4595a80ca 100644
--- a/lib/sectionsdclient/sectionsdMsg.h
+++ b/lib/sectionsdclient/sectionsdMsg.h
@@ -54,28 +54,12 @@ struct sectionsd
enum commands
{
dumpStatusinformation, // commandDumpStatusInformation
- allEventsChannelIDSearch, // commandAllEventsChannelIDSearch
pauseScanning, // commandPauseScanning // for the grabbers ;)
getIsScanningActive, // commandGetIsScanningActive
- actualEPGchannelID, // commandActualEPGchannelID
- actualEventListTVshortIDs, // commandEventListTVids
- actualEventListRadioShortIDs, // commandEventListRadioIDs
- currentNextInformationID, // commandCurrentNextInfoChannelID
- epgEPGid, // commandEPGepgID
- epgEPGidShort, // commandEPGepgIDshort
- ComponentTagsUniqueKey, // commandComponentTagsUniqueKey
- allEventsChannelID_, // commandAllEventsChannelID
- timesNVODservice, // commandTimesNVODservice
getIsTimeSet, // commandGetIsTimeSet
serviceChanged, // commandserviceChanged
- LinkageDescriptorsUniqueKey, // commandLinkageDescriptorsUniqueKey
CMD_registerEvents, // commandRegisterEventClient
CMD_unregisterEvents, // commandUnRegisterEventClient
-#ifdef ENABLE_PPT
- setPrivatePid, // commandSetPrivatePid
-#else
- dummy11_setPrivatePid,
-#endif
freeMemory, // commandFreeMemory
readSIfromXML, // commandReadSIfromXML
writeSI2XML, // commandWriteSI2XML
@@ -85,11 +69,13 @@ struct sectionsd
numberOfCommands // <- no actual command, end of command marker
};
+#if 0
struct commandGetEPGid
{
uint64_t eventid;
time_t starttime;
} __attribute__ ((packed)) ;
+#endif
struct commandSetServiceChanged
{
diff --git a/lib/sectionsdclient/sectionsdclient.cpp b/lib/sectionsdclient/sectionsdclient.cpp
index 6d6da6b4b..4c6e16c0c 100644
--- a/lib/sectionsdclient/sectionsdclient.cpp
+++ b/lib/sectionsdclient/sectionsdclient.cpp
@@ -56,7 +56,6 @@ int CSectionsdClient::readResponse(char* data,unsigned int size)
return responseHeader.dataLength;
}
-
bool CSectionsdClient::send(const unsigned char command, const char* data, const unsigned int size)
{
sectionsd::msgRequestHeader msgHead;
@@ -161,7 +160,61 @@ void CSectionsdClient::setServiceChanged(const t_channel_id channel_id, const bo
close_connection();
}
+void CSectionsdClient::freeMemory()
+{
+ send(sectionsd::freeMemory);
+ readResponse();
+ close_connection();
+}
+
+void CSectionsdClient::readSIfromXML(const char * epgxmlname)
+{
+ send(sectionsd::readSIfromXML, (char*) epgxmlname, strlen(epgxmlname));
+
+ readResponse();
+ close_connection();
+}
+
+void CSectionsdClient::writeSI2XML(const char * epgxmlname)
+{
+ send(sectionsd::writeSI2XML, (char*) epgxmlname, strlen(epgxmlname));
+
+ readResponse();
+ close_connection();
+}
+
+void CSectionsdClient::setConfig(const epg_config config)
+{
+ sectionsd::commandSetConfig *msg;
+ char* pData = new char[sizeof(sectionsd::commandSetConfig) + config.network_ntpserver.length() + 1 + config.epg_dir.length() + 1];
+ msg = (sectionsd::commandSetConfig *)pData;
+
+ msg->scanMode = config.scanMode;
+ msg->epg_cache = config.epg_cache;
+ msg->epg_old_events = config.epg_old_events;
+ msg->epg_max_events = config.epg_max_events;
+ msg->network_ntprefresh = config.network_ntprefresh;
+ msg->network_ntpenable = config.network_ntpenable;
+ msg->epg_extendedcache = config.epg_extendedcache;
+// config.network_ntpserver:
+ strcpy(&pData[sizeof(sectionsd::commandSetConfig)], config.network_ntpserver.c_str());
+// config.epg_dir:
+ strcpy(&pData[sizeof(sectionsd::commandSetConfig) + config.network_ntpserver.length() + 1], config.epg_dir.c_str());
+
+ send(sectionsd::setConfig, (char*)pData, sizeof(sectionsd::commandSetConfig) + config.network_ntpserver.length() + 1 + config.epg_dir.length() + 1);
+ readResponse();
+ close_connection();
+ delete[] pData;
+}
+
+void CSectionsdClient::dumpStatus()
+{
+ send(sectionsd::dumpStatusinformation);
+ close_connection();
+}
+
+#if 0
bool CSectionsdClient::getComponentTagsUniqueKey(const event_id_t uniqueKey, CSectionsdClient::ComponentTagList& tags)
{
if (send(sectionsd::ComponentTagsUniqueKey, (char*)&uniqueKey, sizeof(uniqueKey)))
@@ -277,7 +330,6 @@ bool CSectionsdClient::getNVODTimesServiceKey(const t_channel_id channel_id, CSe
}
}
-
bool CSectionsdClient::getCurrentNextServiceKey(const t_channel_id channel_id, CSectionsdClient::responseGetCurrentNextInfoChannelID& current_next)
{
if (send(sectionsd::currentNextInformationID, (char*)&channel_id, sizeof(channel_id)))
@@ -321,8 +373,6 @@ bool CSectionsdClient::getCurrentNextServiceKey(const t_channel_id channel_id, C
}
}
-
-
CChannelEventList CSectionsdClient::getChannelEvents(const bool tv_mode, t_channel_id *p_requested_channels, int size_requested_channels)
{
CChannelEventList eList;
@@ -375,8 +425,6 @@ CChannelEventList CSectionsdClient::getChannelEvents(const bool tv_mode, t_chann
3: keyword search in EPG description (INFO2)
In case of a match, the EPG event is added to the Eventlist eList.
*/
-#if 0
-//never used
bool CSectionsdClient::getEventsServiceKeySearchAdd(CChannelEventList& eList,const t_channel_id channel_id,char search_typ,std::string& search_text)
{
int nBufSize=0;
@@ -437,7 +485,7 @@ bool CSectionsdClient::getEventsServiceKeySearchAdd(CChannelEventList& eList,con
close_connection();
return true;
}
-#endif
+
CChannelEventList CSectionsdClient::getEventsServiceKey(const t_channel_id channel_id)
{
CChannelEventList eList;
@@ -481,7 +529,7 @@ CChannelEventList CSectionsdClient::getEventsServiceKey(const t_channel_id chann
close_connection();
return eList;
}
-#if 0
+
//never used
void showhexdumpa (char *label, unsigned char * from, int len)
{
@@ -523,7 +571,7 @@ void showhexdumpa (char *label, unsigned char * from, int len)
}
printf ("\n");
}
-#endif
+
// 21.07.2005 - rainerk
// Convert line-terminated extended events to vector of strings
char * CSectionsdClient::parseExtendedEvents(char * dp, CEPGData * epgdata) {
@@ -617,7 +665,6 @@ bool CSectionsdClient::getActualEPGServiceKey(const t_channel_id channel_id, CEP
return false;
}
-
bool CSectionsdClient::getEPGid(const event_id_t eventid, const time_t starttime, CEPGData * epgdata)
{
sectionsd::commandGetEPGid msg;
@@ -673,7 +720,6 @@ bool CSectionsdClient::getEPGid(const event_id_t eventid, const time_t starttime
return false;
}
-
bool CSectionsdClient::getEPGidShort(const event_id_t eventid, CShortEPGData * epgdata)
{
if (send(sectionsd::epgEPGidShort, (char*)&eventid, sizeof(eventid)))
@@ -721,57 +767,5 @@ void CSectionsdClient::setPrivatePid(const unsigned short pid)
close_connection();
}
#endif
+#endif
-void CSectionsdClient::freeMemory()
-{
- send(sectionsd::freeMemory);
-
- readResponse();
- close_connection();
-}
-
-void CSectionsdClient::readSIfromXML(const char * epgxmlname)
-{
- send(sectionsd::readSIfromXML, (char*) epgxmlname, strlen(epgxmlname));
-
- readResponse();
- close_connection();
-}
-
-void CSectionsdClient::writeSI2XML(const char * epgxmlname)
-{
- send(sectionsd::writeSI2XML, (char*) epgxmlname, strlen(epgxmlname));
-
- readResponse();
- close_connection();
-}
-
-void CSectionsdClient::setConfig(const epg_config config)
-{
- sectionsd::commandSetConfig *msg;
- char* pData = new char[sizeof(sectionsd::commandSetConfig) + config.network_ntpserver.length() + 1 + config.epg_dir.length() + 1];
- msg = (sectionsd::commandSetConfig *)pData;
-
- msg->scanMode = config.scanMode;
- msg->epg_cache = config.epg_cache;
- msg->epg_old_events = config.epg_old_events;
- msg->epg_max_events = config.epg_max_events;
- msg->network_ntprefresh = config.network_ntprefresh;
- msg->network_ntpenable = config.network_ntpenable;
- msg->epg_extendedcache = config.epg_extendedcache;
-// config.network_ntpserver:
- strcpy(&pData[sizeof(sectionsd::commandSetConfig)], config.network_ntpserver.c_str());
-// config.epg_dir:
- strcpy(&pData[sizeof(sectionsd::commandSetConfig) + config.network_ntpserver.length() + 1], config.epg_dir.c_str());
-
- send(sectionsd::setConfig, (char*)pData, sizeof(sectionsd::commandSetConfig) + config.network_ntpserver.length() + 1 + config.epg_dir.length() + 1);
- readResponse();
- close_connection();
- delete[] pData;
-}
-
-void CSectionsdClient::dumpStatus()
-{
- send(sectionsd::dumpStatusinformation);
- close_connection();
-}
diff --git a/lib/sectionsdclient/sectionsdclient.h b/lib/sectionsdclient/sectionsdclient.h
index 4065ffc2d..3d2d0d438 100644
--- a/lib/sectionsdclient/sectionsdclient.h
+++ b/lib/sectionsdclient/sectionsdclient.h
@@ -36,13 +36,6 @@ class CShortEPGData
std::string title;
std::string info1;
std::string info2;
-
- CShortEPGData()
- {
- title = "";
- info1 = "";
- info2 = "";
- };
};
class CEPGData;
@@ -69,7 +62,7 @@ class CSectionsdClient : private CBasicClient
int readResponse(char* data = NULL, unsigned int size = 0);
bool send(const unsigned char command, const char* data = NULL, const unsigned int size = 0);
- char * parseExtendedEvents(char * dp, CEPGData * epgdata);
+ //char * parseExtendedEvents(char * dp, CEPGData * epgdata);
public:
virtual ~CSectionsdClient() {};
@@ -86,8 +79,10 @@ class CSectionsdClient : private CBasicClient
{
EVT_TIMESET,
EVT_GOT_CN_EPG,
+#if 0
EVT_SERVICES_UPDATE,
EVT_BOUQUETS_UPDATE,
+#endif
EVT_WRITE_SI_FINISHED
};
@@ -126,6 +121,10 @@ class CSectionsdClient : private CBasicClient
{
time_t startzeit;
unsigned dauer;
+ sectionsdTime() {
+ startzeit = 0;
+ dauer = 0;
+ }
} __attribute__ ((packed)) ;
struct responseGetNVODTimes
@@ -165,35 +164,25 @@ class CSectionsdClient : private CBasicClient
std::string epg_dir;
} epg_config;
+#if 0
bool getComponentTagsUniqueKey(const event_id_t uniqueKey, CSectionsdClient::ComponentTagList& tags);
-
bool getLinkageDescriptorsUniqueKey(const event_id_t uniqueKey, CSectionsdClient::LinkageDescriptorList& descriptors);
-
bool getNVODTimesServiceKey(const t_channel_id channel_id, CSectionsdClient::NVODTimesList& nvod_list);
-
bool getCurrentNextServiceKey(const t_channel_id channel_id, CSectionsdClient::responseGetCurrentNextInfoChannelID& current_next);
+ CChannelEventList getChannelEvents(const bool tv_mode = true, t_channel_id* = NULL, int size = 0);
+ CChannelEventList getEventsServiceKey(const t_channel_id channel_id);
+ bool getEventsServiceKeySearchAdd(CChannelEventList& evtlist,const t_channel_id channel_id,char m_search_typ,std::string& m_search_text);
+ bool getEPGid(const event_id_t eventid, const time_t starttime, CEPGData * epgdata);
+ bool getActualEPGServiceKey(const t_channel_id channel_id, CEPGData * epgdata);
+ bool getEPGidShort(const event_id_t eventid, CShortEPGData * epgdata);
+ void setPrivatePid(const unsigned short pid);
+#endif
bool getIsTimeSet();
-
void setPauseScanning(const bool doPause);
-
- bool getIsScanningActive();
-
void setServiceChanged(const t_channel_id channel_id, const bool requestEvent);
- CChannelEventList getChannelEvents(const bool tv_mode = true, t_channel_id* = NULL, int size = 0);
-
- CChannelEventList getEventsServiceKey(const t_channel_id channel_id);
-
- bool getEventsServiceKeySearchAdd(CChannelEventList& evtlist,const t_channel_id channel_id,char m_search_typ,std::string& m_search_text);
-
- bool getEPGid(const event_id_t eventid, const time_t starttime, CEPGData * epgdata);
-
- bool getActualEPGServiceKey(const t_channel_id channel_id, CEPGData * epgdata);
-
- bool getEPGidShort(const event_id_t eventid, CShortEPGData * epgdata);
-
- void setPrivatePid(const unsigned short pid);
+ bool getIsScanningActive();
void freeMemory();
@@ -235,15 +224,9 @@ class CEPGData
CEPGData()
{
eventID = 0;
- title = "";
- info1 = "";
- info2 = "";
fsk = 0;
table_id = 0xff;
- contentClassification = "";
- userClassification = "";
};
-
};
#endif
diff --git a/lib/xmltree/xmlparse.cpp b/lib/xmltree/xmlparse.cpp
index d0a531824..f2c2c5fd2 100644
--- a/lib/xmltree/xmlparse.cpp
+++ b/lib/xmltree/xmlparse.cpp
@@ -43,7 +43,7 @@ ChangeLog:
#include
#include
-#include "xmldef.h"
+#include "xmltok/xmldef.h"
#ifdef XML_UNICODE
#define XML_ENCODE_MAX XML_UTF16_ENCODE_MAX
diff --git a/lib/xmltree/xmlrole.c b/lib/xmltree/xmlrole.c
index 27d5c41ce..23b3a62c4 100644
--- a/lib/xmltree/xmlrole.c
+++ b/lib/xmltree/xmlrole.c
@@ -18,7 +18,7 @@ James Clark. All Rights Reserved.
Contributor(s):
*/
-#include "xmldef.h"
+#include "xmltok/xmldef.h"
#include "xmlrole.h"
/* Doesn't check:
diff --git a/lib/xmltree/xmltok.c b/lib/xmltree/xmltok.c
index 4634a0356..989ea638b 100644
--- a/lib/xmltree/xmltok.c
+++ b/lib/xmltree/xmltok.c
@@ -18,9 +18,9 @@ James Clark. All Rights Reserved.
Contributor(s):
*/
-#include "xmldef.h"
+#include "xmltok/xmldef.h"
#include "xmltok.h"
-#include "nametab.h"
+#include "xmltok/nametab.h"
#define VTABLE1 \
{ PREFIX(prologTok), PREFIX(contentTok), PREFIX(cdataSectionTok) }, \
@@ -265,7 +265,7 @@ static const struct normal_encoding utf8_encoding = {
{ VTABLE1, utf8_toUtf8, utf8_toUtf16, 1, 1, 0 },
{
#include "asciitab.h"
-#include "utf8tab.h"
+#include "xmltok/utf8tab.h"
},
NORMAL_VTABLE(utf8_)
};
@@ -274,7 +274,7 @@ static const struct normal_encoding internal_utf8_encoding = {
{ VTABLE1, utf8_toUtf8, utf8_toUtf16, 1, 1, 0 },
{
#include "iasctab.h"
-#include "utf8tab.h"
+#include "xmltok/utf8tab.h"
},
NORMAL_VTABLE(utf8_)
};
@@ -319,7 +319,7 @@ static const struct normal_encoding latin1_encoding = {
{ VTABLE1, latin1_toUtf8, latin1_toUtf16, 1, 0, 0 },
{
#include "asciitab.h"
-#include "latin1tab.h"
+#include "xmltok/latin1tab.h"
},
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
};
@@ -490,7 +490,7 @@ static const struct normal_encoding little2_encoding = {
},
{
#include "asciitab.h"
-#include "latin1tab.h"
+#include "xmltok/latin1tab.h"
},
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
};
@@ -501,7 +501,7 @@ static const struct normal_encoding internal_little2_encoding = {
{ VTABLE, 2, 0, 1 },
{
#include "iasctab.h"
-#include "latin1tab.h"
+#include "xmltok/latin1tab.h"
},
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
};
@@ -559,7 +559,7 @@ static const struct normal_encoding big2_encoding = {
},
{
#include "asciitab.h"
-#include "latin1tab.h"
+#include "xmltok/latin1tab.h"
},
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
};
diff --git a/src/daemonc/remotecontrol.cpp b/src/daemonc/remotecontrol.cpp
index d6659148d..a9f1937a8 100644
--- a/src/daemonc/remotecontrol.cpp
+++ b/src/daemonc/remotecontrol.cpp
@@ -41,13 +41,14 @@
#include
#include
-#include "libdvbsub/dvbsub.h"
-#include "libtuxtxt/teletext.h"
+#include
+#include
#include
#include
#include
#include
+#include
#define ZAP_GUARD_TIME 2000 // ms
@@ -55,11 +56,6 @@ extern CBouquetManager *g_bouquetManager;
extern uint32_t scrambled_timer;
-bool sectionsd_getComponentTagsUniqueKey(const event_id_t uniqueKey, CSectionsdClient::ComponentTagList& tags);
-bool sectionsd_getLinkageDescriptorsUniqueKey(const event_id_t uniqueKey, CSectionsdClient::LinkageDescriptorList& descriptors);
-bool sectionsd_getNVODTimesServiceKey(const t_channel_id uniqueServiceKey, CSectionsdClient::NVODTimesList& nvod_list);
-void sectionsd_setPrivatePid(unsigned short pid);
-
CSubService::CSubService(const t_original_network_id anoriginal_network_id, const t_service_id aservice_id, const t_transport_stream_id atransport_stream_id, const std::string &asubservice_name)
{
service.original_network_id = anoriginal_network_id;
@@ -293,8 +289,6 @@ int CRemoteControl::handleMsg(const neutrino_msg_t msg, neutrino_msg_data_t data
{
CVFD::getInstance()->showServicename(current_channel_name); // UTF-8
g_Zapit->getPIDS( current_PIDs );
- //g_Sectionsd->setPrivatePid( current_PIDs.PIDs.privatepid );
- sectionsd_setPrivatePid( current_PIDs.PIDs.privatepid );
//tuxtxt
#if 1
tuxtxt_stop();
@@ -369,8 +363,7 @@ void CRemoteControl::getSubChannels()
if ( subChannels.empty() )
{
CSectionsdClient::LinkageDescriptorList linkedServices;
- //if ( g_Sectionsd->getLinkageDescriptorsUniqueKey( current_EPGid, linkedServices ) )
- if ( sectionsd_getLinkageDescriptorsUniqueKey( current_EPGid, linkedServices ) )
+ if (CEitManager::getInstance()->getLinkageDescriptorsUniqueKey( current_EPGid, linkedServices))
{
if ( linkedServices.size()> 1 )
{
@@ -403,8 +396,7 @@ void CRemoteControl::getNVODs()
if ( subChannels.empty() )
{
CSectionsdClient::NVODTimesList NVODs;
- //if ( g_Sectionsd->getNVODTimesServiceKey( current_channel_id & 0xFFFFFFFFFFFFULL, NVODs ) )
- if ( sectionsd_getNVODTimesServiceKey( current_channel_id & 0xFFFFFFFFFFFFULL, NVODs ) )
+ if (CEitManager::getInstance()->getNVODTimesServiceKey( current_channel_id, NVODs))
{
are_subchannels = false;
//printf("CRemoteControl::getNVODs NVODs.size %d\n", NVODs.size());
@@ -534,8 +526,7 @@ void CRemoteControl::processAPIDnames()
if ( current_EPGid != 0 )
{
CSectionsdClient::ComponentTagList tags;
- //if ( g_Sectionsd->getComponentTagsUniqueKey( current_EPGid, tags ) )
- if ( sectionsd_getComponentTagsUniqueKey( current_EPGid, tags ) )
+ if (CEitManager::getInstance()->getComponentTagsUniqueKey(current_EPGid, tags))
{
has_unresolved_ctags = false;
diff --git a/src/driver/audioplay.cpp b/src/driver/audioplay.cpp
index 3358043df..3ea3fd4d4 100644
--- a/src/driver/audioplay.cpp
+++ b/src/driver/audioplay.cpp
@@ -34,7 +34,7 @@
#ifdef HAVE_CONFIG_H
#include
#endif
-#include "global.h"
+#include
#include
#include
#include
diff --git a/src/driver/framebuffer.cpp b/src/driver/framebuffer.cpp
index ab4a80c3e..b727ef51e 100644
--- a/src/driver/framebuffer.cpp
+++ b/src/driver/framebuffer.cpp
@@ -38,8 +38,6 @@
#include
-#include
-
#include
#include
#include
diff --git a/src/driver/netfile.cpp b/src/driver/netfile.cpp
index 2b6303cb2..3a235e3fa 100644
--- a/src/driver/netfile.cpp
+++ b/src/driver/netfile.cpp
@@ -101,12 +101,10 @@
#endif
#include "netfile.h"
-#include "global.h"
+#include
#include
#include
#include
-#include
-#include
#include
/*
TODO:
diff --git a/src/driver/pictureviewer/fb_display.cpp b/src/driver/pictureviewer/fb_display.cpp
index 469b07815..95b2a9b0e 100644
--- a/src/driver/pictureviewer/fb_display.cpp
+++ b/src/driver/pictureviewer/fb_display.cpp
@@ -18,7 +18,7 @@
#include
#include "fb_display.h"
#include "pictureviewer.h"
-#include "driver/framebuffer.h"
+#include
static unsigned char *lfb = 0;
diff --git a/src/driver/pictureviewer/pictureviewer.cpp b/src/driver/pictureviewer/pictureviewer.cpp
index 39ca3203d..3cef358f1 100644
--- a/src/driver/pictureviewer/pictureviewer.cpp
+++ b/src/driver/pictureviewer/pictureviewer.cpp
@@ -3,7 +3,6 @@
#include
#include "pictureviewer.h"
#include "pv_config.h"
-#include "driver/framebuffer.h"
#include
#include
diff --git a/src/driver/pictureviewer/pictureviewer.h b/src/driver/pictureviewer/pictureviewer.h
index 094a11217..011fa8bee 100644
--- a/src/driver/pictureviewer/pictureviewer.h
+++ b/src/driver/pictureviewer/pictureviewer.h
@@ -30,7 +30,7 @@
#include
#include /* printf */
#include /* gettimeofday */
-#include "driver/framebuffer.h"
+#include
class CPictureViewer
{
struct cformathandler
diff --git a/src/driver/record.cpp b/src/driver/record.cpp
index 269a4b442..4f2f723e2 100644
--- a/src/driver/record.cpp
+++ b/src/driver/record.cpp
@@ -40,13 +40,15 @@
#include
#include
#include
+#include
#include
#include
#include
#include
#include
#include
-#include
+#include
+
#include
#include
@@ -54,6 +56,7 @@
#include
#include
#include
+#include
/* TODO:
* nextRecording / pending recordings - needs testing
@@ -63,11 +66,6 @@
extern CRemoteControl * g_RemoteControl; /* neutrino.cpp */
-bool sectionsd_getActualEPGServiceKey(const t_channel_id uniqueServiceKey, CEPGData * epgdata);
-bool sectionsd_getEPGidShort(event_id_t epgID, CShortEPGData * epgdata);
-bool sectionsd_getEPGid(const event_id_t epgID, const time_t startzeit, CEPGData * epgdata);
-bool sectionsd_getComponentTagsUniqueKey(const event_id_t uniqueKey, CSectionsdClient::ComponentTagList& tags);
-
extern "C" {
#include
}
@@ -173,10 +171,10 @@ record_error_msg_t CRecordInstance::Start(CZapitChannel * channel)
record->Open();
if(!record->Start(fd, (unsigned short ) allpids.PIDs.vpid, (unsigned short *) apids, numpids, channel_id)) {
- /* Stop do close fd */
record->Stop();
delete record;
record = NULL;
+ close(fd);
unlink(tsfile.c_str());
hintBox.hide();
return RECORD_FAILURE;
@@ -217,6 +215,7 @@ bool CRecordInstance::Stop(bool remove_event)
printf("%s: channel %llx recording_id %d\n", __FUNCTION__, channel_id, recording_id);
SaveXml();
+ /* Stop do close fd - if started */
record->Stop();
if(!autoshift)
@@ -225,7 +224,7 @@ bool CRecordInstance::Stop(bool remove_event)
CCamManager::getInstance()->Stop(channel_id, CCamManager::RECORD);
if((autoshift && g_settings.auto_delete) /* || autoshift_delete*/) {
- snprintf(buf,sizeof(buf), "nice -n 20 rm -f %s.ts &", filename);
+ snprintf(buf,sizeof(buf), "nice -n 20 rm -f \"%s.ts\" &", filename);
system(buf);
snprintf(buf,sizeof(buf), "%s.xml", filename);
//autoshift_delete = false;
@@ -353,7 +352,7 @@ void CRecordInstance::ProcessAPIDnames()
if(has_unresolved_ctags && (epgid != 0)) {
CSectionsdClient::ComponentTagList tags;
- if(sectionsd_getComponentTagsUniqueKey(epgid, tags)) {
+ if(CEitManager::getInstance()->getComponentTagsUniqueKey(epgid, tags)) {
for(unsigned int i=0; i< tags.size(); i++) {
for(unsigned int j=0; j< allpids.APIDs.size(); j++) {
if(allpids.APIDs[j].component_tag == tags[i].componentTag) {
@@ -401,9 +400,7 @@ record_error_msg_t CRecordInstance::Record()
{
int pre=0, post=0;
CEPGData epgData;
- epgData.epg_times.startzeit = 0;
- epgData.epg_times.dauer = 0;
- if (sectionsd_getActualEPGServiceKey(channel_id&0xFFFFFFFFFFFFULL, &epgData )) {
+ if (CEitManager::getInstance()->getActualEPGServiceKey(channel_id, &epgData )) {
g_Timerd->getRecordingSafety(pre, post);
if (epgData.epg_times.startzeit > 0)
record_end = epgData.epg_times.startzeit + epgData.epg_times.dauer + post;
@@ -508,7 +505,7 @@ void CRecordInstance::FillMovieInfo(CZapitChannel * channel, APIDList & apid_lis
tmpstring = "not available";
if (epgid != 0) {
CEPGData epgdata;
- if (sectionsd_getEPGid(epgid, epg_time, &epgdata)) {
+ if (CEitManager::getInstance()->getEPGid(epgid, epg_time, &epgdata)) {
tmpstring = epgdata.title;
info1 = epgdata.info1;
info2 = epgdata.info2;
@@ -614,7 +611,7 @@ record_error_msg_t CRecordInstance::MakeFileName(CZapitChannel * channel)
if (g_settings.recording_epg_for_filename) {
if(epgid != 0) {
CShortEPGData epgdata;
- if(sectionsd_getEPGidShort(epgid, &epgdata)) {
+ if(CEitManager::getInstance()->getEPGidShort(epgid, &epgdata)) {
if (!(epgdata.title.empty())) {
strcpy(&(filename[pos]), epgdata.title.c_str());
ZapitTools::replace_char(&filename[pos]);
@@ -803,7 +800,7 @@ bool CRecordManager::Record(const t_channel_id channel_id, const char * dir, boo
eventinfo.eventID = 0;
eventinfo.channel_id = channel_id;
- if (sectionsd_getActualEPGServiceKey(channel_id&0xFFFFFFFFFFFFULL, &epgData )) {
+ if (CEitManager::getInstance()->getActualEPGServiceKey(channel_id, &epgData )) {
eventinfo.epgID = epgData.eventID;
eventinfo.epg_starttime = epgData.epg_times.startzeit;
strncpy(eventinfo.epgTitle, epgData.title.c_str(), EPG_TITLE_MAXLEN-1);
@@ -894,23 +891,25 @@ bool CRecordManager::Record(const CTimerd::RecordingInfo * const eventinfo, cons
mutex.unlock();
- if (error_msg == RECORD_OK) {
+ if (error_msg == RECORD_OK)
return true;
- }
- else if(!timeshift) {
- RunStopScript();
- RestoreNeutrino();
- printf("[recordmanager] %s: error code: %d\n", __FUNCTION__, error_msg);
+ printf("[recordmanager] %s: error code: %d\n", __FUNCTION__, error_msg);
+ /* RestoreNeutrino must be called always if record start failed */
+ RunStopScript();
+ RestoreNeutrino();
+
+ /* FIXME show timeshift start error or not ? */
+ //if(!timeshift)
+ {
//FIXME: Use better error message
DisplayErrorMessage(g_Locale->getText(
error_msg == RECORD_BUSY ? LOCALE_STREAMING_BUSY :
error_msg == RECORD_INVALID_DIRECTORY ? LOCALE_STREAMING_DIR_NOT_WRITABLE :
LOCALE_STREAMING_WRITE_ERROR )); // UTF-8
- return false;
}
- return true;
+ return false;
}
bool CRecordManager::StartAutoRecord()
@@ -1452,7 +1451,7 @@ bool CRecordManager::RunStartScript(void)
return false;
puts("[neutrino.cpp] executing " NEUTRINO_RECORDING_START_SCRIPT ".");
- if (system(NEUTRINO_RECORDING_START_SCRIPT) != 0) {
+ if (my_system(NEUTRINO_RECORDING_START_SCRIPT) != 0) {
perror(NEUTRINO_RECORDING_START_SCRIPT " failed");
return false;
}
@@ -1466,7 +1465,7 @@ bool CRecordManager::RunStopScript(void)
return false;
puts("[neutrino.cpp] executing " NEUTRINO_RECORDING_ENDED_SCRIPT ".");
- if (system(NEUTRINO_RECORDING_ENDED_SCRIPT) != 0) {
+ if (my_system(NEUTRINO_RECORDING_ENDED_SCRIPT) != 0) {
perror(NEUTRINO_RECORDING_ENDED_SCRIPT " failed");
return false;
}
diff --git a/src/driver/screen_max.cpp b/src/driver/screen_max.cpp
index 404fbb50a..601d46206 100644
--- a/src/driver/screen_max.cpp
+++ b/src/driver/screen_max.cpp
@@ -12,8 +12,8 @@
-#include "global.h"
-#include "driver/screen_max.h"
+#include
+#include
// -- this is a simple odd class provided for 'static' usage
diff --git a/src/driver/screenshot.cpp b/src/driver/screenshot.cpp
index 7aea07577..95a146daf 100644
--- a/src/driver/screenshot.cpp
+++ b/src/driver/screenshot.cpp
@@ -40,6 +40,7 @@
#include
#include
#include
+#include
#include
#include
@@ -345,8 +346,6 @@ bool CScreenShot::SaveBmp()
return true;
}
-bool sectionsd_getActualEPGServiceKey(const t_channel_id uniqueServiceKey, CEPGData * epgdata);
-bool sectionsd_getEPGidShort(event_id_t epgID, CShortEPGData * epgdata);
/*
* create filename member from channel name and its current EPG data,
@@ -370,9 +369,9 @@ void CScreenShot::MakeFileName(const t_channel_id channel_id)
}
pos = strlen(fname);
- if(sectionsd_getActualEPGServiceKey(channel_id&0xFFFFFFFFFFFFULL, &epgData)) {
+ if(CEitManager::getInstance()->getActualEPGServiceKey(channel_id, &epgData)) {
CShortEPGData epgdata;
- if(sectionsd_getEPGidShort(epgData.eventID, &epgdata)) {
+ if(CEitManager::getInstance()->getEPGidShort(epgData.eventID, &epgdata)) {
if (!(epgdata.title.empty())) {
strcpy(&(fname[pos]), epgdata.title.c_str());
ZapitTools::replace_char(&fname[pos]);
diff --git a/src/driver/volume.cpp b/src/driver/volume.cpp
index a5534d80d..35f75ea4e 100644
--- a/src/driver/volume.cpp
+++ b/src/driver/volume.cpp
@@ -36,21 +36,20 @@
#include
#include
#include
-#include
#include
+#include
#if HAVE_COOL_HARDWARE
#include
#endif
-CFrameBuffer * frameBuffer;
extern CRemoteControl * g_RemoteControl;
extern cAudio * audioDecoder;
-static CProgressBar *g_volscale = NULL;
CVolume::CVolume()
{
frameBuffer = CFrameBuffer::getInstance();
+ volscale = NULL;
#if 0
g_Zapit = new CZapitClient;
g_RCInput = new CRCInput;
@@ -62,14 +61,15 @@ CVolume::CVolume()
ShadowOffset = 4;
mute_ay = 0;
m_mode = CNeutrinoApp::getInstance()->getMode();
+ channel_id = 0;
+ apid = 0;
Init();
}
CVolume::~CVolume()
{
- if (g_volscale)
- delete g_volscale;
+ delete volscale;
}
void CVolume::Init()
@@ -79,7 +79,7 @@ void CVolume::Init()
int faktor_h = 18; // scale * 10
int clock_height= 0;
int clock_width = 0;
- int x_corr = 0;
+
pB = 2; // progress border
spacer = 8;
@@ -105,8 +105,9 @@ void CVolume::Init()
progress_h = std::max(icon_h, digit_h) - 2*pB;
vbar_w += digit_w;
}
- delete g_volscale;
- g_volscale = new CProgressBar(true, progress_w, progress_h, 50, 100, 80, true);
+ if (volscale)
+ delete volscale;
+ volscale = new CProgressBar(true, progress_w, progress_h, 50, 100, 80, true);
// mute icon
mute_icon_dx = 0;
@@ -140,7 +141,8 @@ void CVolume::Init()
//printf("\n##### [volume.cpp Zeile %d] mute_ax %d, mute_dx %d\n \n", __LINE__, mute_ax, mute_dx);
switch (g_settings.volume_pos)
{
- case 0:// upper right
+ case 0:{// upper right
+ int x_corr = 0;
if (( neutrino->getMode() != CNeutrinoApp::mode_scart ) && ( neutrino->getMode() != CNeutrinoApp::mode_audio) && ( neutrino->getMode() != CNeutrinoApp::mode_pic)) {
if ((neutrino->isMuted()) && (!g_settings.mode_clock))
x_corr = mute_dx + spacer;
@@ -149,6 +151,7 @@ void CVolume::Init()
}
x = sw - vbar_w - x_corr;
break;
+ }
case 1:// upper left
break;
case 2:// bottom left
@@ -212,7 +215,8 @@ void CVolume::AudioMute(int newValue, bool isEvent)
void CVolume::setvol(int vol)
{
- audioDecoder->setVolume(vol, vol);
+ //audioDecoder->setVolume(vol, vol);
+ CZapit::getInstance()->SetVolume(vol);
}
void CVolume::setVolume(const neutrino_msg_t key, const bool bDoPaint, bool nowait)
@@ -247,7 +251,7 @@ void CVolume::setVolume(const neutrino_msg_t key, const bool bDoPaint, bool nowa
// volume icon
frameBuffer->paintIcon(NEUTRINO_ICON_VOLUME, icon_x, icon_y, 0, colBar);
- g_volscale->reset();
+ volscale->reset();
refreshVolumebar(vol);
}
@@ -353,7 +357,7 @@ void CVolume::setVolume(const neutrino_msg_t key, const bool bDoPaint, bool nowa
void CVolume::refreshVolumebar(int current_volume)
{
// progressbar
- g_volscale->paintProgressBar2(progress_x, progress_y, current_volume);
+ volscale->paintProgressBar2(progress_x, progress_y, current_volume);
if (paintDigits) {
// shadow for erase digits
if (paintShadow)
@@ -366,3 +370,21 @@ void CVolume::refreshVolumebar(int current_volume)
g_Font[VolumeFont]->RenderString(digit_x, digit_y, digit_w, buff, colContent);
}
}
+
+bool CVolume::changeNotify(const neutrino_locale_t OptionName, void * data)
+{
+ bool ret = false;
+ if (ARE_LOCALES_EQUAL(OptionName, NONEXISTANT_LOCALE)) {
+ int percent = *(int *) data;
+ int vol = CZapit::getInstance()->GetVolume();
+ /* keep resulting volume = (vol * percent)/100 not more than 115 */
+ if (vol * percent > 11500)
+ percent = 11500 / vol;
+
+ printf("CVolume::changeNotify: percent %d\n", percent);
+ CZapit::getInstance()->SetPidVolume(channel_id, apid, percent);
+ CZapit::getInstance()->SetVolumePercent(percent);
+ *(int *) data = percent;
+ }
+ return ret;
+}
diff --git a/src/driver/volume.h b/src/driver/volume.h
index 797d9ccb1..1acb333b1 100644
--- a/src/driver/volume.h
+++ b/src/driver/volume.h
@@ -28,11 +28,15 @@
#ifndef __CVOLUME__
#define __CVOLUME__
+#include
+
#define ROUNDED g_settings.rounded_corners ? vbar_h/2 : 0
-class CVolume
+class CVolume : public CChangeObserver
{
private:
+ CFrameBuffer * frameBuffer;
+ CProgressBar *volscale;
void refreshVolumebar(int current_volume);
int x, y, sy, sw, sh;
@@ -47,12 +51,15 @@ class CVolume
int rounded;
int m_mode;
bool paintShadow, paintDigits, MuteIconFrame;
+ /* volume adjustment variables */
+ t_channel_id channel_id;
+ int apid;
public:
CVolume();
~CVolume();
static CVolume* getInstance();
-
+
int spacer, mute_dx;
void Init();
void AudioMute(int newValue, bool isEvent= false);
@@ -60,7 +67,10 @@ class CVolume
void setVolume(const neutrino_msg_t key, const bool bDoPaint = true, bool nowait = false);
int getStartPosTop(){ return sy; }
int getEndPosRight(){ return sw; }
+
+ void SetCurrentPid(int pid) { apid = pid; }
+ void SetCurrentChannel(t_channel_id id) { channel_id = id; }
+ bool changeNotify(const neutrino_locale_t OptionName, void *);
};
-
#endif // __CVOLUME__
diff --git a/src/eitd/sectionsd.cpp b/src/eitd/sectionsd.cpp
index 493e74b51..7f40b6452 100644
--- a/src/eitd/sectionsd.cpp
+++ b/src/eitd/sectionsd.cpp
@@ -60,7 +60,6 @@
#define DEBUG_SECTION_THREADS
#define DEBUG_CN_THREAD
-static bool sectionsd_ready = false;
/*static*/ bool reader_ready = true;
static unsigned int max_events;
static bool notify_complete = false;
@@ -142,7 +141,7 @@ static CFreeSatThread threadFSEIT;
CSdtThread threadSDT;
#endif
-int sectionsd_stop = 0;
+static int sectionsd_stop = 0;
static bool slow_addevent = true;
@@ -1184,24 +1183,12 @@ struct s_cmd_table
static s_cmd_table connectionCommands[sectionsd::numberOfCommands] = {
{ commandDumpStatusInformation, "commandDumpStatusInformation" },
- { sendEmptyResponse, "commandAllEventsChannelIDSearch" },
{ commandPauseScanning, "commandPauseScanning" },
{ commandGetIsScanningActive, "commandGetIsScanningActive" },
- { sendEmptyResponse, "commandActualEPGchannelID" },
- { sendEmptyResponse, "commandEventListTVids" },
- { sendEmptyResponse, "commandEventListRadioIDs" },
- { sendEmptyResponse, "commandCurrentNextInfoChannelID" },
- { sendEmptyResponse, "commandEPGepgID" },
- { sendEmptyResponse, "commandEPGepgIDshort" },
- { sendEmptyResponse, "commandComponentTagsUniqueKey" },
- { sendEmptyResponse, "commandAllEventsChannelID" },
- { sendEmptyResponse, "commandTimesNVODservice" },
{ commandGetIsTimeSet, "commandGetIsTimeSet" },
{ commandserviceChanged, "commandserviceChanged" },
- { sendEmptyResponse, "commandLinkageDescriptorsUniqueKey" },
{ commandRegisterEventClient, "commandRegisterEventClient" },
{ commandUnRegisterEventClient, "commandUnRegisterEventClient" },
- { sendEmptyResponse, "commandSetPrivatePid" },
{ commandFreeMemory, "commandFreeMemory" },
{ commandReadSIfromXML, "commandReadSIfromXML" },
{ commandWriteSI2XML, "commandWriteSI2XML" },
@@ -2107,8 +2094,6 @@ printf("SIevent size: %d\n", sizeof(SIevent));
if (sections_debug)
dump_sched_info("main");
- sectionsd_ready = true;
-
while (running && sectionsd_server.run(sectionsd_parse_command, sectionsd::ACTVERSION, true)) {
sched_yield();
if (threadCN.checkUpdate()) {
@@ -2170,65 +2155,71 @@ printf("SIevent size: %d\n", sizeof(SIevent));
}
/* was: commandAllEventsChannelID sendAllEvents */
-void sectionsd_getEventsServiceKey(t_channel_id serviceUniqueKey, CChannelEventList &eList, char search = 0, std::string search_text = "")
+void CEitManager::getEventsServiceKey(t_channel_id serviceUniqueKey, CChannelEventList &eList, char search, std::string search_text)
{
dprintf("sendAllEvents for " PRINTF_CHANNEL_ID_TYPE "\n", serviceUniqueKey);
- if ((serviceUniqueKey& 0xFFFFFFFFFFFFULL) != 0) { //0xFFFFFFFFFFFFULL for CREATE_CHANNEL_ID64
- // service Found
- readLockEvents();
- int serviceIDfound = 0;
+ if(!eList.empty() && search == 0)//skip on search mode
+ eList.clear();
- if (search_text.length())
- std::transform(search_text.begin(), search_text.end(), search_text.begin(), tolower);
- for (MySIeventsOrderServiceUniqueKeyFirstStartTimeEventUniqueKey::iterator e = mySIeventsOrderServiceUniqueKeyFirstStartTimeEventUniqueKey.begin(); e != mySIeventsOrderServiceUniqueKeyFirstStartTimeEventUniqueKey.end(); ++e)
- {
- if ((*e)->get_channel_id() == (serviceUniqueKey& 0xFFFFFFFFFFFFULL)) { //0xFFFFFFFFFFFFULL for CREATE_CHANNEL_ID64
- serviceIDfound = 1;
+ t_channel_id serviceUniqueKey64 = serviceUniqueKey& 0xFFFFFFFFFFFFULL; //0xFFFFFFFFFFFFULL for CREATE_CHANNEL_ID64
+ if(serviceUniqueKey64 == 0)
+ return;
- bool copy = true;
- if(search == 0); // nothing to do here
- else if(search == 1) {
- std::string eName = (*e)->getName();
- std::transform(eName.begin(), eName.end(), eName.begin(), tolower);
- if(eName.find(search_text) == std::string::npos)
- copy = false;
- }
- else if(search == 2) {
- std::string eText = (*e)->getText();
- std::transform(eText.begin(), eText.end(), eText.begin(), tolower);
- if(eText.find(search_text) == std::string::npos)
- copy = false;
- }
- else if(search == 3) {
- std::string eExtendedText = (*e)->getExtendedText();
- std::transform(eExtendedText.begin(), eExtendedText.end(), eExtendedText.begin(), tolower);
- if(eExtendedText.find(search_text) == std::string::npos)
- copy = false;
- }
+ // service Found
+ readLockEvents();
+ int serviceIDfound = 0;
- if(copy) {
- for (SItimes::iterator t = (*e)->times.begin(); t != (*e)->times.end(); ++t)
- {
- CChannelEvent aEvent;
- aEvent.eventID = (*e)->uniqueKey();
- aEvent.startTime = t->startzeit;
- aEvent.duration = t->dauer;
- aEvent.description = (*e)->getName();
- if (((*e)->getText()).empty())
- aEvent.text = (*e)->getExtendedText().substr(0, 120);
- else
- aEvent.text = (*e)->getText();
- aEvent.channelID = serviceUniqueKey;
- eList.push_back(aEvent);
- }
- } // if = serviceID
+ if (search_text.length())
+ std::transform(search_text.begin(), search_text.end(), search_text.begin(), tolower);
+
+ for (MySIeventsOrderServiceUniqueKeyFirstStartTimeEventUniqueKey::iterator e = mySIeventsOrderServiceUniqueKeyFirstStartTimeEventUniqueKey.begin(); e != mySIeventsOrderServiceUniqueKeyFirstStartTimeEventUniqueKey.end(); ++e)
+ {
+ if ((*e)->get_channel_id() == serviceUniqueKey64) {
+ serviceIDfound = 1;
+
+ bool copy = true;
+ if(search == 0); // nothing to do here
+ else if(search == 1) {
+ std::string eName = (*e)->getName();
+ std::transform(eName.begin(), eName.end(), eName.begin(), tolower);
+ if(eName.find(search_text) == std::string::npos)
+ copy = false;
}
- else if ( serviceIDfound )
- break; // sind nach serviceID und startzeit sortiert -> nicht weiter suchen
+ else if(search == 2) {
+ std::string eText = (*e)->getText();
+ std::transform(eText.begin(), eText.end(), eText.begin(), tolower);
+ if(eText.find(search_text) == std::string::npos)
+ copy = false;
+ }
+ else if(search == 3) {
+ std::string eExtendedText = (*e)->getExtendedText();
+ std::transform(eExtendedText.begin(), eExtendedText.end(), eExtendedText.begin(), tolower);
+ if(eExtendedText.find(search_text) == std::string::npos)
+ copy = false;
+ }
+
+ if(copy) {
+ for (SItimes::iterator t = (*e)->times.begin(); t != (*e)->times.end(); ++t)
+ {
+ CChannelEvent aEvent;
+ aEvent.eventID = (*e)->uniqueKey();
+ aEvent.startTime = t->startzeit;
+ aEvent.duration = t->dauer;
+ aEvent.description = (*e)->getName();
+ if (((*e)->getText()).empty())
+ aEvent.text = (*e)->getExtendedText().substr(0, 120);
+ else
+ aEvent.text = (*e)->getText();
+ aEvent.channelID = serviceUniqueKey;
+ eList.push_back(aEvent);
+ }
+ } // if = serviceID
}
- unlockEvents();
+ else if ( serviceIDfound )
+ break; // sind nach serviceID und startzeit sortiert -> nicht weiter suchen
}
+ unlockEvents();
}
/* send back the current and next event for the channel id passed to it
@@ -2242,7 +2233,7 @@ void sectionsd_getEventsServiceKey(t_channel_id serviceUniqueKey, CChannelEventL
* TODO: the handling of "flag" should be vastly simplified.
*/
/* was: commandCurrentNextInfoChannelID */
-void sectionsd_getCurrentNextServiceKey(t_channel_id uniqueServiceKey, CSectionsdClient::responseGetCurrentNextInfoChannelID& current_next )
+void CEitManager::getCurrentNextServiceKey(t_channel_id uniqueServiceKey, CSectionsdClient::responseGetCurrentNextInfoChannelID& current_next )
{
dprintf("[sectionsd] Request of current/next information for " PRINTF_CHANNEL_ID_TYPE "\n", uniqueServiceKey);
@@ -2252,7 +2243,7 @@ void sectionsd_getCurrentNextServiceKey(t_channel_id uniqueServiceKey, CSections
/* ugly hack: retry fetching current/next by restarting dmxCN if this is true */
//bool change = false;//TODO remove ?
- //t_channel_id * uniqueServiceKey = (t_channel_id *)data;
+ uniqueServiceKey &= 0xFFFFFFFFFFFFULL;
readLockEvents();
/* if the currently running program is requested... */
@@ -2434,7 +2425,7 @@ void sectionsd_getCurrentNextServiceKey(t_channel_id uniqueServiceKey, CSections
}
/* commandEPGepgIDshort */
-bool sectionsd_getEPGidShort(event_id_t epgID, CShortEPGData * epgdata)
+bool CEitManager::getEPGidShort(event_id_t epgID, CShortEPGData * epgdata)
{
bool ret = false;
dprintf("Request of current EPG for 0x%llx\n", epgID);
@@ -2459,7 +2450,7 @@ bool sectionsd_getEPGidShort(event_id_t epgID, CShortEPGData * epgdata)
/*was getEPGid commandEPGepgID(int connfd, char *data, const unsigned dataLength) */
/* TODO item / itemDescription */
-bool sectionsd_getEPGid(const event_id_t epgID, const time_t startzeit, CEPGData * epgdata)
+bool CEitManager::getEPGid(const event_id_t epgID, const time_t startzeit, CEPGData * epgdata)
{
bool ret = false;
dprintf("Request of actual EPG for 0x%llx 0x%lx\n", epgID, startzeit);
@@ -2503,14 +2494,15 @@ bool sectionsd_getEPGid(const event_id_t epgID, const time_t startzeit, CEPGData
return ret;
}
/* was commandActualEPGchannelID(int connfd, char *data, const unsigned dataLength) */
-bool sectionsd_getActualEPGServiceKey(const t_channel_id uniqueServiceKey, CEPGData * epgdata)
+bool CEitManager::getActualEPGServiceKey(const t_channel_id channel_id, CEPGData * epgdata)
{
bool ret = false;
SIevent evt;
SItime zeit(0, 0);
- dprintf("[commandActualEPGchannelID] Request of current EPG for " PRINTF_CHANNEL_ID_TYPE "\n", uniqueServiceKey);
+ dprintf("[commandActualEPGchannelID] Request of current EPG for " PRINTF_CHANNEL_ID_TYPE "\n", channel_id);
+ t_channel_id uniqueServiceKey = channel_id & 0xFFFFFFFFFFFFULL;
readLockEvents();
if (uniqueServiceKey == messaging_current_servicekey) {
if (myCurrentEvent) {
@@ -2566,23 +2558,20 @@ bool channel_in_requested_list(t_channel_id * clist, t_channel_id chid, int len)
{
if(len == 0) return true;
for(int i = 0; i < len; i++) {
- if(clist[i] == chid)
+ if((clist[i] & 0xFFFFFFFFFFFFULL) == chid)
return true;
}
return false;
}
/* was static void sendEventList(int connfd, const unsigned char serviceTyp1, const unsigned char serviceTyp2 = 0, int sendServiceName = 1, t_channel_id * chidlist = NULL, int clen = 0) */
-void sectionsd_getChannelEvents(CChannelEventList &eList, const bool tv_mode = true, t_channel_id *chidlist = NULL, int clen = 0)
+void CEitManager::getChannelEvents(CChannelEventList &eList, t_channel_id *chidlist, int clen)
{
- clen = clen / sizeof(t_channel_id);
-
t_channel_id uniqueNow = 0;
t_channel_id uniqueOld = 0;
bool found_already = true;
time_t azeit = time(NULL);
- if(tv_mode) {}
showProfiling("sectionsd_getChannelEvents start");
readLockEvents();
@@ -2632,7 +2621,7 @@ showProfiling("sectionsd_getChannelEvents end");
}
/*was static void commandComponentTagsUniqueKey(int connfd, char *data, const unsigned dataLength) */
-bool sectionsd_getComponentTagsUniqueKey(const event_id_t uniqueKey, CSectionsdClient::ComponentTagList& tags)
+bool CEitManager::getComponentTagsUniqueKey(const event_id_t uniqueKey, CSectionsdClient::ComponentTagList& tags)
{
bool ret = false;
dprintf("Request of ComponentTags for 0x%llx\n", uniqueKey);
@@ -2662,7 +2651,7 @@ bool sectionsd_getComponentTagsUniqueKey(const event_id_t uniqueKey, CSectionsdC
}
/* was static void commandLinkageDescriptorsUniqueKey(int connfd, char *data, const unsigned dataLength) */
-bool sectionsd_getLinkageDescriptorsUniqueKey(const event_id_t uniqueKey, CSectionsdClient::LinkageDescriptorList& descriptors)
+bool CEitManager::getLinkageDescriptorsUniqueKey(const event_id_t uniqueKey, CSectionsdClient::LinkageDescriptorList& descriptors)
{
bool ret = false;
dprintf("Request of LinkageDescriptors for 0x%llx\n", uniqueKey);
@@ -2693,11 +2682,12 @@ bool sectionsd_getLinkageDescriptorsUniqueKey(const event_id_t uniqueKey, CSecti
}
/* was static void commandTimesNVODservice(int connfd, char *data, const unsigned dataLength) */
-bool sectionsd_getNVODTimesServiceKey(const t_channel_id uniqueServiceKey, CSectionsdClient::NVODTimesList& nvod_list)
+bool CEitManager::getNVODTimesServiceKey(const t_channel_id channel_id, CSectionsdClient::NVODTimesList& nvod_list)
{
bool ret = false;
- dprintf("Request of NVOD times for " PRINTF_CHANNEL_ID_TYPE "\n", uniqueServiceKey);
+ dprintf("Request of NVOD times for " PRINTF_CHANNEL_ID_TYPE "\n", channel_id);
+ t_channel_id uniqueServiceKey = channel_id & 0xFFFFFFFFFFFFULL;
nvod_list.clear();
readLockServices();
@@ -2732,17 +2722,8 @@ bool sectionsd_getNVODTimesServiceKey(const t_channel_id uniqueServiceKey, CSect
return ret;
}
-void sectionsd_setPrivatePid(unsigned short /*pid*/)
-{
-}
-
-void sectionsd_set_languages(const std::vector& newLanguages)
+void CEitManager::setLanguages(const std::vector& newLanguages)
{
SIlanguage::setLanguages(newLanguages);
SIlanguage::saveLanguages();
}
-
-bool sectionsd_isReady(void)
-{
- return sectionsd_ready;
-}
diff --git a/src/eitd/sectionsd.h b/src/eitd/sectionsd.h
index b0db88026..2181502f6 100644
--- a/src/eitd/sectionsd.h
+++ b/src/eitd/sectionsd.h
@@ -32,13 +32,6 @@
#include
#include
#include
-#include "dmx.h"
-
-//#include "SIutils.hpp"
-//#include "SIservices.hpp"
-//#include "SIevents.hpp"
-//#include "SIsections.hpp"
-//#include "SIlanguage.hpp"
class CEitManager : public OpenThreads::Thread, public OpenThreads::Mutex
{
@@ -61,6 +54,17 @@ class CEitManager : public OpenThreads::Thread, public OpenThreads::Mutex
bool Start();
bool Stop();
void SetConfig(CSectionsdClient::epg_config &cfg) { config = cfg; };
+
+ void getEventsServiceKey(t_channel_id serviceUniqueKey, CChannelEventList &eList, char search = 0, std::string search_text = "");
+ void getCurrentNextServiceKey(t_channel_id uniqueServiceKey, CSectionsdClient::responseGetCurrentNextInfoChannelID& current_next );
+ bool getEPGidShort(event_id_t epgID, CShortEPGData * epgdata);
+ bool getEPGid(const event_id_t epgID, const time_t startzeit, CEPGData * epgdata);
+ bool getActualEPGServiceKey(const t_channel_id uniqueServiceKey, CEPGData * epgdata);
+ void getChannelEvents(CChannelEventList &eList, t_channel_id *chidlist = NULL, int clen = 0);
+ bool getComponentTagsUniqueKey(const event_id_t uniqueKey, CSectionsdClient::ComponentTagList& tags);
+ bool getLinkageDescriptorsUniqueKey(const event_id_t uniqueKey, CSectionsdClient::LinkageDescriptorList& descriptors);
+ bool getNVODTimesServiceKey(const t_channel_id uniqueServiceKey, CSectionsdClient::NVODTimesList& nvod_list);
+ void setLanguages(const std::vector& newLanguages);
};
#endif
diff --git a/src/gui/audio_select.cpp b/src/gui/audio_select.cpp
index e75e74742..cabf99de6 100644
--- a/src/gui/audio_select.cpp
+++ b/src/gui/audio_select.cpp
@@ -40,13 +40,15 @@
#include
#include
#include
+#include
+#include
extern CRemoteControl * g_RemoteControl; /* neutrino.cpp */
extern CAudioSetupNotifier * audioSetupNotifier;
#include
-#include "libdvbsub/dvbsub.h"
-#include "libtuxtxt/teletext.h"
+#include
+#include
//
// -- AUDIO Selector Menue Handler Class
@@ -83,7 +85,7 @@ int CAudioSelectMenuHandler::exec(CMenuTarget* parent, const std::string &action
return menu_return::RETURN_EXIT;
}
- if (parent)
+ if (parent)
parent->hide();
return doMenu ();
@@ -94,7 +96,7 @@ int CAudioSelectMenuHandler::doMenu ()
CMenuWidget AudioSelector(LOCALE_AUDIOSELECTMENUE_HEAD, NEUTRINO_ICON_AUDIO, width);
CSubtitleChangeExec SubtitleChanger;
-
+
//show cancel button if configured in usermenu settings
if (g_settings.personalize[SNeutrinoSettings::P_UMENU_SHOW_CANCEL])
AudioSelector.addIntroItems(NONEXISTANT_LOCALE, NONEXISTANT_LOCALE, CMenuWidget::BTN_TYPE_CANCEL);
@@ -103,34 +105,31 @@ int CAudioSelectMenuHandler::doMenu ()
unsigned int shortcut_num = 1;
+ uint p_count = g_RemoteControl->current_PIDs.APIDs.size();
// -- setup menue due to Audio PIDs
- if (g_RemoteControl->current_PIDs.APIDs.size() > 1)
+ for( uint i=0; i < p_count; i++ )
{
- uint p_count = g_RemoteControl->current_PIDs.APIDs.size();
- CMenuForwarderNonLocalized* fw[p_count];
-
- for( uint i=0; i < p_count; i++ )
- {
- char apid[5];
- sprintf(apid, "%d", i);
- fw[i] = new CMenuForwarderNonLocalized(g_RemoteControl->current_PIDs.APIDs[i].desc, true, NULL, this, apid, CRCInput::convertDigitToKey(i + 1));
- fw[i]->setItemButton(NEUTRINO_ICON_BUTTON_OKAY, true);
- AudioSelector.addItem(fw[i], (i == g_RemoteControl->current_PIDs.PIDs.selected_apid));
- shortcut_num = i+1;
- }
- AudioSelector.addItem(GenericMenuSeparatorLine);
+ char apid[5];
+ sprintf(apid, "%d", i);
+ CMenuForwarderNonLocalized *fw = new CMenuForwarderNonLocalized(g_RemoteControl->current_PIDs.APIDs[i].desc,
+ true, NULL, this, apid, CRCInput::convertDigitToKey(i + 1));
+ fw->setItemButton(NEUTRINO_ICON_BUTTON_OKAY, true);
+ AudioSelector.addItem(fw, (i == g_RemoteControl->current_PIDs.PIDs.selected_apid));
+ shortcut_num = i+1;
}
-
+ if (p_count)
+ AudioSelector.addItem(GenericMenuSeparatorLine);
+
// -- setup menue for to Dual Channel Stereo
CMenuOptionChooser* oj = new CMenuOptionChooser(LOCALE_AUDIOMENU_ANALOG_MODE,
- &g_settings.audio_AnalogMode,
- AUDIOMENU_ANALOGOUT_OPTIONS, AUDIOMENU_ANALOGOUT_OPTION_COUNT,
+ &g_settings.audio_AnalogMode,
+ AUDIOMENU_ANALOGOUT_OPTIONS, AUDIOMENU_ANALOGOUT_OPTION_COUNT,
true, audioSetupNotifier, CRCInput::RC_red, NEUTRINO_ICON_BUTTON_RED);
AudioSelector.addItem( oj );
oj = new CMenuOptionChooser(LOCALE_AUDIOMENU_ANALOG_OUT, &g_settings.analog_out,
- OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT,
+ OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT,
true, audioSetupNotifier, CRCInput::RC_green, NEUTRINO_ICON_BUTTON_GREEN);
AudioSelector.addItem( oj );
@@ -140,15 +139,15 @@ int CAudioSelectMenuHandler::doMenu ()
CZapitChannel * cc = channelList->getChannel(curnum);
bool sep_added = false;
- if(cc)
+ if(cc)
{
- for (int i = 0 ; i < (int)cc->getSubtitleCount() ; ++i)
+ for (int i = 0 ; i < (int)cc->getSubtitleCount() ; ++i)
{
CZapitAbsSub* s = cc->getChannelSub(i);
if (s->thisSubType == CZapitAbsSub::DVB) {
CZapitDVBSub* sd = reinterpret_cast(s);
printf("[neutrino] adding DVB subtitle %s pid %x\n", sd->ISO639_language_code.c_str(), sd->pId);
- if(!sep_added)
+ if(!sep_added)
{
sep_added = true;
AudioSelector.addItem(new CMenuSeparator(CMenuSeparator::LINE | CMenuSeparator::STRING, LOCALE_SUBTITLES_HEAD));
@@ -160,11 +159,11 @@ int CAudioSelectMenuHandler::doMenu ()
AudioSelector.addItem(new CMenuForwarderNonLocalized(item /*sd->ISO639_language_code.c_str()*/,
sd->pId != dvbsub_getpid(), NULL, &SubtitleChanger, spid, CRCInput::convertDigitToKey(++shortcut_num)));
}
- if (s->thisSubType == CZapitAbsSub::TTX)
+ if (s->thisSubType == CZapitAbsSub::TTX)
{
CZapitTTXSub* sd = reinterpret_cast(s);
printf("[neutrino] adding TTX subtitle %s pid %x mag %X page %x\n", sd->ISO639_language_code.c_str(), sd->pId, sd->teletext_magazine_number, sd->teletext_page_number);
- if(!sep_added)
+ if(!sep_added)
{
sep_added = true;
AudioSelector.addItem(new CMenuSeparator(CMenuSeparator::LINE | CMenuSeparator::STRING, LOCALE_SUBTITLES_HEAD));
@@ -172,17 +171,31 @@ int CAudioSelectMenuHandler::doMenu ()
char spid[64];
int page = ((sd->teletext_magazine_number & 0xFF) << 8) | sd->teletext_page_number;
int pid = sd->pId;
- snprintf(spid,sizeof(spid), "TTX:%d:%03X:%s", sd->pId, page, sd->ISO639_language_code.c_str());
+ snprintf(spid,sizeof(spid), "TTX:%d:%03X:%s", sd->pId, page, sd->ISO639_language_code.c_str());
char item[64];
snprintf(item,sizeof(item), "TTX: %s (pid %x page %03X)", sd->ISO639_language_code.c_str(), sd->pId, page);
AudioSelector.addItem(new CMenuForwarderNonLocalized(item /*sd->ISO639_language_code.c_str()*/,
!tuxtx_subtitle_running(&pid, &page, NULL), NULL, &SubtitleChanger, spid, CRCInput::convertDigitToKey(++shortcut_num)));
}
}
-
- if(sep_added)
+
+ if(sep_added)
AudioSelector.addItem(new CMenuForwarder(LOCALE_SUBTITLES_STOP, true, NULL, &SubtitleChanger, "off", CRCInput::RC_stop));
}
+ AudioSelector.addItem(new CMenuSeparator(CMenuSeparator::LINE | CMenuSeparator::STRING, LOCALE_AUDIOMENU_VOLUME_ADJUST));
+
+ /* setting volume percent to zapit with channel_id/apid = 0 means current channel and pid */
+ CVolume::getInstance()->SetCurrentChannel(0);
+ CVolume::getInstance()->SetCurrentPid(0);
+ int percent[p_count];
+ for (uint i=0; i < p_count; i++) {
+ percent[i] = CZapit::getInstance()->GetPidVolume(0, g_RemoteControl->current_PIDs.APIDs[i].pid);
+ AudioSelector.addItem(new CMenuOptionNumberChooser(NONEXISTANT_LOCALE, &percent[i],
+ i == g_RemoteControl->current_PIDs.PIDs.selected_apid,
+ 0, 999, CVolume::getInstance(), 0, 0, NONEXISTANT_LOCALE,
+ g_RemoteControl->current_PIDs.APIDs[i].desc));
+ }
+
return AudioSelector.exec(NULL, "");
}
diff --git a/src/gui/audio_setup.cpp b/src/gui/audio_setup.cpp
index 4cf8ee6a5..ec407188b 100644
--- a/src/gui/audio_setup.cpp
+++ b/src/gui/audio_setup.cpp
@@ -33,7 +33,7 @@
#endif
-#include "gui/audio_setup.h"
+#include "audio_setup.h"
#include
#include
diff --git a/src/gui/audioplayer.cpp b/src/gui/audioplayer.cpp
index 60359eb71..c16d70b09 100644
--- a/src/gui/audioplayer.cpp
+++ b/src/gui/audioplayer.cpp
@@ -60,14 +60,13 @@
#include
#include
-#include
#include
#include
#include
#include
#include
-#include
+#include
#include
#include
@@ -145,7 +144,7 @@ void CAudiofileExt::operator=(const CAudiofileExt& src)
#include
#include
-#ifndef NEW_LIBCURL
+#if LIBCURL_VERSION_NUM < 0x071507
#include
#endif
@@ -319,7 +318,7 @@ int CAudioPlayerGui::exec(CMenuTarget* parent, const std::string &actionKey)
g_Sectionsd->setPauseScanning(true);
puts("[audioplayer.cpp] executing " AUDIOPLAYER_START_SCRIPT ".");
- if (system(AUDIOPLAYER_START_SCRIPT) != 0)
+ if (my_system(AUDIOPLAYER_START_SCRIPT) != 0)
perror("Datei " AUDIOPLAYER_START_SCRIPT " fehlt.Bitte erstellen, wenn gebraucht.\nFile " AUDIOPLAYER_START_SCRIPT " not found. Please create if needed.\n");
show();
@@ -331,7 +330,7 @@ int CAudioPlayerGui::exec(CMenuTarget* parent, const std::string &actionKey)
m_frameBuffer->paintBackground();
puts("[audioplayer.cpp] executing " AUDIOPLAYER_END_SCRIPT ".");
- if (system(AUDIOPLAYER_END_SCRIPT) != 0)
+ if (my_system(AUDIOPLAYER_END_SCRIPT) != 0)
perror("Datei " AUDIOPLAYER_END_SCRIPT " fehlt. Bitte erstellen, wenn gebraucht.\nFile " AUDIOPLAYER_END_SCRIPT " not found. Please create if needed.\n");
g_Zapit->unlockPlayBack();
diff --git a/src/gui/audioplayer.h b/src/gui/audioplayer.h
index 07a6c6fc5..92ff2a2bb 100644
--- a/src/gui/audioplayer.h
+++ b/src/gui/audioplayer.h
@@ -34,11 +34,11 @@
#define __audioplayergui__
-#include "driver/framebuffer.h"
-#include "driver/audiofile.h"
-#include "gui/filebrowser.h"
-#include "gui/widget/components.h"
-#include "gui/widget/menue.h"
+#include
+#include
+#include
+#include
+#include
#include
diff --git a/src/gui/audioplayer_setup.cpp b/src/gui/audioplayer_setup.cpp
index 4dea21a80..5ebee8d9a 100644
--- a/src/gui/audioplayer_setup.cpp
+++ b/src/gui/audioplayer_setup.cpp
@@ -34,7 +34,7 @@
#endif
-#include "gui/audioplayer_setup.h"
+#include "audioplayer_setup.h"
#include
#include
@@ -44,8 +44,8 @@
#include
#include
-#include "gui/audioplayer.h"
-#include "gui/filebrowser.h"
+#include
+#include
#include
diff --git a/src/gui/bedit/bouqueteditor_bouquets.cpp b/src/gui/bedit/bouqueteditor_bouquets.cpp
index 6cfb749f6..157723695 100644
--- a/src/gui/bedit/bouqueteditor_bouquets.cpp
+++ b/src/gui/bedit/bouqueteditor_bouquets.cpp
@@ -35,19 +35,17 @@
#include
#include
+#include "bouqueteditor_channels.h"
+#include "bouqueteditor_bouquets.h"
#include
#include
#include
#include
-#include
#include
#include
-#include
#include
-#include "bouqueteditor_channels.h"
-#include "bouqueteditor_bouquets.h"
extern CBouquetManager *g_bouquetManager;
CBEBouquetWidget::CBEBouquetWidget()
diff --git a/src/gui/bedit/bouqueteditor_channels.cpp b/src/gui/bedit/bouqueteditor_channels.cpp
index 00fa4d5e0..86cf9a28d 100644
--- a/src/gui/bedit/bouqueteditor_channels.cpp
+++ b/src/gui/bedit/bouqueteditor_channels.cpp
@@ -35,10 +35,7 @@
#include
#endif
-#include
-#include
#include
-
#include "bouqueteditor_channels.h"
#include
@@ -53,7 +50,6 @@
#include
#include
-#include
extern CBouquetManager *g_bouquetManager;
CBEChannelWidget::CBEChannelWidget(const std::string & Caption, unsigned int Bouquet)
diff --git a/src/gui/bedit/bouqueteditor_chanselect.cpp b/src/gui/bedit/bouqueteditor_chanselect.cpp
index e2f787e44..9eadfe56c 100644
--- a/src/gui/bedit/bouqueteditor_chanselect.cpp
+++ b/src/gui/bedit/bouqueteditor_chanselect.cpp
@@ -35,17 +35,16 @@
#include
#include
+#include "bouqueteditor_chanselect.h"
#include
#include
#include
#include
-#include
#include
#include
-#include "bouqueteditor_chanselect.h"
extern CBouquetManager *g_bouquetManager;
diff --git a/src/gui/bookmarkmanager.cpp b/src/gui/bookmarkmanager.cpp
index d7f81a167..4da3d7427 100644
--- a/src/gui/bookmarkmanager.cpp
+++ b/src/gui/bookmarkmanager.cpp
@@ -43,7 +43,6 @@
#include
#include
-#include
#include
#include
#include
diff --git a/src/gui/bouquetlist.cpp b/src/gui/bouquetlist.cpp
index c433ffad4..009885b51 100644
--- a/src/gui/bouquetlist.cpp
+++ b/src/gui/bouquetlist.cpp
@@ -33,7 +33,6 @@
#include
#endif
-#include
#include
#include
@@ -353,7 +352,8 @@ int CBouquetList::show(bool bShowChannelList)
loop = false;
}
else if ((msg == CRCInput::RC_timeout ) ||
- (msg == (neutrino_msg_t)g_settings.key_channelList_cancel))
+ (msg == (neutrino_msg_t)g_settings.key_channelList_cancel) ||
+ (msg == CRCInput::RC_favorites) )
{
selected = oldselected;
if(fader.StartFadeOut()) {
diff --git a/src/gui/cam_menu.cpp b/src/gui/cam_menu.cpp
index ae836ced5..6da597a76 100644
--- a/src/gui/cam_menu.cpp
+++ b/src/gui/cam_menu.cpp
@@ -22,6 +22,7 @@
#ifdef HAVE_CONFIG_H
#include
#endif
+#include "cam_menu.h"
#include
#include
@@ -31,25 +32,21 @@
#include
#include
#include
-#include
#include
#include
#include
#include
#include
-#include
-#include "gui/widget/menue.h"
-#include "gui/widget/stringinput.h"
-#include "gui/widget/messagebox.h"
-#include "gui/widget/hintbox.h"
-#include "gui/widget/progresswindow.h"
+#include "widget/icons.h"
+#include "widget/stringinput.h"
+#include "widget/messagebox.h"
+#include "widget/progresswindow.h"
-#include "system/setting_helpers.h"
-#include "system/settings.h"
-#include "system/debug.h"
+#include
+#include
+#include
-#include
#include
#include
diff --git a/src/gui/cec_setup.cpp b/src/gui/cec_setup.cpp
index 605fa262b..edc861b6b 100644
--- a/src/gui/cec_setup.cpp
+++ b/src/gui/cec_setup.cpp
@@ -31,7 +31,7 @@
#endif
-#include "gui/cec_setup.h"
+#include "cec_setup.h"
#include
#include
diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp
index 06f6226e1..f7c8b1d57 100644
--- a/src/gui/channellist.cpp
+++ b/src/gui/channellist.cpp
@@ -50,16 +50,14 @@
#include
#include
#include
+#include
#include
#include
-#include
#include
#include
#include
-#include
#include
-#include
#include
#include
@@ -73,6 +71,8 @@
#include
#include
+#include
+
extern CBouquetList * bouquetList; /* neutrino.cpp */
extern CRemoteControl * g_RemoteControl; /* neutrino.cpp */
extern CPictureViewer * g_PicViewer;
@@ -88,10 +88,6 @@ extern CBouquetList * RADIOallList;
extern bool autoshift;
extern CBouquetManager *g_bouquetManager;
-void sectionsd_getChannelEvents(CChannelEventList &eList, const bool tv_mode, t_channel_id *chidlist, int clen);
-void sectionsd_getEventsServiceKey(t_channel_id serviceUniqueKey, CChannelEventList &eList, char search = 0, std::string search_text = "");
-void sectionsd_getCurrentNextServiceKey(t_channel_id uniqueServiceKey, CSectionsdClient::responseGetCurrentNextInfoChannelID& current_next );
-
extern int old_b_id;
CChannelList::CChannelList(const char * const pName, bool phistoryMode, bool _vlist, bool )
@@ -175,7 +171,7 @@ void CChannelList::updateEvents(unsigned int from, unsigned int to)
unsigned int count;
for (count = from; count < to; count++) {
events.clear();
- sectionsd_getEventsServiceKey(chanlist[count]->channel_id, events);
+ CEitManager::getInstance()->getEventsServiceKey(chanlist[count]->channel_id, events);
chanlist[count]->nextEvent.startTime = (long)0x7fffffff;
for ( CChannelEventList::iterator e= events.begin(); e != events.end(); ++e ) {
if ((long)e->startTime > atime &&
@@ -188,17 +184,16 @@ void CChannelList::updateEvents(unsigned int from, unsigned int to)
}
} else {
t_channel_id *p_requested_channels;
- int size_requested_channels = chanlist_size * sizeof(t_channel_id);
- p_requested_channels = new t_channel_id[size_requested_channels];
+ p_requested_channels = new t_channel_id[chanlist_size];
if (! p_requested_channels) {
fprintf(stderr,"%s:%d allocation failed!\n", __FUNCTION__, __LINE__);
return;
}
- for (uint32_t count = 0; count < chanlist_size; count++) {
- p_requested_channels[count] = chanlist[count + from]->channel_id&0xFFFFFFFFFFFFULL;
- }
+ for (uint32_t count = 0; count < chanlist_size; count++)
+ p_requested_channels[count] = chanlist[count + from]->channel_id;
+
CChannelEventList levents;
- sectionsd_getChannelEvents(levents, (CNeutrinoApp::getInstance()->getMode()) != NeutrinoMessages::mode_radio, p_requested_channels, size_requested_channels);
+ CEitManager::getInstance()->getChannelEvents(levents, p_requested_channels, chanlist_size);
for (uint32_t count=0; count < chanlist_size; count++) {
chanlist[count]->currentEvent = CChannelEvent();
for (CChannelEventList::iterator e = levents.begin(); e != levents.end(); ++e) {
@@ -1544,7 +1539,7 @@ void CChannelList::paintDetails(int index)
char buf[128] = {0};
char cFrom[50] = {0}; // UTF-8
CSectionsdClient::CurrentNextInfo CurrentNext;
- sectionsd_getCurrentNextServiceKey(chanlist[index]->channel_id & 0xFFFFFFFFFFFFULL, CurrentNext);
+ CEitManager::getInstance()->getCurrentNextServiceKey(chanlist[index]->channel_id, CurrentNext);
if (!CurrentNext.next_name.empty()) {
struct tm *pStartZeit = localtime (& CurrentNext.next_zeit.startzeit);
snprintf(cFrom, sizeof(cFrom), "%s %02d:%02d",g_Locale->getText(LOCALE_WORD_FROM),pStartZeit->tm_hour, pStartZeit->tm_min );
@@ -1574,7 +1569,7 @@ void CChannelList::paintItem2DetailsLine (int pos, int /*ch_index*/)
fb_pixel_t col1 = COL_MENUCONTENT_PLUS_6;
// Clear
- frameBuffer->paintBackgroundBoxRel(xpos,y, ConnectLineBox_Width, height+info_height);
+ frameBuffer->paintBackgroundBoxRel(xpos,y, ConnectLineBox_Width, height+info_height + 1);
// paint Line if detail info (and not valid list pos)
if (pos >= 0) { //pos >= 0 && chanlist[ch_index]->currentEvent.description != "") {
diff --git a/src/gui/dboxinfo.cpp b/src/gui/dboxinfo.cpp
index 1f66372f8..e00db49e7 100644
--- a/src/gui/dboxinfo.cpp
+++ b/src/gui/dboxinfo.cpp
@@ -52,6 +52,7 @@
#include
#include
+#include
static const int FSHIFT = 16; /* nr of bits of precision */
#define FIXED_1 (1<addTimer(5*1000*1000, false);
while (doLoop)
{
@@ -103,6 +105,9 @@ int CDBoxInfoWidget::exec(CMenuTarget* parent, const std::string &)
if(fader.Fade())
doLoop = false;
}
+ else if((msg == NeutrinoMessages::EVT_TIMER) && (data == updateTimer)) {
+ paint();
+ }
else if ( ( msg == CRCInput::RC_timeout ) ||
( msg == CRCInput::RC_home ) ||
( msg == CRCInput::RC_ok ) ) {
@@ -143,6 +148,7 @@ int CDBoxInfoWidget::exec(CMenuTarget* parent, const std::string &)
hide();
fader.Stop();
+ g_RCInput->killTimer(updateTimer);
return res;
}
@@ -371,8 +377,12 @@ void CDBoxInfoWidget::paint()
uint64_t bytes_free;
if (memory_flag)
{
- bytes_total = info.totalram;
- bytes_free = info.freeram;
+ //bytes_total = info.totalram;
+ //bytes_free = info.freeram;
+ unsigned long t, f;
+ get_mem_usage(t, f);
+ bytes_total = t*1024;
+ bytes_free = f*1024;
}
else
{
diff --git a/src/gui/epgplus.cpp b/src/gui/epgplus.cpp
index 35bbcaca7..386285bcf 100644
--- a/src/gui/epgplus.cpp
+++ b/src/gui/epgplus.cpp
@@ -45,6 +45,7 @@
#include
#include
#include
+#include
#include
#include
@@ -290,7 +291,6 @@ bool EpgPlus::ChannelEventEntry::isSelected (time_t selectedTime) const
return (selectedTime >= this->channelEvent.startTime) && (selectedTime < this->channelEvent.startTime + time_t (this->channelEvent.duration));
}
-bool sectionsd_getEPGidShort(event_id_t epgID, CShortEPGData * epgdata);
void EpgPlus::ChannelEventEntry::paint (bool pisSelected, bool toggleColor)
{
this->frameBuffer->paintBoxRel (this->x, this->y, this->width, this->font->getHeight()
@@ -315,7 +315,8 @@ void EpgPlus::ChannelEventEntry::paint (bool pisSelected, bool toggleColor)
CShortEPGData shortEpgData;
- this->footer->paintEventDetails (this->channelEvent.description, sectionsd_getEPGidShort(this->channelEvent.eventID, &shortEpgData) ? shortEpgData.info1 : "");
+ bool ret = CEitManager::getInstance()->getEPGidShort(this->channelEvent.eventID, &shortEpgData);
+ this->footer->paintEventDetails (this->channelEvent.description, ret ? shortEpgData.info1 : "");
this->timeLine->paintGrid();
}
@@ -522,8 +523,6 @@ EpgPlus::~EpgPlus()
this->free();
}
-void sectionsd_getEventsServiceKey(t_channel_id serviceUniqueKey, CChannelEventList &eList, char search = 0, std::string search_text = "");
-
void EpgPlus::createChannelEntries (int selectedChannelEntryIndex)
{
for (TChannelEntries::iterator It = this->displayedChannelEntries.begin();
@@ -557,9 +556,8 @@ void EpgPlus::createChannelEntries (int selectedChannelEntryIndex)
ChannelEntry *channelEntry = new ChannelEntry (channel, i, this->frameBuffer, this->footer, this->bouquetList, this->channelsTableX + 2, yPosChannelEntry, this->channelsTableWidth);
//printf("Going to get getEventsServiceKey for %llx\n", (channel->channel_id & 0xFFFFFFFFFFFFULL));
- //CChannelEventList channelEventList = g_Sectionsd->getEventsServiceKey (channel->channel->channel_id & 0xFFFFFFFFFFFFULL);
CChannelEventList channelEventList;
- sectionsd_getEventsServiceKey(channel->channel_id, channelEventList);
+ CEitManager::getInstance()->getEventsServiceKey(channel->channel_id, channelEventList);
//printf("channelEventList size %d\n", channelEventList.size());
int xPosEventEntry = this->eventsTableX;
diff --git a/src/gui/epgplus.h b/src/gui/epgplus.h
index 45adfb0ae..b03aed939 100644
--- a/src/gui/epgplus.h
+++ b/src/gui/epgplus.h
@@ -35,7 +35,6 @@
#include
#include
-#include
#include
#include "color.h"
diff --git a/src/gui/epgview.cpp b/src/gui/epgview.cpp
index 40f6616be..919a869d1 100644
--- a/src/gui/epgview.cpp
+++ b/src/gui/epgview.cpp
@@ -55,6 +55,7 @@
#include
#include
+#include
extern CPictureViewer * g_PicViewer;
@@ -445,9 +446,6 @@ static bool sortByDateTime (const CChannelEvent& a, const CChannelEvent& b)
return a.startTime< b.startTime;
}
-//extern char recDir[255];
-void sectionsd_getEventsServiceKey(t_channel_id serviceUniqueKey, CChannelEventList &eList, char search = 0, std::string search_text = "");
-bool sectionsd_getComponentTagsUniqueKey(const event_id_t uniqueKey, CSectionsdClient::ComponentTagList& tags);
int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_startzeit, bool doLoop )
{
int res = menu_return::RETURN_REPAINT;
@@ -470,9 +468,7 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
}
bigFonts = g_settings.bigFonts;
start();
- //evtlist = g_Sectionsd->getEventsServiceKey(channel_id&0xFFFFFFFFFFFFULL);
- evtlist.clear();
- sectionsd_getEventsServiceKey(channel_id, evtlist);
+ CEitManager::getInstance()->getEventsServiceKey(channel_id, evtlist);
// Houdini added for Private Premiere EPG start sorted by start date/time 2005-08-15
sort(evtlist.begin(),evtlist.end(),sortByDateTime);
}
@@ -640,7 +636,7 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
int dummy_h,dummy_w;
frameBuffer->getIconSize(NEUTRINO_ICON_16_9_GREY, &dummy_w, &dummy_h);
if (dummy_h == 16 && dummy_w == 26){ // show only standard icon size
- if ( sectionsd_getComponentTagsUniqueKey( epgData.eventID, tags ) )
+ if (CEitManager::getInstance()->getComponentTagsUniqueKey( epgData.eventID, tags))
{
for (unsigned int i=0; i< tags.size(); i++)
{
@@ -941,9 +937,6 @@ void CEpgData::hide()
showTimerEventBar (false);
}
-bool sectionsd_getEPGid(const event_id_t epgID, const time_t startzeit, CEPGData * epgdata);
-bool sectionsd_getActualEPGServiceKey(const t_channel_id uniqueServiceKey, CEPGData * epgdata);
-
void CEpgData::GetEPGData(const t_channel_id channel_id, uint64_t id, time_t* startzeit, bool clear )
{
if(clear)
@@ -953,11 +946,9 @@ void CEpgData::GetEPGData(const t_channel_id channel_id, uint64_t id, time_t* st
bool res;
if ( id!= 0 )
- //res = g_Sectionsd->getEPGid( id, *startzeit, &epgData );
- res = sectionsd_getEPGid(id, *startzeit, &epgData);
+ res = CEitManager::getInstance()->getEPGid(id, *startzeit, &epgData);
else
- //res = g_Sectionsd->getActualEPGServiceKey(channel_id&0xFFFFFFFFFFFFULL, &epgData );
- res = sectionsd_getActualEPGServiceKey(channel_id&0xFFFFFFFFFFFFULL, &epgData );
+ res = CEitManager::getInstance()->getActualEPGServiceKey(channel_id, &epgData );
if ( res )
{
@@ -1057,7 +1048,6 @@ int CEpgData::FollowScreenings (const t_channel_id /*channel_id*/, const std::st
char tmpstr[256]={0};
screening_dates = screening_nodual = "";
- // alredy read: evtlist = g_Sectionsd->getEventsServiceKey( channel_id&0xFFFFFFFFFFFFULL );
for (e = followlist.begin(); e != followlist.end(); ++e)
{
diff --git a/src/gui/eventlist.cpp b/src/gui/eventlist.cpp
index 496f545cf..f0f2f5d21 100644
--- a/src/gui/eventlist.cpp
+++ b/src/gui/eventlist.cpp
@@ -48,7 +48,7 @@
#include "widget/hintbox.h"
#include "widget/buttons.h"
-#include "gui/bouquetlist.h"
+#include "bouquetlist.h"
#include
#include
@@ -57,6 +57,7 @@
#include
#include
#include
+#include
#include
@@ -65,10 +66,6 @@ extern CRemoteControl *g_RemoteControl; /* neutrino.cpp */
extern CPictureViewer * g_PicViewer;
-void sectionsd_getEventsServiceKey(t_channel_id serviceUniqueKey, CChannelEventList &eList, char search = 0, std::string search_text = "");
-bool sectionsd_getActualEPGServiceKey(const t_channel_id uniqueServiceKey, CEPGData * epgdata);
-bool sectionsd_getLinkageDescriptorsUniqueKey(const event_id_t uniqueKey, CSectionsdClient::LinkageDescriptorList& descriptors);
-
#if 0
// sort operators
bool sortById (const CChannelEvent& a, const CChannelEvent& b)
@@ -151,9 +148,7 @@ bool CNeutrinoEventList::HasTimerConflicts(time_t starttime, time_t duration, ev
void CNeutrinoEventList::readEvents(const t_channel_id channel_id)
{
- //evtlist = g_Sectionsd->getEventsServiceKey(channel_id &0xFFFFFFFFFFFFULL);
- evtlist.clear();
- sectionsd_getEventsServiceKey(channel_id , evtlist);
+ CEitManager::getInstance()->getEventsServiceKey(channel_id , evtlist);
time_t azeit=time(NULL);
CChannelEventList::iterator e;
@@ -161,14 +156,12 @@ void CNeutrinoEventList::readEvents(const t_channel_id channel_id)
CEPGData epgData;
// todo: what if there are more than one events in the Portal
- //if (g_Sectionsd->getActualEPGServiceKey(channel_id&0xFFFFFFFFFFFFULL, &epgData ))
- if (sectionsd_getActualEPGServiceKey(channel_id&0xFFFFFFFFFFFFULL, &epgData ))
+ if (CEitManager::getInstance()->getActualEPGServiceKey(channel_id, &epgData ))
{
// epgData.eventID;
// epgData.epg_times.startzeit;
CSectionsdClient::LinkageDescriptorList linkedServices;
- //if ( g_Sectionsd->getLinkageDescriptorsUniqueKey( epgData.eventID, linkedServices ) )
- if ( sectionsd_getLinkageDescriptorsUniqueKey( epgData.eventID, linkedServices ) )
+ if (CEitManager::getInstance()->getLinkageDescriptorsUniqueKey( epgData.eventID, linkedServices ) )
{
if ( linkedServices.size()> 1 )
{
@@ -193,9 +186,7 @@ void CNeutrinoEventList::readEvents(const t_channel_id channel_id)
// do not add parent events
if (channel_id != channel_id2) {
- //evtlist2 = g_Sectionsd->getEventsServiceKey(channel_id2);
- evtlist2.clear();
- sectionsd_getEventsServiceKey(channel_id2 , evtlist2);
+ CEitManager::getInstance()->getEventsServiceKey(channel_id2 , evtlist2);
for (unsigned int loop=0 ; loopgetEventsServiceKeySearchAdd(evtlist,m_search_channel_id & 0xFFFFFFFFFFFFULL,m_search_epg_item,m_search_keyword);
- sectionsd_getEventsServiceKey(m_search_channel_id, evtlist, m_search_epg_item,m_search_keyword);
+ CEitManager::getInstance()->getEventsServiceKey(m_search_channel_id, evtlist, m_search_epg_item,m_search_keyword);
}
else if(m_search_list == SEARCH_LIST_BOUQUET)
{
@@ -1035,8 +1026,7 @@ bool CNeutrinoEventList::findEvents(void)
for(int channel = 0; channel < channel_nr; channel++)
{
channel_id = bouquetList->Bouquets[m_search_bouquet_id]->channelList->getChannelFromIndex(channel)->channel_id;
- //g_Sectionsd->getEventsServiceKeySearchAdd(evtlist,channel_id & 0xFFFFFFFFFFFFULL,m_search_epg_item,m_search_keyword);
- sectionsd_getEventsServiceKey(channel_id, evtlist, m_search_epg_item,m_search_keyword);
+ CEitManager::getInstance()->getEventsServiceKey(channel_id, evtlist, m_search_epg_item,m_search_keyword);
}
}
else if(m_search_list == SEARCH_LIST_ALL)
@@ -1050,8 +1040,7 @@ bool CNeutrinoEventList::findEvents(void)
for(int channel = 0; channel < channel_nr; channel++)
{
channel_id = bouquetList->Bouquets[bouquet]->channelList->getChannelFromIndex(channel)->channel_id;
- //g_Sectionsd->getEventsServiceKeySearchAdd(evtlist,channel_id & 0xFFFFFFFFFFFFULL,m_search_epg_item,m_search_keyword);
- sectionsd_getEventsServiceKey(channel_id,evtlist, m_search_epg_item,m_search_keyword);
+ CEitManager::getInstance()->getEventsServiceKey(channel_id,evtlist, m_search_epg_item,m_search_keyword);
}
}
box.hide();
diff --git a/src/gui/filebrowser.cpp b/src/gui/filebrowser.cpp
index 9bfc94f0e..4e7f07f1f 100644
--- a/src/gui/filebrowser.cpp
+++ b/src/gui/filebrowser.cpp
@@ -58,10 +58,10 @@
#include
#include
-#ifndef NEW_LIBCURL
+#if LIBCURL_VERSION_NUM < 0x071507
#include
#endif
-
+#include
#include
#ifdef __USE_FILE_OFFSET64
diff --git a/src/gui/hdd_menu.cpp b/src/gui/hdd_menu.cpp
index 178c56192..88b618954 100644
--- a/src/gui/hdd_menu.cpp
+++ b/src/gui/hdd_menu.cpp
@@ -48,18 +48,18 @@
#include
#include
#include
+#include "hdd_menu.h"
#include
-#include "gui/widget/stringinput.h"
-#include "gui/widget/messagebox.h"
-#include "gui/widget/hintbox.h"
-#include "gui/widget/progresswindow.h"
+#include
+#include
+#include
+#include
-#include "system/setting_helpers.h"
-#include "system/settings.h"
-#include "system/debug.h"
+#include
+#include
+#include
-#include
#include
#include
diff --git a/src/gui/info_menue.cpp b/src/gui/info_menue.cpp
index ea5ffd0c7..bb8470a48 100644
--- a/src/gui/info_menue.cpp
+++ b/src/gui/info_menue.cpp
@@ -34,9 +34,9 @@
#include
#include
-#include "gui/info_menue.h"
-#include "gui/imageinfo.h"
-#include "gui/dboxinfo.h"
+#include
+#include