/[projects]/smsdaemon/serialport/PosixSignalHandler.h
ViewVC logotype

Contents of /smsdaemon/serialport/PosixSignalHandler.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 91 - (show annotations) (download)
Mon Jun 16 10:56:02 2008 UTC (15 years, 11 months ago) by torben
File MIME type: text/plain
File size: 840 byte(s)
Move serialport to its own directory

1 #ifndef _PosixSignalHandler_h_
2 #define _PosixSignalHandler_h_
3
4 /**
5 * Gets a method called when the corresponding signal is received.
6 * A PosixSignalHandler must be connected to the PosixSignalDispatcher
7 * for it to be called.
8 */
9 class PosixSignalHandler
10 {
11 public:
12 /**
13 * This method is called when the specified POSIX signal is
14 * received by the PosixSignalDispatcher that is managing
15 * this handler.
16 */
17 virtual void HandlePosixSignal( int signalNumber ) = 0 ;
18
19 /**
20 * Destructor is declared virtual as we expect this class to be
21 * subclassed. It is also declared pure abstract to make this
22 * class a pure abstract class.
23 */
24 virtual ~PosixSignalHandler() = 0 ;
25 } ;
26
27 inline
28 PosixSignalHandler::~PosixSignalHandler()
29 {
30 /* empty */
31 }
32 #endif // #ifndef _PosixSignalHandler_h_

  ViewVC Help
Powered by ViewVC 1.1.20