|
KiCad PCB EDA Suite
|
Carry a payload from one KIWAY_PLAYER to another within a PROJECT. More...
#include <kiway_mail.h>
Public Member Functions | |
| FRAME_T | Dest () |
| Return the destination player id of the message. | |
| MAIL_T | Command () |
| Returns the MAIL_T associated with this mail. | |
| std::string & | GetPayload () |
| Return the payload, which can be any text but it typically self identifying s-expression. | |
| void | SetPayload (const std::string &aPayload) |
| KIWAY_MAIL_EVENT * | Clone () const override |
| KIWAY_MAIL_EVENT (FRAME_T aDestination, MAIL_T aCommand, std::string &aPayload, wxWindow *aSource=nullptr) | |
| KIWAY_MAIL_EVENT (const KIWAY_MAIL_EVENT &anOther) | |
Private Attributes | |
| FRAME_T | m_destination |
| could have been a bitmap indicating multiple recipients. | |
| std::string & | m_payload |
| very often s-expression text, but not always. | |
Carry a payload from one KIWAY_PLAYER to another within a PROJECT.
Definition at line 37 of file kiway_mail.h.
| KIWAY_MAIL_EVENT::KIWAY_MAIL_EVENT | ( | FRAME_T | aDestination, |
| MAIL_T | aCommand, | ||
| std::string & | aPayload, | ||
| wxWindow * | aSource = nullptr ) |
Definition at line 39 of file kiway_mail.cpp.
References m_destination, and m_payload.
Referenced by Clone(), and KIWAY_MAIL_EVENT().
| KIWAY_MAIL_EVENT::KIWAY_MAIL_EVENT | ( | const KIWAY_MAIL_EVENT & | anOther | ) |
Definition at line 31 of file kiway_mail.cpp.
References KIWAY_MAIL_EVENT(), m_destination, and m_payload.
|
inlineoverride |
Definition at line 59 of file kiway_mail.h.
References KIWAY_MAIL_EVENT().
|
inline |
Returns the MAIL_T associated with this mail.
Definition at line 48 of file kiway_mail.h.
Referenced by CVPCB_MAINFRAME::KiwayMailIn(), FOOTPRINT_CHOOSER_FRAME::KiwayMailIn(), FOOTPRINT_EDIT_FRAME::KiwayMailIn(), FOOTPRINT_VIEWER_FRAME::KiwayMailIn(), PCB_EDIT_FRAME::KiwayMailIn(), SCH_EDIT_FRAME::KiwayMailIn(), SYMBOL_EDIT_FRAME::KiwayMailIn(), and SYMBOL_VIEWER_FRAME::KiwayMailIn().
|
inline |
Return the destination player id of the message.
Definition at line 43 of file kiway_mail.h.
References m_destination.
Referenced by KIWAY::ProcessEvent(), and KIWAY::QueueEvent().
|
inline |
Return the payload, which can be any text but it typically self identifying s-expression.
Definition at line 56 of file kiway_mail.h.
References m_payload.
Referenced by CVPCB_MAINFRAME::KiwayMailIn(), FOOTPRINT_CHOOSER_FRAME::KiwayMailIn(), FOOTPRINT_EDIT_FRAME::KiwayMailIn(), PCB_EDIT_FRAME::KiwayMailIn(), SCH_EDIT_FRAME::KiwayMailIn(), SYMBOL_EDIT_FRAME::KiwayMailIn(), and SYMBOL_VIEWER_FRAME::KiwayMailIn().
|
inline |
Definition at line 57 of file kiway_mail.h.
References m_payload.
|
private |
could have been a bitmap indicating multiple recipients.
Definition at line 67 of file kiway_mail.h.
Referenced by Dest(), KIWAY_MAIL_EVENT(), and KIWAY_MAIL_EVENT().
|
private |
very often s-expression text, but not always.
Definition at line 68 of file kiway_mail.h.
Referenced by GetPayload(), KIWAY_MAIL_EVENT(), KIWAY_MAIL_EVENT(), and SetPayload().