#include <completion_notify.h>

Public Types | |
| typedef completion_notify | t_interface |
| typedef service_base | t_interface_parent |
Public Member Functions | |
| virtual void | on_completion (unsigned p_code)=0 |
| void | on_completion_async (unsigned p_code) |
| Helper. Queues a notification, using main_thread_callback. | |
Static Public Member Functions | |
| static void | g_signal_completion_async (service_ptr_t< completion_notify > p_notify, unsigned p_code) |
| Helper. Checks for null ptr and calls on_completion_async when the ptr is not null. | |
Static Public Attributes | |
| static const GUID | class_guid = { 0xdf26d586, 0xf7ec, 0x40c3, { 0x9f, 0xe8, 0x2e, 0xa0, 0x72, 0x5d, 0x76, 0xc0 } } |
Reimplemented from service_base.
| virtual void completion_notify::on_completion | ( | unsigned | p_code | ) | [pure virtual] |
Called when an async operation has been completed. Note that on_completion is always called from main thread. You can use on_completion_async() helper if you need to signal completion while your context is in another thread.
IMPLEMENTATION WARNING: If process being completed creates a window taking caller's window as parent, you must not destroy the parent window inside on_completion(). If you need to do so, use PostMessage() or main_thread_callback to delay the deletion.
| p_code | Context-specific status code. Possible values depend on the operation being performed. |
Implemented in completion_notify_impl< t_receiver >.
| void completion_notify::on_completion_async | ( | unsigned | p_code | ) |
Helper. Queues a notification, using main_thread_callback.
| static void completion_notify::g_signal_completion_async | ( | service_ptr_t< completion_notify > | p_notify, | |
| unsigned | p_code | |||
| ) | [static] |
Helper. Checks for null ptr and calls on_completion_async when the ptr is not null.
const GUID completion_notify::class_guid = { 0xdf26d586, 0xf7ec, 0x40c3, { 0x9f, 0xe8, 0x2e, 0xa0, 0x72, 0x5d, 0x76, 0xc0 } } [static] |
1.5.5