matroskafile.h
Go to the documentation of this file.
/***************************************************************************
* 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_MATROSKAFILE_H
#define TAGLIB_MATROSKAFILE_H
#include "taglib_export.h"
#include "tfile.h"
#include "matroskaproperties.h"
namespace TagLib::Matroska {
class Tag;
class Attachments;
class Chapters;
class TAGLIB_EXPORT File : public TagLib::File
{
public:
explicit File(FileName file, bool readProperties = true,
Properties::ReadStyle readStyle = Properties::Average);
explicit File(IOStream *stream, bool readProperties = true,
Properties::ReadStyle readStyle = Properties::Average);
~File() override;
File(const File &) = delete;
File &operator=(const File &) = delete;
TagLib::Tag *tag() const override;
Tag *tag(bool create) const;
PropertyMap properties() const override;
void removeUnsupportedProperties(const StringList &properties) override;
PropertyMap setProperties(const PropertyMap &) override;
StringList complexPropertyKeys() const override;
List<VariantMap> complexProperties(const String &key) const override;
bool setComplexProperties(const String &key, const List<VariantMap> &value) override;
Properties *audioProperties() const override;
bool save() override;
Attachments *attachments(bool create = false) const;
Chapters *chapters(bool create = false) const;
static bool isSupported(IOStream *stream);
private:
void read(bool readProperties, Properties::ReadStyle readStyle);
class FilePrivate;
friend class Properties;
TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
std::unique_ptr<FilePrivate> d;
};
}
#endif
TagLib::AudioProperties::ReadStyle
ReadStyle
Definition audioproperties.h:56
TagLib::AudioProperties::Average
@ Average
Read more of the file and make better values guesses.
Definition audioproperties.h:60
TagLib::File
A file class with some useful methods for tag manipulation.
Definition tfile.h:51
TagLib::IOStream
An abstract class that provides operations on a sequence of bytes.
Definition tiostream.h:65
TagLib::List
A generic, implicitly shared list.
Definition tlist.h:54
TagLib::Matroska::Attachments
Collection of attached files.
Definition matroskaattachments.h:45
TagLib::Matroska::Chapters
Collection of chapter editions.
Definition matroskachapters.h:50
TagLib::Matroska::File::complexProperties
List< VariantMap > complexProperties(const String &key) const override
TagLib::Matroska::File::~File
~File() override
TagLib::Matroska::File::Properties
friend class Properties
Definition matroskafile.h:180
TagLib::Matroska::File::properties
PropertyMap properties() const override
TagLib::Matroska::File::setProperties
PropertyMap setProperties(const PropertyMap &) override
TagLib::Matroska::File::attachments
Attachments * attachments(bool create=false) const
TagLib::Matroska::File::tag
Tag * tag(bool create) const
TagLib::Matroska::File::tag
TagLib::Tag * tag() const override
TagLib::Matroska::File::save
bool save() override
TagLib::Matroska::File::chapters
Chapters * chapters(bool create=false) const
TagLib::Matroska::File::File
File(IOStream *stream, bool readProperties=true, Properties::ReadStyle readStyle=Properties::Average)
TagLib::Matroska::File::isSupported
static bool isSupported(IOStream *stream)
TagLib::Matroska::File::setComplexProperties
bool setComplexProperties(const String &key, const List< VariantMap > &value) override
TagLib::Matroska::File::removeUnsupportedProperties
void removeUnsupportedProperties(const StringList &properties) override
TagLib::Matroska::File::File
File(FileName file, bool readProperties=true, Properties::ReadStyle readStyle=Properties::Average)
TagLib::Matroska::File::operator=
File & operator=(const File &)=delete
TagLib::Matroska::File::complexPropertyKeys
StringList complexPropertyKeys() const override
TagLib::Matroska::File::audioProperties
Properties * audioProperties() const override
TagLib::Matroska::File::File
File(const File &)=delete
TagLib::Matroska::Tag
Matroska tag implementation.
Definition matroskatag.h:47
TagLib::PropertyMap
A map for format-independent <key,values> tag representations.
Definition tpropertymap.h:123
TagLib::StringList
A list of strings.
Definition tstringlist.h:44
TagLib::String
A wide string class suitable for unicode.
Definition tstring.h:83
TagLib::Tag
A simple, generic interface to common audio metadata fields.
Definition tag.h:49
matroskaproperties.h
TagLib::Matroska
An implementation of Matroska metadata.
Definition matroskaattachedfile.h:32
TagLib::FileName
const char * FileName
Definition tiostream.h:59
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
tfile.h