fix seekable status when service is already running, only show infobar if InfoBarShow...
[enigma2.git] / lib / python / connections.cpp
1 #include <lib/python/connections.h>
2
3 PSignal::PSignal()
4 {
5 }
6
7 PSignal::~PSignal()
8 {
9         Py_XDECREF(m_list);
10 }
11
12 void PSignal::callPython(ePyObject tuple)
13 {
14         int size = PyList_Size(m_list);
15         int i;
16         for (i=0; i<size; ++i)
17         {
18                 ePyObject b = PyList_GET_ITEM(m_list, i);
19                 ePython::call(b, tuple);
20         }
21 }
22
23 PyObject *PSignal::get()
24 {
25         if (!m_list)
26         {
27                 m_list = PyList_New(0);
28                 Py_INCREF(m_list);
29         }
30         Py_INCREF(m_list);
31         return m_list;
32 }