62 wxWindow* aSource =
nullptr );
75#define kiwayMailHandler( func ) wxEVENT_HANDLER_CAST( kiwayMailFunction, func )
78#define EVT_KIWAY_EXPRESS( func ) \
79 wx__DECLARE_EVT0( EDA_KIWAY_MAIL_RECEIVED, kiwayMailHandler( func ) )
Carry a payload from one KIWAY_PLAYER to another within a PROJECT.
std::string & GetPayload()
Return the payload, which can be any text but it typically self identifying s-expression.
FRAME_T m_destination
could have been a bitmap indicating multiple recipients.
FRAME_T Dest()
Return the destination player id of the message.
KIWAY_MAIL_EVENT * Clone() const override
std::string & m_payload
very often s-expression text, but not always.
void SetPayload(const std::string &aPayload)
KIWAY_MAIL_EVENT(FRAME_T aDestination, MAIL_T aCommand, std::string &aPayload, wxWindow *aSource=nullptr)
MAIL_T Command()
Returns the MAIL_T associated with this mail.
FRAME_T
The set of EDA_BASE_FRAME derivatives, typically stored in EDA_BASE_FRAME::m_Ident.
wxDECLARE_EXPORTED_EVENT(KICOMMON_API, EDA_KIWAY_MAIL_RECEIVED, KIWAY_MAIL_EVENT)
void(wxEvtHandler::* kiwayMailFunction)(KIWAY_MAIL_EVENT &)
MAIL_T
The set of mail types sendable via KIWAY::ExpressMail() and supplied as the aCommand parameter to tha...