#include <Callback.h>
Public Types | |
typedef ReceiveReport< _Report > | Receiver |
typedef DistributeReport< _Report > | Distributor |
Public Member Functions | |
TempConnect (Receiver &rec_r) | |
~TempConnect () | |
Private Attributes | |
Receiver * | _oldRec |
Pass the ReceiveReport you want to connect temporarily to the ctor. The ReceiveReport is connected, a previously connected ReceiveReport is remembered and re-connected in the dtor.
struct FooReceive : public callback::ReceiveReport<Foo> {..}; struct FooReceive2 : public callback::ReceiveReport<Foo> {..}; FooReceive r; FooReceive2 r2; r.connect(); ... // r receiving the report { callback::TempConnect<Foo> temp( r2 ); ...// r2 receiving the report } ...// r receiving the report
Definition at line 248 of file Callback.h.
|
Definition at line 250 of file Callback.h. |
|
Definition at line 251 of file Callback.h. |
|
Definition at line 253 of file Callback.h. References zypp::callback::ReceiveReport< _Report >::connect(). |
|
|
Definition at line 267 of file Callback.h. Referenced by zypp::callback::TempConnect< _Report >::~TempConnect(). |