// clang-format off // SPDX-FileCopyrightText: 2024 Klarälvdalens Datakonsult AB, a KDAB Group company // clang-format on // SPDX-FileContributor: Andrew Hayzen // // SPDX-License-Identifier: MIT OR Apache-2.0 #pragma once #include #include #include "rust/cxx.h" // Define namespace otherwise we hit a GCC bug // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56480 namespace rust { template<> struct IsRelocatable<::QMetaObject::Connection> : ::std::true_type {}; } // namespace rust namespace rust { namespace cxxqt1 { using QMetaObjectConnection = ::QMetaObject::Connection; ::QMetaObject::Connection qmetaobjectconnectionDefault(); bool qmetaobjectconnectionDisconnect(const ::QMetaObject::Connection& connection); void qmetaobjectconnectionDrop(::QMetaObject::Connection& connection); } }