mirror of
https://github.com/stefanocasazza/ULib.git
synced 2025-09-28 19:05:55 +08:00
40 lines
841 B
C++
40 lines
841 B
C++
// ============================================================================
|
|
//
|
|
// = LIBRARY
|
|
// ULib - c++ library
|
|
//
|
|
// = FILENAME
|
|
// event_signal.h
|
|
//
|
|
// = AUTHOR
|
|
// Stefano Casazza
|
|
//
|
|
// ============================================================================
|
|
|
|
#ifndef ULIB_EVENT_SIGNAL_H
|
|
#define ULIB_EVENT_SIGNAL_H 1
|
|
|
|
#include <ulib/internal/common.h>
|
|
|
|
class U_EXPORT UEventSignal {
|
|
public:
|
|
|
|
UEventSignal() {}
|
|
virtual ~UEventSignal() {}
|
|
|
|
// method VIRTUAL to define
|
|
|
|
virtual int handlerSignal() { return -1; }
|
|
|
|
private:
|
|
#ifdef U_COMPILER_DELETE_MEMBERS
|
|
UEventSignal(const UEventSignal&) = delete;
|
|
UEventSignal& operator=(const UEventSignal&) = delete;
|
|
#else
|
|
UEventSignal(const UEventSignal&) {}
|
|
UEventSignal& operator=(const UEventSignal&) { return *this; }
|
|
#endif
|
|
};
|
|
|
|
#endif
|