matroskachapter.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_MATROSKACHAPTER_H
#define TAGLIB_MATROSKACHAPTER_H
#include <memory>
#include "taglib_export.h"
#include "tlist.h"
namespace TagLib {
class String;
class ByteVector;
namespace EBML {
class MkChapters;
}
namespace Matroska {
class TAGLIB_EXPORT Chapter
{
public:
using UID = unsigned long long;
using Time = unsigned long long;
class TAGLIB_EXPORT Display
{
public:
Display(const String &string, const String &language);
Display(const Display &other);
Display(Display &&other) noexcept;
~Display();
Display &operator=(const Display &other);
Display &operator=(Display &&other) noexcept;
void swap(Display &other) noexcept;
const String &string() const;
const String &language() const;
private:
class DisplayPrivate;
TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
std::unique_ptr<DisplayPrivate> d;
};
Chapter(Time timeStart, Time timeEnd, const List<Display> &displayList,
UID uid, bool hidden = false);
Chapter(const Chapter &other);
Chapter(Chapter &&other) noexcept;
~Chapter();
Chapter &operator=(const Chapter &other);
Chapter &operator=(Chapter &&other) noexcept;
void swap(Chapter &other) noexcept;
UID uid() const;
Time timeStart() const;
Time timeEnd() const;
bool isHidden() const;
const List<Display> &displayList() const;
private:
class ChapterPrivate;
TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
std::unique_ptr<ChapterPrivate> d;
};
}
}
#endif
TagLib::ByteVector
A byte vector.
Definition tbytevector.h:46
TagLib::List
A generic, implicitly shared list.
Definition tlist.h:54
TagLib::Matroska::Chapter::Display::operator=
Display & operator=(const Display &other)
TagLib::Matroska::Chapter::Display::Display
Display(Display &&other) noexcept
TagLib::Matroska::Chapter::Display::Display
Display(const Display &other)
TagLib::Matroska::Chapter::Display::Display
Display(const String &string, const String &language)
TagLib::Matroska::Chapter::Display::operator=
Display & operator=(Display &&other) noexcept
TagLib::Matroska::Chapter::Display::~Display
~Display()
TagLib::Matroska::Chapter::Display::string
const String & string() const
TagLib::Matroska::Chapter::Display::swap
void swap(Display &other) noexcept
TagLib::Matroska::Chapter::Display::language
const String & language() const
TagLib::Matroska::Chapter::uid
UID uid() const
TagLib::Matroska::Chapter::Time
unsigned long long Time
Timestamp in nanoseconds.
Definition matroskachapter.h:50
TagLib::Matroska::Chapter::operator=
Chapter & operator=(Chapter &&other) noexcept
TagLib::Matroska::Chapter::Chapter
Chapter(Chapter &&other) noexcept
TagLib::Matroska::Chapter::UID
unsigned long long UID
Unique identifier.
Definition matroskachapter.h:47
TagLib::Matroska::Chapter::timeEnd
Time timeEnd() const
TagLib::Matroska::Chapter::Chapter
Chapter(Time timeStart, Time timeEnd, const List< Display > &displayList, UID uid, bool hidden=false)
TagLib::Matroska::Chapter::~Chapter
~Chapter()
TagLib::Matroska::Chapter::timeStart
Time timeStart() const
TagLib::Matroska::Chapter::operator=
Chapter & operator=(const Chapter &other)
TagLib::Matroska::Chapter::isHidden
bool isHidden() const
TagLib::Matroska::Chapter::swap
void swap(Chapter &other) noexcept
TagLib::Matroska::Chapter::Chapter
Chapter(const Chapter &other)
TagLib::Matroska::Chapter::displayList
const List< Display > & displayList() const
TagLib::String
A wide string class suitable for unicode.
Definition tstring.h:83
TagLib::EBML
Definition matroskaattachments.h:32
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.h
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
tlist.h