File indexing completed on 2025-03-16 11:21:11
0001 /* 0002 SPDX-FileCopyrightText: 2022 MBition GmbH 0003 SPDX-FileContributor: Kai Uwe Broulik <kai_uwe.broulik@mbition.io> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #pragma once 0009 0010 #include <memory> 0011 0012 class QQmlEngine; 0013 0014 namespace KWin 0015 { 0016 0017 class SharedQmlEngine 0018 { 0019 public: 0020 using Ptr = std::shared_ptr<QQmlEngine>; 0021 static Ptr engine(); 0022 0023 private: 0024 static std::weak_ptr<QQmlEngine> s_engine; 0025 }; 0026 0027 } // namespace KWin