LeechCraft  0.6.70-18450-gabe19ee3b0
Modular cross-platform feature rich live environment.
raiisignalconnection.h
Go to the documentation of this file.
1 /**********************************************************************
2  * LeechCraft - modular cross-platform feature rich internet client.
3  * Copyright (C) 2006-2014 Georg Rudoy
4  *
5  * Distributed under the Boost Software License, Version 1.0.
6  * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7  **********************************************************************/
8 
9 #pragma once
10 
11 #include <QMetaObject>
12 #include "sllconfig.h"
13 
14 namespace LC::Util
15 {
17  {
18  QMetaObject::Connection Conn_;
19  public:
20  explicit RaiiSignalConnection (QMetaObject::Connection conn);
22 
23  RaiiSignalConnection () = default;
26 
27  RaiiSignalConnection& operator= (const RaiiSignalConnection&) = delete;
29  RaiiSignalConnection& operator= (QMetaObject::Connection);
30 
31  QMetaObject::Connection Release () &&;
32  };
33 }
#define UTIL_SLL_API
Definition: sllconfig.h:16
auto Tup2 &&tup2 noexcept
Definition: ctstringutils.h:68