matroskaattachedfile.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_MATROSKAATTACHEDFILE_H
#define TAGLIB_MATROSKAATTACHEDFILE_H
#include <memory>
#include "tstring.h"
#include "taglib_export.h"
namespace TagLib {
class String;
class ByteVector;
namespace Matroska {
class TAGLIB_EXPORT AttachedFile
{
public:
using UID = unsigned long long;
AttachedFile(const ByteVector &data, const String &fileName,
const String &mediaType, UID uid = 0,
const String &description = String());
AttachedFile(const AttachedFile &other);
AttachedFile(AttachedFile &&other) noexcept;
~AttachedFile();
AttachedFile &operator=(const AttachedFile &other);
AttachedFile &operator=(AttachedFile &&other) noexcept;
void swap(AttachedFile &other) noexcept;
const String &fileName() const;
const String &description() const;
const String &mediaType() const;
const ByteVector &data() const;
UID uid() const;
private:
class AttachedFilePrivate;
TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
std::unique_ptr<AttachedFilePrivate> d;
};
}
}
#endif
TagLib::ByteVector
A byte vector.
Definition tbytevector.h:46
TagLib::Matroska::AttachedFile::AttachedFile
AttachedFile(const AttachedFile &other)
TagLib::Matroska::AttachedFile::operator=
AttachedFile & operator=(const AttachedFile &other)
TagLib::Matroska::AttachedFile::mediaType
const String & mediaType() const
TagLib::Matroska::AttachedFile::UID
unsigned long long UID
Unique identifier.
Definition matroskaattachedfile.h:38
TagLib::Matroska::AttachedFile::swap
void swap(AttachedFile &other) noexcept
TagLib::Matroska::AttachedFile::AttachedFile
AttachedFile(const ByteVector &data, const String &fileName, const String &mediaType, UID uid=0, const String &description=String())
TagLib::Matroska::AttachedFile::uid
UID uid() const
TagLib::Matroska::AttachedFile::fileName
const String & fileName() const
TagLib::Matroska::AttachedFile::description
const String & description() const
TagLib::Matroska::AttachedFile::data
const ByteVector & data() const
TagLib::Matroska::AttachedFile::AttachedFile
AttachedFile(AttachedFile &&other) noexcept
TagLib::Matroska::AttachedFile::operator=
AttachedFile & operator=(AttachedFile &&other) noexcept
TagLib::Matroska::AttachedFile::~AttachedFile
~AttachedFile()
TagLib::String
A wide string class suitable for unicode.
Definition tstring.h:83
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
tstring.h