projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1f497d5
)
fix non working use of configured system language for epg language
author
Andreas Monzner
<andreas.monzner@multimedia-labs.de>
Sat, 13 Jan 2007 19:45:52 +0000
(19:45 +0000)
committer
Andreas Monzner
<andreas.monzner@multimedia-labs.de>
Sat, 13 Jan 2007 19:45:52 +0000
(19:45 +0000)
lib/python/enigma_python.i
patch
|
blob
|
history
lib/service/event.cpp
patch
|
blob
|
history
lib/service/event.h
patch
|
blob
|
history
lib/service/iservice.h
patch
|
blob
|
history
mytest.py
patch
|
blob
|
history
diff --git
a/lib/python/enigma_python.i
b/lib/python/enigma_python.i
index
a1bb5b2
..
8ee7fb3
100644
(file)
--- a/
lib/python/enigma_python.i
+++ b/
lib/python/enigma_python.i
@@
-43,9
+43,9
@@
is usually caused by not marking PSignals as immutable.
#include <lib/base/nconfig.h>
#include <lib/base/message.h>
#include <lib/driver/rc.h>
#include <lib/base/nconfig.h>
#include <lib/base/message.h>
#include <lib/driver/rc.h>
+#include <lib/service/event.h>
#include <lib/service/iservice.h>
#include <lib/service/service.h>
#include <lib/service/iservice.h>
#include <lib/service/service.h>
-#include <lib/service/event.h>
#include <lib/service/servicedvb.h>
#include <lib/gdi/fb.h>
#include <lib/gdi/font.h>
#include <lib/service/servicedvb.h>
#include <lib/gdi/fb.h>
#include <lib/gdi/font.h>
@@
-134,9
+134,9
@@
typedef long time_t;
%immutable eSocketNotifier::activated;
%include <lib/base/ebase.h>
%include <lib/base/smartptr.h>
%immutable eSocketNotifier::activated;
%include <lib/base/ebase.h>
%include <lib/base/smartptr.h>
+%include <lib/service/event.h>
%include <lib/service/iservice.h>
%include <lib/service/service.h>
%include <lib/service/iservice.h>
%include <lib/service/service.h>
-%include <lib/service/event.h>
// TODO: embed these...
%immutable eConsoleAppContainer::appClosed;
// TODO: embed these...
%immutable eConsoleAppContainer::appClosed;
diff --git
a/lib/service/event.cpp
b/lib/service/event.cpp
index
4dda577
..
aa8482a
100644
(file)
--- a/
lib/service/event.cpp
+++ b/
lib/service/event.cpp
@@
-72,7
+72,7
@@
std::string ISOtbl[MAX_LANG][2] =
bool eServiceEvent::loadLanguage(Event *evt, std::string lang, int tsidonid)
{
bool retval=0;
bool eServiceEvent::loadLanguage(Event *evt, std::string lang, int tsidonid)
{
bool retval=0;
- for (DescriptorConstIterator desc = evt->getDescriptors()->begin(); desc != evt->getDescriptors()->end(); ++desc)
+ for (DescriptorConstIterator desc = evt->getDescriptors()->begin(); desc != evt->getDescriptors()->end()
&& !retval
; ++desc)
{
switch ((*desc)->getTag())
{
{
switch ((*desc)->getTag())
{
@@
-270,4
+270,9
@@
RESULT eServiceEvent::getLinkageService(eServiceReference &service, eServiceRefe
return -1;
}
return -1;
}
+void setServiceEventLanguage(const std::string language)
+{
+ eServiceEvent::setEPGLanguage(language);
+}
+
DEFINE_REF(eDebugClass);
DEFINE_REF(eDebugClass);
diff --git
a/lib/service/event.h
b/lib/service/event.h
index
d1e1d08
..
5d81d8c
100644
(file)
--- a/
lib/service/event.h
+++ b/
lib/service/event.h
@@
-47,8
+47,8
@@
public:
#ifndef SWIG
RESULT parseFrom(Event *evt, int tsidonid=0);
RESULT parseFrom(const std::string filename, int tsidonid=0);
#ifndef SWIG
RESULT parseFrom(Event *evt, int tsidonid=0);
RESULT parseFrom(const std::string filename, int tsidonid=0);
-#endif
static void setEPGLanguage( const std::string language );
static void setEPGLanguage( const std::string language );
+#endif
time_t getBeginTime() const { return m_begin; }
int getDuration() const { return m_duration; }
int getEventId() const { return m_event_id; }
time_t getBeginTime() const { return m_begin; }
int getDuration() const { return m_duration; }
int getEventId() const { return m_event_id; }
@@
-60,7
+60,14
@@
public:
int getNumOfLinkageServices() const { return m_linkage_services.size(); }
SWIG_VOID(RESULT) getLinkageService(eServiceReference &SWIG_OUTPUT, eServiceReference &parent, int num) const;
};
int getNumOfLinkageServices() const { return m_linkage_services.size(); }
SWIG_VOID(RESULT) getLinkageService(eServiceReference &SWIG_OUTPUT, eServiceReference &parent, int num) const;
};
-SWIG_TEMPLATE_TYPEDEF(ePtr<eServiceEvent>, eServiceEventPtr);
+SWIG_TEMPLATE_TYPEDEF(ePtr<eServiceEvent>, eServiceEvent);
+SWIG_EXTEND(ePtr<eServiceEvent>,
+ static void setEPGLanguage( const std::string language )
+ {
+ extern setServiceEventLanguage(const std::string language);
+ setServiceEventLanguage(language);
+ }
+);
#ifndef SWIG
SWIG_IGNORE(eDebugClass);
#ifndef SWIG
SWIG_IGNORE(eDebugClass);
diff --git
a/lib/service/iservice.h
b/lib/service/iservice.h
index
96cd792
..
015ef87
100644
(file)
--- a/
lib/service/iservice.h
+++ b/
lib/service/iservice.h
@@
-224,7
+224,7
@@
typedef long long pts_t;
Hide the result only if there is another way to check for failure! */
Hide the result only if there is another way to check for failure! */
-
SWIG_TEMPLATE_TYPEDEF(ePtr<eServiceEvent>, eServiceEventPtr)
;
+
class eServiceEvent
;
SWIG_IGNORE(iStaticServiceInformation);
class iStaticServiceInformation: public iObject
SWIG_IGNORE(iStaticServiceInformation);
class iStaticServiceInformation: public iObject
diff --git
a/mytest.py
b/mytest.py
index
7d87a9c
..
0eab8a6
100644
(file)
--- a/
mytest.py
+++ b/
mytest.py
@@
-1,6
+1,6
@@
from Tools import RedirectOutput
from enigma import runMainloop, eDVBDB, eTimer, quitMainloop, eDVBVolumecontrol, \
from Tools import RedirectOutput
from enigma import runMainloop, eDVBDB, eTimer, quitMainloop, eDVBVolumecontrol, \
- getDesktop, ePythonConfigQuery, eAVSwitch, eWindow
+ getDesktop, ePythonConfigQuery, eAVSwitch, eWindow
, eServiceEvent
from tools import *
from Components.Language import language
from tools import *
from Components.Language import language