1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
#ifndef AFTL_MTP_METADATA_METADATA_H
#define AFTL_MTP_METADATA_METADATA_H
#include <mtp/types.h>
#include <mtp/ByteArray.h>
#include <memory>
#include <string>
namespace mtp
{
struct Metadata;
DECLARE_PTR(Metadata);
struct MetadataPicture
{
std::string Type;
std::string MimeType;
std::string Description;
mtp::ByteArray Data;
};
struct Metadata
{
std::string Title;
std::string Artist;
std::string Album;
std::string Genre;
unsigned Year;
unsigned Track;
MetadataPicture Picture;
static MetadataPtr Read(const std::string & path);
};
}
#endif
|