Attach an observer to the client. You can attach as many observers as you want. The client send notifications (more precisely the virtual functions are called) to the observers.
| 339 | /// The client send notifications (more precisely the virtual functions are called) |
| 340 | /// to the observers. |
| 341 | void CFTPClient::AttachObserver(CFTPClient::CNotification* pObserver) |
| 342 | { |
| 343 | ASSERT( pObserver ); |
| 344 | if( pObserver ) |
| 345 | m_setObserver.Attach(pObserver); |
| 346 | } |
| 347 | |
| 348 | /// Detach an observer from the client. |
| 349 | void CFTPClient::DetachObserver(CFTPClient::CNotification* pObserver) |
no test coverage detected