Initial commit

This commit is contained in:
torsten committed 2026-08-13 18:33:10 +02:00
commit b7d90b9afe
16245 files changed
+3396666

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
/**
* @RDE_HEADER@
* ScopedConnection
* $Id$
* $HeadURL$
* $Author$
* Created by Christian Fröbel, SLSE, 2017-07-24
*/
#pragma once
#include <LtsUtilsCore/ltsutilscore_export.h>
#include <Qt>
namespace LtsUtils
{
class IConnection;
/**
* A small janitor that connects the given IConnection in the constructor
* and disconnects it in the destructor.
* @author Christian Fröbel
*/
class LTSUTILSCORE_EXPORT ScopedConnection
{
public:
explicit ScopedConnection(IConnection *connection, Qt::ConnectionType = Qt::AutoConnection);
~ScopedConnection();
private:
IConnection *m_conn;
};
} // namespace LtsUtils