Interface for message loops. More...
#include <SMsgLoop-i.h>
Public Member Functions | |
| long | AddRef () PURE |
| Adds a reference to the object. | |
| long | Release () PURE |
| Releases a reference to the object. | |
| void | OnFinalRelease () PURE |
| Finalizes the release of the object. | |
| BOOL | AddMessageFilter (IMsgFilter *pMessageFilter) PURE |
| Adds a message filter. | |
| BOOL | RemoveMessageFilter (IMsgFilter *pMessageFilter) PURE |
| Removes a message filter. | |
| BOOL | AddIdleHandler (IIdleHandler *pIdleHandler) PURE |
| Adds an idle handler. | |
| BOOL | RemoveIdleHandler (IIdleHandler *pIdleHandler) PURE |
| Removes an idle handler. | |
| BOOL | PreTranslateMessage (MSG *pMsg) PURE |
| Preprocesses a message. | |
| BOOL | OnIdle (int nIdleCount) PURE |
| Handles idle time. | |
| int | Run () PURE |
| Runs the message loop. | |
| BOOL | IsRunning () SCONST PURE |
| Checks if the message loop is running. | |
| void | OnMsg (LPMSG pMsg) PURE |
| Processes a message. | |
| void | Quit (int exitCode=0) PURE |
| Quits the message loop. | |
| BOOL | PostTask (IRunnable *runable) PURE |
| Posts a task to the message loop. | |
| int | RemoveTasksForObject (void *pObj) PURE |
| Removes tasks associated with an object. | |
| void | ExecutePendingTask () PURE |
| Executes pending tasks. | |
| BOOL | PeekMsg (LPMSG pMsg, UINT wMsgFilterMin, UINT wMsgFilterMax, BOOL bRemove) PURE |
| Peeks at messages in the message queue. | |
| BOOL | WaitMsg () PURE |
| Waits for a message. | |
| int | HandleMsg () PURE |
| Handles a message. | |
Public Member Functions inherited from IObjRef | |
| long | AddRef () PURE |
| Increases the reference count. | |
| long | Release () PURE |
| Decreases the reference count. | |
| void | OnFinalRelease () PURE |
| Called when the reference count reaches zero and the object is about to be released. | |
Interface for message loops.
Definition at line 41 of file SMsgLoop-i.h.
| BOOL IMessageLoop::AddIdleHandler | ( | IIdleHandler * | pIdleHandler | ) |
Adds an idle handler.
| pIdleHandler | Pointer to the idle handler. |
Implemented in SMessageLoop.
| BOOL IMessageLoop::AddMessageFilter | ( | IMsgFilter * | pMessageFilter | ) |
Adds a message filter.
| pMessageFilter | Pointer to the message filter. |
Implemented in SMessageLoop.
| long IMessageLoop::AddRef | ( | ) |
Adds a reference to the object.
Implemented in TObjRefImpl< IMessageLoop >.
| void IMessageLoop::ExecutePendingTask | ( | ) |
Executes pending tasks.
Implemented in SMessageLoop.
| int IMessageLoop::HandleMsg | ( | ) |
| BOOL IMessageLoop::IsRunning | ( | ) |
Checks if the message loop is running.
| void IMessageLoop::OnFinalRelease | ( | ) |
Finalizes the release of the object.
Implemented in TObjRefImpl< IMessageLoop >.
| BOOL IMessageLoop::OnIdle | ( | int | nIdleCount | ) |
Handles idle time.
| nIdleCount | Idle count. |
Implemented in SMessageLoop.
| void IMessageLoop::OnMsg | ( | LPMSG | pMsg | ) |
| BOOL IMessageLoop::PeekMsg | ( | LPMSG | pMsg, |
| UINT | wMsgFilterMin, | ||
| UINT | wMsgFilterMax, | ||
| BOOL | bRemove ) |
Peeks at messages in the message queue.
| pMsg | Pointer to the message. |
| wMsgFilterMin | Minimum message filter value. |
| wMsgFilterMax | Maximum message filter value. |
| bRemove | Whether to remove the message. |
Implemented in SMessageLoop.
| BOOL IMessageLoop::PostTask | ( | IRunnable * | runable | ) |
Posts a task to the message loop.
| runable | Pointer to the runnable object. |
Implemented in SMessageLoop.
| BOOL IMessageLoop::PreTranslateMessage | ( | MSG * | pMsg | ) |
Preprocesses a message.
| pMsg | Pointer to the message. |
Implemented in SMessageLoop.
| void IMessageLoop::Quit | ( | int | exitCode = 0 | ) |
| long IMessageLoop::Release | ( | ) |
Releases a reference to the object.
Implemented in TObjRefImpl< IMessageLoop >.
| BOOL IMessageLoop::RemoveIdleHandler | ( | IIdleHandler * | pIdleHandler | ) |
Removes an idle handler.
| pIdleHandler | Pointer to the idle handler. |
Implemented in SMessageLoop.
| BOOL IMessageLoop::RemoveMessageFilter | ( | IMsgFilter * | pMessageFilter | ) |
Removes a message filter.
| pMessageFilter | Pointer to the message filter. |
Implemented in SMessageLoop.
| int IMessageLoop::RemoveTasksForObject | ( | void * | pObj | ) |
Removes tasks associated with an object.
| pObj | Pointer to the object. |
Implemented in SMessageLoop.
| int IMessageLoop::Run | ( | ) |
| BOOL IMessageLoop::WaitMsg | ( | ) |