File: thread.h

package info (click to toggle)
vdr-plugin-epgsync 1.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 160 kB
  • sloc: ansic: 522; makefile: 60; sh: 9
file content (31 lines) | stat: -rw-r--r-- 663 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * thread.h: thread doing the actual work
 *
 * See the README file for copyright information and how to reach the author.
 */

#ifndef _EPGSYNC_THREAD__H
#define _EPGSYNC_THREAD__H

#include <vdr/thread.h>
#include <vdr/tools.h>
#include <vdr/plugin.h>
#include <svdrpservice.h>
#include <time.h>

class cEpgSyncThread: public cThread {
	private:
		cPlugin *plugin;
		SvdrpConnection_v1_0 svdrp;
		time_t last;
	protected:
		virtual void Action();
		bool CmdLSTE(FILE *f, const char *Arg = NULL);
		void AddSchedule(FILE *f);
	public:
		time_t LastRun() const { return last; };
		cEpgSyncThread();
		virtual ~cEpgSyncThread();
};

#endif //_EPGSYNC_THREAD__H