#include <POBox.h>
Inheritance diagram for POBox:

Public Slots | |
| void | addMessage (const POMessage *msg) |
Signals | |
| void | messageArrived () |
| void | messageArrived (const POMessage *msg) |
| emited for every message that arrives | |
| void | messageSent (const POMessage *msg) |
Public Member Functions | |
| POBox (const string &name, PostOffice *po) | |
| ~POBox () | |
| Delete all unread messages. | |
| const POMessage * | popMessage () |
| void | setQueueState (bool state=true) |
| bool | getQueueState () const |
| string | getName () const |
| bool | hasMessages (bool check_now=false) const |
| PostOffice * | getPostOffice () const |
| bool | sendTextMsg (const POAddress &adr, const char *format,...) |
| bool | sendMessage (POMessage *msg, const POAddress &adr, bool send_now=false) |
| const POMessage * | sendBlockingMessage (POMessage *msg, const POAddress &adr, const DTime &timeout=DTime(2, 0)) |
| void | joinGroup (const POAddress &groupadr, bool create=false) |
| void | leaveGroup (const POAddress &groupadr) |
|
||||||||||||
|
Constructor
|
|
|
Delete all unread messages.
|
|
|
Used by the PostOffice to add incomming messages to the box and then emits MessageArrived()
Implements POBoxIF. |
|
|
Implements POBoxIF. |
|
|
|
|
|
|
|
|
Returns true if the mail box contains messages
Implements POBoxIF. |
|
||||||||||||
|
Sends a message to the group that will add this POBox to the list of group members. This box will start receiving all messages sent to the group
|
|
|
Sends a message to the group that will remove this POBox from the list of group members. This box will stop receiving all messages sent to the group
|
|
|
emited for every message that arrives
|
|
|
emited when a new message arives if QueueState is true slots hooked to this signal shouldn't set the QueueState to false unless they want the POBox to delete the message for them |
|
|
|
|
|
Returns the oldest message on the stack, you are responsible for deleting it.
Implements POBoxIF. |
|
||||||||||||||||
|
Sends a message and blocks until a message is sent in response or the message times out. On a timeout or other error a POErrorMsg* exception is thrown.
|
|
||||||||||||||||
|
Sets the message from field to POBox::GetName()
Implements POBoxIF. |
|
||||||||||||||||
|
Provided for convience, sends a POTextMsg to the specified address
|
|
|
|
1.3.4