libzypp  17.35.11
autodisconnect.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 ----------------------------------------------------------------------/
9 *
10 * This file contains private API, this might break at any time between releases.
11 * You have been warned!
12 *
13 */
14 
15 #include <zypp-core/zyppng/base/Signals>
16 
17 namespace zyppng
18 {
24  {
25  AutoDisconnect( connection &&conn ) : _conn ( std::move(conn) ) {}
26  AutoDisconnect( AutoDisconnect &&other ) noexcept : _conn ( std::move(other._conn) ) {}
27 
28  AutoDisconnect( const AutoDisconnect &other ) = delete;
29  AutoDisconnect & operator=( const AutoDisconnect & ) = delete;
30 
31  ~AutoDisconnect( ) { _conn.disconnect(); }
33  };
34 
35 }
AutoDisconnect & operator=(const AutoDisconnect &)=delete
AutoDisconnect(connection &&conn)
AutoDisconnect(AutoDisconnect &&other) noexcept
Definition: Arch.h:363
sigc::connection connection
Definition: signals.h:180