openATV enigma2
openATV is an open source SetTopBox Graphical user interface.
tuxtxtapp.h
Go to the documentation of this file.
1 #ifndef __LIB_COMPONENTS_TUXTXTAPP_H__
2 #define __LIB_COMPONENTS_TUXTXTAPP_H__
3 
4 #include <string>
5 #include <lib/base/ebase.h>
6 #include <lib/base/thread.h>
7 #include <lib/base/message.h>
8 #include <lib/python/python.h>
10 
11 class eTuxtxtApp: private eThread, public sigc::trackable
12 {
13 #ifndef SWIG
14  int pid;
15  int demux;
16  bool enableTtCaching, uiRunning;
17  static eTuxtxtApp *instance;
18  pthread_mutex_t cacheChangeLock;
19 
20  eFixedMessagePump<int> messagePump;
21  void recvEvent(const int &evt);
22 
23  void thread();
24  void thread_finished();
25 #endif
26 public:
27  eTuxtxtApp();
28  ~eTuxtxtApp();
29  static eTuxtxtApp *getInstance() { return instance; }
30  int startUi();
31  void initCache();
32  void freeCache();
33  void startCaching( int tpid, int tdemux );
34  void stopCaching();
35  void resetPid() { pid = 0; demux = 0; }
36  void setEnableTtCachingOnOff( int onoff );
37  void handleKey( int key );
39 };
40 
41 #endif // __LIB_COMPONENTS_TUXTXTAPP_H__
Definition: thread.h:27
Definition: tuxtxtapp.h:12
PSignal0< void > appClosed
Definition: tuxtxtapp.h:38
int startUi()
Definition: tuxtxtapp.cpp:50
void initCache()
Definition: tuxtxtapp.cpp:78
static eTuxtxtApp * getInstance()
Definition: tuxtxtapp.h:29
void handleKey(int key)
Definition: tuxtxtapp.cpp:133
void resetPid()
Definition: tuxtxtapp.h:35
eTuxtxtApp()
Definition: tuxtxtapp.cpp:24
void setEnableTtCachingOnOff(int onoff)
Definition: tuxtxtapp.cpp:111
void freeCache()
Definition: tuxtxtapp.cpp:83
~eTuxtxtApp()
Definition: tuxtxtapp.cpp:33
void stopCaching()
Definition: tuxtxtapp.cpp:102
void startCaching(int tpid, int tdemux)
Definition: tuxtxtapp.cpp:94