eventthread.h 1.55 KB
Newer Older
yanmorin's avatar
   
yanmorin committed
1
/*
jpbl's avatar
jpbl committed
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 *  Copyright (C) 2004-2005 Savoir-Faire Linux inc.
 *  Author: Yan Morin <yan.morin@savoirfairelinux.com>
 *  Author : Laurielle Lea <laurielle.lea@savoirfairelinux.com>
 *                                                                              
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *                                                                              
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *                                                                              
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#ifndef __EVENT_THREAD_H__
#define __EVENT_THREAD_H__

#include <cc++/thread.h>

yanmorin's avatar
   
yanmorin committed
26
27
28
29
class VoIPLink;
/**
 * General thread to listen events continuously
 */
jpbl's avatar
jpbl committed
30
31
class EventThread : public ost::Thread {
public:
yanmorin's avatar
   
yanmorin committed
32
33
34
35
  /**
   * Build a thread that call getEvents 
   */
	EventThread (VoIPLink*);
jpbl's avatar
jpbl committed
36
37
38
	~EventThread (void);
	
	virtual void 	 run ();
yanmorin's avatar
   
yanmorin committed
39

jpbl's avatar
jpbl committed
40
private:
yanmorin's avatar
   
yanmorin committed
41
42
  /** VoIPLink is the object being called by getEvents() method  */
	VoIPLink*	_linkthread;
jpbl's avatar
jpbl committed
43
44
45
};

#endif // __EVENT_THREAD_H__