EventConnection Struct Reference

#include <webchild.h>

Inheritance diagram for EventConnection:

Inheritance graph
[legend]
Collaboration diagram for EventConnection:

Collaboration graph
[legend]

Public Member Functions

 EventConnection (IConnectionPoint *connectionpoint, IUnknown *sink)
template<typename T>
 EventConnection (T &connectionpoint, IUnknown *sink)
 ~EventConnection ()

Protected Attributes

SIfacePtr< IConnectionPoint > _connectionpoint
DWORD _cookie

Detailed Description

Definition at line 178 of file webchild.h.


Constructor & Destructor Documentation

EventConnection::EventConnection ( IConnectionPoint *  connectionpoint,
IUnknown sink 
) [inline]

Definition at line 180 of file webchild.h.

References _connectionpoint, _cookie, and CheckError().

00181     {
00182         CheckError(connectionpoint->Advise(sink, &_cookie));
00183         _connectionpoint = connectionpoint;
00184     }

Here is the call graph for this function:

template<typename T>
EventConnection::EventConnection ( T &  connectionpoint,
IUnknown sink 
) [inline]

Definition at line 186 of file webchild.h.

References _connectionpoint, _cookie, and CheckError().

00187     {
00188         CheckError(connectionpoint->Advise(sink, &_cookie));
00189         _connectionpoint = connectionpoint;
00190     }

Here is the call graph for this function:

EventConnection::~EventConnection (  )  [inline]

Definition at line 204 of file webchild.h.

References _connectionpoint, and _cookie.

00205     {
00206         if (_connectionpoint)
00207             _connectionpoint->Unadvise(_cookie);
00208     }


Field Documentation

SIfacePtr<IConnectionPoint> EventConnection::_connectionpoint [protected]

Definition at line 211 of file webchild.h.

Referenced by EventConnection(), and ~EventConnection().

DWORD EventConnection::_cookie [protected]

Definition at line 212 of file webchild.h.

Referenced by EventConnection(), and ~EventConnection().


The documentation for this struct was generated from the following file:
IBrowser Source Code Documentation
generated on 18.09.2008 by doxygen

Homepage