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

Annotation of /smsdaemon/serialport/PosixSignalHandler.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 26 - (hide annotations) (download)
Mon Jun 9 18:15:53 2008 UTC (15 years, 11 months ago) by torben
Original Path: smsdaemon/PosixSignalHandler.h
File MIME type: text/plain
File size: 840 byte(s)
Added first basic edition of smsdaemon.

So far sending & receiving sms works and a basic sample plugin is implemented.

1 torben 26 #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