template<class _Report>
struct zypp::callback::TempConnect< _Report >
Temporarily connect a ReceiveReport then restore the previous one.
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. Use the default ctpr to temporarily disconnect any connected report.
* struct FooReceive : public callback::ReceiveReport<Foo>
* {..};
* struct FooReceive2 : public callback::ReceiveReport<Foo>
* {..};
*
* FooReceive r;
* FooReceive2 r2;
*
* r.connect();
* ...
* {
* callback::TempConnect<Foo> temp( r2 );
* ...
* }
* ...
*
Definition at line 261 of file Callback.h.