File indexing completed on 2024-12-22 04:40:14
0001 /* 0002 SPDX-FileCopyrightText: 2007-2009 Sergio Pistone <sergio_pistone@yahoo.com.ar> 0003 SPDX-FileCopyrightText: 2010-2022 Mladen Milinkovic <max@smoothware.net> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #ifndef SCRIPTING_RANGE_H 0009 #define SCRIPTING_RANGE_H 0010 0011 #include "core/range.h" 0012 0013 #include <QObject> 0014 0015 namespace SubtitleComposer { 0016 namespace Scripting { 0017 class Range : public QObject 0018 { 0019 Q_OBJECT 0020 0021 public slots: 0022 int start() const; 0023 int end() const; 0024 int length() const; 0025 0026 bool contains(int index) const; 0027 bool contains(const QObject *range) const; 0028 0029 private: 0030 friend class RangesModule; 0031 friend class RangeList; 0032 friend class Subtitle; 0033 0034 Range(const SubtitleComposer::Range &range, QObject *parent); 0035 0036 SubtitleComposer::Range m_backend; 0037 }; 0038 } 0039 } 0040 #endif