]> git.vomp.tv Git - vompclient.git/blob - tfeed.h
Rewritten vomp discovery protocol
[vompclient.git] / tfeed.h
1 /*\r
2     Copyright 2008 Marten Richter\r
3 \r
4     This file is part of VOMP.\r
5 \r
6     VOMP is free software; you can redistribute it and/or modify\r
7     it under the terms of the GNU General Public License as published by\r
8     the Free Software Foundation; either version 2 of the License, or\r
9     (at your option) any later version.\r
10 \r
11     VOMP is distributed in the hope that it will be useful,\r
12     but WITHOUT ANY WARRANTY; without even the implied warranty of\r
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
14     GNU General Public License for more details.\r
15 \r
16     You should have received a copy of the GNU General Public License\r
17     along with VOMP; if not, write to the Free Software\r
18     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.\r
19 */\r
20 \r
21 #ifndef TFEED_H\r
22 #define TFEED_H\r
23 \r
24 #include <stdio.h>\r
25 #include <time.h>\r
26 \r
27 #ifdef WIN32\r
28 #include "threadwin.h"\r
29 #else\r
30 #include "threadp.h"\r
31 #endif\r
32 \r
33 class Callback;\r
34 \r
35 class TFeed : public Thread_TYPE\r
36 {\r
37   public:\r
38     TFeed(Callback* tcb);\r
39 \r
40     int init();\r
41     int shutdown();\r
42 \r
43     int start();\r
44     void stop();\r
45     void enable();\r
46     void disable();\r
47 \r
48   private:\r
49     void threadMethod();\r
50     void threadPostStopCleanup() {};\r
51     int teletextEnabled;\r
52     Callback& cb;\r
53 };\r
54 \r
55 #endif\r