File indexing completed on 2024-12-22 04:28:17

0001 /*
0002    SPDX-FileCopyrightText: 2020 David Faure <faure@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "textemoticonscore_export.h"
0010 
0011 #include <QPersistentModelIndex>
0012 class QMovie;
0013 namespace TextEmoticonsCore
0014 {
0015 struct TEXTEMOTICONSCORE_EXPORT RunningAnimatedImage {
0016     explicit RunningAnimatedImage(const QModelIndex &idx);
0017     ~RunningAnimatedImage();
0018     RunningAnimatedImage(const RunningAnimatedImage &) = delete;
0019     RunningAnimatedImage(RunningAnimatedImage &&other) noexcept;
0020     RunningAnimatedImage &operator=(const RunningAnimatedImage &) = delete;
0021     RunningAnimatedImage &operator=(RunningAnimatedImage &&other);
0022 
0023     QPersistentModelIndex index;
0024     QMovie *movie = nullptr;
0025 };
0026 }