File: Metadata.h

package info (click to toggle)
android-file-transfer 4.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,496 kB
  • sloc: cpp: 12,909; python: 140; lex: 47; xml: 26; sh: 13; makefile: 6
file content (37 lines) | stat: -rw-r--r-- 595 bytes parent folder | download
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