matroskachapteredition.h
Go to the documentation of this file.
/***************************************************************************
copyright : (C) 2025 by Urs Fleisch
email : ufleisch@users.sourceforge.net
***************************************************************************/
/***************************************************************************
* This library is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License version *
* 2.1 as published by the Free Software Foundation. *
* *
* This library is distributed in the hope that it will be useful, but *
* WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
* Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public *
* License along with this library; if not, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA *
* 02110-1301 USA *
* *
* Alternatively, this file is available under the Mozilla Public *
* License Version 1.1. You may obtain a copy of the License at *
* http://www.mozilla.org/MPL/ *
***************************************************************************/
#ifndef TAGLIB_MATROSKACHAPTEREDITION_H
#define TAGLIB_MATROSKACHAPTEREDITION_H
#include "matroskachapter.h"
namespace TagLib {
class String;
class ByteVector;
namespace Matroska {
class TAGLIB_EXPORT ChapterEdition
{
public:
using UID = unsigned long long;
ChapterEdition(const List<Chapter> &chapterList,
bool isDefault, bool isOrdered = false, UID uid = 0);
ChapterEdition(const ChapterEdition &other);
ChapterEdition(ChapterEdition &&other) noexcept;
~ChapterEdition();
ChapterEdition &operator=(const ChapterEdition &other);
ChapterEdition &operator=(ChapterEdition &&other) noexcept;
void swap(ChapterEdition &other) noexcept;
UID uid() const;
bool isDefault() const;
bool isOrdered() const;
const List<Chapter> &chapterList() const;
private:
class ChapterEditionPrivate;
TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
std::unique_ptr<ChapterEditionPrivate> d;
};
}
}
#endif
TagLib::ByteVector
A byte vector.
Definition tbytevector.h:46
TagLib::List
A generic, implicitly shared list.
Definition tlist.h:54
TagLib::Matroska::ChapterEdition::isDefault
bool isDefault() const
TagLib::Matroska::ChapterEdition::uid
UID uid() const
TagLib::Matroska::ChapterEdition::ChapterEdition
ChapterEdition(const ChapterEdition &other)
TagLib::Matroska::ChapterEdition::chapterList
const List< Chapter > & chapterList() const
TagLib::Matroska::ChapterEdition::operator=
ChapterEdition & operator=(const ChapterEdition &other)
TagLib::Matroska::ChapterEdition::ChapterEdition
ChapterEdition(ChapterEdition &&other) noexcept
TagLib::Matroska::ChapterEdition::swap
void swap(ChapterEdition &other) noexcept
TagLib::Matroska::ChapterEdition::~ChapterEdition
~ChapterEdition()
TagLib::Matroska::ChapterEdition::UID
unsigned long long UID
Unique identifier.
Definition matroskachapteredition.h:41
TagLib::Matroska::ChapterEdition::ChapterEdition
ChapterEdition(const List< Chapter > &chapterList, bool isDefault, bool isOrdered=false, UID uid=0)
TagLib::Matroska::ChapterEdition::operator=
ChapterEdition & operator=(ChapterEdition &&other) noexcept
TagLib::Matroska::ChapterEdition::isOrdered
bool isOrdered() const
TagLib::String
A wide string class suitable for unicode.
Definition tstring.h:83
matroskachapter.h
TagLib::Matroska
An implementation of Matroska metadata.
Definition matroskaattachedfile.h:32
TagLib
A namespace for all TagLib related classes and functions.
Definition apefile.h:41
TAGLIB_EXPORT
#define TAGLIB_EXPORT
Definition taglib_export.h:40
TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
#define TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
Definition taglib_export.h:55