sbDeviceMediaItemDecorator Class Reference

#include <sbDeviceMediaItemDecorator.h>

Static Public Member Functions

static nsresult DecorateMediaItem (sbIDevice *aDevice, sbIMediaItem *aMediaItem, const nsAString &aImportType)
 

Detailed Description

A class for adjusting the properties of media items when imported from a device. Rules for which media items to adjust and how are specified by <import> elements in device info XML files. Those rules are resolved in device add-ons (e.g., the MTP add-on) before invoking this class.

Definition at line 38 of file sbDeviceMediaItemDecorator.h.

Member Function Documentation

nsresult sbDeviceMediaItemDecorator::DecorateMediaItem ( sbIDevice aDevice,
sbIMediaItem aMediaItem,
const nsAString &  aImportType 
)
static

Add or modify properties of aMediaItem according to aImportType

Parameters
aDeviceThe device on which the media item content resides
aMediaItemA media item to decorate according to aImportType
aImportTypeA symbolic name that determines how to decorate aMediaItem, such as what properties to add and how to compute their values. Recognized types are: fm-recording voice-recording
Todo:
Include the file creation timestamp in the track name if possible.

Definition at line 34 of file sbDeviceMediaItemDecorator.cpp.

Here is the call graph for this function:


The documentation for this class was generated from the following files: