TagLib  2.2.1
matroskachapteredition.h
Go to the documentation of this file.
1 /***************************************************************************
2  copyright : (C) 2025 by Urs Fleisch
3  email : ufleisch@users.sourceforge.net
4  ***************************************************************************/
5 
6 /***************************************************************************
7  * This library is free software; you can redistribute it and/or modify *
8  * it under the terms of the GNU Lesser General Public License version *
9  * 2.1 as published by the Free Software Foundation. *
10  * *
11  * This library is distributed in the hope that it will be useful, but *
12  * WITHOUT ANY WARRANTY; without even the implied warranty of *
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
14  * Lesser General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU Lesser General Public *
17  * License along with this library; if not, write to the Free Software *
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA *
19  * 02110-1301 USA *
20  * *
21  * Alternatively, this file is available under the Mozilla Public *
22  * License Version 1.1. You may obtain a copy of the License at *
23  * http://www.mozilla.org/MPL/ *
24  ***************************************************************************/
25 
26 #ifndef TAGLIB_MATROSKACHAPTEREDITION_H
27 #define TAGLIB_MATROSKACHAPTEREDITION_H
28 
29 #include "matroskachapter.h"
30 
31 namespace TagLib {
32  class String;
33  class ByteVector;
34 
35  namespace Matroska {
38  {
39  public:
41  using UID = unsigned long long;
42 
46  ChapterEdition(const List<Chapter> &chapterList,
47  bool isDefault, bool isOrdered = false, UID uid = 0);
48 
52  ChapterEdition(const ChapterEdition &other);
53 
57  ChapterEdition(ChapterEdition &&other) noexcept;
58 
62  ~ChapterEdition();
63 
67  ChapterEdition &operator=(const ChapterEdition &other);
68 
72  ChapterEdition &operator=(ChapterEdition &&other) noexcept;
73 
77  void swap(ChapterEdition &other) noexcept;
78 
82  UID uid() const;
83 
87  bool isDefault() const;
88 
93  bool isOrdered() const;
94 
98  const List<Chapter> &chapterList() const;
99 
100  private:
101  class ChapterEditionPrivate;
103  std::unique_ptr<ChapterEditionPrivate> d;
104  };
105  }
106 }
107 
108 #endif
A generic, implicitly shared list.
Definition: tlist.h:53
#define TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
Definition: taglib_export.h:55
#define TAGLIB_EXPORT
Definition: taglib_export.h:40
unsigned long long UID
Unique identifier.
Definition: matroskachapteredition.h:41
Edition of chapters.
Definition: matroskachapteredition.h:37
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41