metadata_handler.h File Reference

Definition of the MetadataHandler class. More...

#include "common.h"
#include "dictionary.h"
#include "cds_objects.h"
#include "io_handler.h"

Go to the source code of this file.

Data Structures

struct  mt_key
struct  res_key
class  MetadataHandler
 This class is responsible for providing access to metadata information of various media. More...

Defines

#define CH_DEFAULT   0
#define CH_LIBEXIF   1
#define CH_ID3   2
#define CH_TRANSCODE   3
#define CH_EXTURL   4
#define CH_MP4   5
#define CH_FFTH   6
#define CONTENT_TYPE_MP3   "mp3"
#define CONTENT_TYPE_OGG   "ogg"
#define CONTENT_TYPE_FLAC   "flac"
#define CONTENT_TYPE_JPG   "jpg"
#define CONTENT_TYPE_PLAYLIST   "playlist"
#define CONTENT_TYPE_MP4   "mp4"
#define CONTENT_TYPE_PCM   "pcm"
#define CONTENT_TYPE_AVI   "avi"
#define CONTENT_TYPE_MPEG   "mpeg"
#define CONTENT_TYPE_DVD   "dvd"
#define CONTENT_TYPE_QUICKTIME   "quicktime"
#define OGG_THEORA   "t"
#define RESOURCE_CONTENT_TYPE   "rct"
#define RESOURCE_HANDLER   "rh"
#define ID3_ALBUM_ART   "aa"
#define EXIF_THUMBNAIL   "EX_TH"
#define THUMBNAIL   "th"

Typedefs

typedef struct mt_key mt_key
typedef struct res_key res_key

Enumerations

enum  metadata_fields_t {
  M_TITLE = 0, M_ARTIST, M_ALBUM, M_DATE,
  M_GENRE, M_DESCRIPTION, M_LONGDESCRIPTION, M_TRACKNUMBER,
  M_ALBUMARTURI, M_REGION, M_AUTHOR, M_DIRECTOR,
  M_PUBLISHER, M_RATING, M_ACTOR, M_PRODUCER,
  M_MAX
}
enum  resource_attributes_t {
  R_SIZE = 0, R_DURATION, R_BITRATE, R_SAMPLEFREQUENCY,
  R_NRAUDIOCHANNELS, R_RESOLUTION, R_COLORDEPTH, R_PROTOCOLINFO,
  R_MAX
}

Variables

mt_key MT_KEYS []
res_key RES_KEYS []

Detailed Description

Definition of the MetadataHandler class.

Definition in file metadata_handler.h.


Define Documentation

#define CH_DEFAULT   0

Definition at line 41 of file metadata_handler.h.

Referenced by web::addObject::addUrl(), and MetadataHandler::setMetadata().

#define CH_EXTURL   4

Definition at line 45 of file metadata_handler.h.

Referenced by CdsResourceManager::addResources().

#define CH_FFTH   6
#define CH_ID3   2
#define CH_LIBEXIF   1
#define CH_MP4   5
#define CH_TRANSCODE   3

Definition at line 44 of file metadata_handler.h.

Referenced by CdsResourceManager::addResources().

#define CONTENT_TYPE_AVI   "avi"
#define CONTENT_TYPE_DVD   "dvd"
#define CONTENT_TYPE_FLAC   "flac"
#define CONTENT_TYPE_JPG   "jpg"
#define CONTENT_TYPE_MP3   "mp3"
#define CONTENT_TYPE_MP4   "mp4"
#define CONTENT_TYPE_MPEG   "mpeg"

Definition at line 57 of file metadata_handler.h.

Referenced by FallbackLayout::FallbackLayout(), and ConfigManager::validate().

#define CONTENT_TYPE_OGG   "ogg"
#define CONTENT_TYPE_PCM   "pcm"
#define CONTENT_TYPE_PLAYLIST   "playlist"
#define CONTENT_TYPE_QUICKTIME   "quicktime"

Definition at line 59 of file metadata_handler.h.

#define EXIF_THUMBNAIL   "EX_TH"

Definition at line 67 of file metadata_handler.h.

Referenced by CdsResourceManager::addResources().

#define ID3_ALBUM_ART   "aa"

Definition at line 66 of file metadata_handler.h.

Referenced by CdsResourceManager::addResources().

#define OGG_THEORA   "t"

Definition at line 61 of file metadata_handler.h.

#define RESOURCE_CONTENT_TYPE   "rct"

Definition at line 63 of file metadata_handler.h.

Referenced by CdsResourceManager::addResources().

#define RESOURCE_HANDLER   "rh"
#define THUMBNAIL   "th"

Definition at line 68 of file metadata_handler.h.

Referenced by CdsResourceManager::addResources().


Typedef Documentation

typedef struct mt_key mt_key

Definition at line 93 of file metadata_handler.h.

typedef struct res_key res_key

Definition at line 116 of file metadata_handler.h.


Enumeration Type Documentation

Enumerator:
M_TITLE 
M_ARTIST 
M_ALBUM 
M_DATE 
M_GENRE 
M_DESCRIPTION 
M_LONGDESCRIPTION 
M_TRACKNUMBER 
M_ALBUMARTURI 
M_REGION 
M_AUTHOR 
Todo:
make sure that those are only used with appropriate upnp classes
M_DIRECTOR 
M_PUBLISHER 
M_RATING 
M_ACTOR 
M_PRODUCER 
M_MAX 

Definition at line 70 of file metadata_handler.h.

Enumerator:
R_SIZE 
R_DURATION 
R_BITRATE 
R_SAMPLEFREQUENCY 
R_NRAUDIOCHANNELS 
R_RESOLUTION 
R_COLORDEPTH 
R_PROTOCOLINFO 
R_MAX 

Definition at line 103 of file metadata_handler.h.


Variable Documentation

Definition at line 76 of file metadata_handler.cc.

Definition at line 95 of file metadata_handler.cc.


Generated on Fri Mar 26 20:16:54 2010 for MediaTomb by  doxygen 1.6.1