/[svn]/vendor/pxys2-2.1.0/pxyscand/src/PXRepeater.h
ViewVC logotype

Contents of /vendor/pxys2-2.1.0/pxyscand/src/PXRepeater.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3253 - (show annotations)
Wed Apr 2 20:46:18 2014 UTC (6 years, 11 months ago) by michael
File MIME type: text/x-csrc
File size: 1434 byte(s)
- Imported pxys2-2.1.0

1 // Copyright (C) 2003 Stephane Thiell
2 //
3 // This file is part of pxyscand (from pxys)
4 //
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 //
19 // $Id: PXRepeater.h,v 1.1.1.1 2003/12/30 17:09:00 mbuna Exp $
20 //
21 #ifndef INCLUDED_PXREPEATER_H_
22 #define INCLUDED_PXREPEATER_H_
23
24 #ifdef HAVE_CONFIG_H
25 #include "config.h"
26 #endif
27
28 #include <peak/peak.h>
29
30 // Convenience abstract class for objects that want to receive a function
31 // call at regular intervals.
32
33 class PXRepeater
34 {
35 public:
36 PXRepeater(int inInterval);
37 virtual ~PXRepeater();
38
39 // Pure virtual, concrete subclasses must override.
40 virtual void RepeaterFire() = 0;
41
42 protected:
43 static void TimerCallback(peak_timer ti, void *context);
44
45 peak_timer mRepeaterTimer;
46 };
47
48 #endif // INCLUDED_PXREPEATER_H_

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28