completion_notify_impl< t_receiver > Class Template Reference

#include <completion_notify.h>

Inheritance diagram for completion_notify_impl< t_receiver >:

completion_notify_orphanable completion_notify service_base

List of all members.

Public Member Functions

void on_completion (unsigned p_code)
void setup (t_receiver *p_receiver, unsigned p_task_id)
void orphan ()


Detailed Description

template<typename t_receiver>
class completion_notify_impl< t_receiver >

Helper implementation. IMPLEMENTATION WARNING: If process being completed creates a window taking caller's window as parent, you must not destroy the parent window inside on_task_completion(). If you need to do so, use PostMessage() or main_thread_callback to delay the deletion.

Member Function Documentation

template<typename t_receiver>
void completion_notify_impl< t_receiver >::on_completion ( unsigned  p_code  )  [inline, 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.

Parameters:
p_code Context-specific status code. Possible values depend on the operation being performed.

Implements completion_notify.

template<typename t_receiver>
void completion_notify_impl< t_receiver >::setup ( t_receiver *  p_receiver,
unsigned  p_task_id 
) [inline]

template<typename t_receiver>
void completion_notify_impl< t_receiver >::orphan (  )  [inline, virtual]


The documentation for this class was generated from the following file:

Generated on Fri Apr 18 13:56:49 2008 for foobar2000 SDK by  doxygen 1.5.5