TagLib API Documentation
mp4chapter.h
Go to the documentation of this file.
1/**************************************************************************
2 copyright : (C) 2026 by Ryan Francesconi
3 **************************************************************************/
4
5/***************************************************************************
6 * This library is free software; you can redistribute it and/or modify *
7 * it under the terms of the GNU Lesser General Public License version *
8 * 2.1 as published by the Free Software Foundation. *
9 * *
10 * This library is distributed in the hope that it will be useful, but *
11 * WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
13 * Lesser General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU Lesser General Public *
16 * License along with this library; if not, write to the Free Software *
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA *
18 * 02110-1301 USA *
19 * *
20 * Alternatively, this file is available under the Mozilla Public *
21 * License Version 1.1. You may obtain a copy of the License at *
22 * http://www.mozilla.org/MPL/ *
23 ***************************************************************************/
24
25#ifndef TAGLIB_MP4CHAPTER_H
26#define TAGLIB_MP4CHAPTER_H
27
28#include <memory>
29#include "taglib_export.h"
30#include "tlist.h"
31
32namespace TagLib {
33 class String;
34 namespace MP4 {
35
40 public:
44 Chapter(const String &title, long long startTime);
45
50
54 Chapter(Chapter &&other) noexcept;
55
60
65
70
74 bool operator==(const Chapter &other) const;
75
79 bool operator!=(const Chapter &other) const;
80
84 void swap(Chapter &other) noexcept;
85
89 const String &title() const;
90
94 long long startTime() const;
95
96 private:
97 class ChapterPrivate;
99 std::unique_ptr<ChapterPrivate> d;
100 };
101
104
105 } // namespace MP4
106} // namespace TagLib
107
108#endif
A generic, implicitly shared list.
Definition tlist.h:54
Definition mp4chapter.h:39
bool operator==(const Chapter &other) const
const String & title() const
bool operator!=(const Chapter &other) const
long long startTime() const
void swap(Chapter &other) noexcept
Chapter(const String &title, long long startTime)
Chapter(Chapter &&other) noexcept
Chapter & operator=(const Chapter &other)
Chapter(const Chapter &other)
Chapter & operator=(Chapter &&other) noexcept
A wide string class suitable for unicode.
Definition tstring.h:83
A namespace for all TagLib related classes and functions.
Definition apefile.h:41
#define TAGLIB_EXPORT
Definition taglib_export.h:40
#define TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
Definition taglib_export.h:55