mirror of
https://github.com/stefanocasazza/ULib.git
synced 2025-09-28 19:05:55 +08:00
44 lines
965 B
C++
44 lines
965 B
C++
// ============================================================================
|
|
//
|
|
// = LIBRARY
|
|
// ULib - c++ library
|
|
//
|
|
// = FILENAME
|
|
// event_message.h
|
|
//
|
|
// = AUTHOR
|
|
// Stefano Casazza
|
|
//
|
|
// ============================================================================
|
|
|
|
#ifndef ULIB_EVENT_MESSAGE_H
|
|
#define ULIB_EVENT_MESSAGE_H 1
|
|
|
|
#include <ulib/internal/common.h>
|
|
|
|
class UString;
|
|
|
|
class U_EXPORT UEventMessage {
|
|
public:
|
|
|
|
UEventMessage() {}
|
|
virtual ~UEventMessage() {}
|
|
|
|
// -------------------------------------------
|
|
// method VIRTUAL to define
|
|
// -------------------------------------------
|
|
// return value: -1 -> unsuscribe, 0 -> normal
|
|
// -------------------------------------------
|
|
|
|
virtual int handlerMessage(const UString& message) { return -1; }
|
|
|
|
#if defined(U_STDCPP_ENABLE) && defined(DEBUG)
|
|
const char* dump(bool) const { return ""; }
|
|
#endif
|
|
|
|
private:
|
|
U_DISALLOW_COPY_AND_ASSIGN(UEventMessage)
|
|
};
|
|
|
|
#endif
|