TagLib  2.2.1
matroskachapters.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_MATROSKACHAPTERS_H
27 #define TAGLIB_MATROSKACHAPTERS_H
28 
29 #include <memory>
30 #include "taglib_export.h"
31 #include "tlist.h"
32 #include "matroskaelement.h"
33 
34 namespace TagLib {
35  class File;
36 
37  namespace EBML {
38  class MkChapters;
39  }
40 
41  namespace Matroska {
42  class ChapterEdition;
43  class File;
44 
47 #ifndef DO_NOT_DOCUMENT
48  : private Element
49 #endif
50  {
51  public:
54 
56  Chapters();
57 
59  virtual ~Chapters();
60 
62  void addChapterEdition(const ChapterEdition &edition);
63 
65  void removeChapterEdition(unsigned long long uid);
66 
68  void clear();
69 
71  const ChapterEditionList &chapterEditionList() const;
72 
73  private:
74  friend class EBML::MkChapters;
75  friend class File;
76  class ChaptersPrivate;
77 
78  // private Element implementation
79  ByteVector renderInternal() override;
80 
82  std::unique_ptr<ChaptersPrivate> d;
83  };
84  }
85 }
86 
87 #endif
A generic, implicitly shared list.
Definition: tlist.h:53
A byte vector.
Definition: tbytevector.h:45
#define TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
Definition: taglib_export.h:55
#define TAGLIB_EXPORT
Definition: taglib_export.h:40
Collection of chapter editions.
Definition: matroskachapters.h:46
Edition of chapters.
Definition: matroskachapteredition.h:37
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41
An implementation of TagLib::File with Matroska specific methods.
Definition: matroskafile.h:39