#include <sbDeviceMediaItemDecorator.h>
Static Public Member Functions | |
static nsresult | DecorateMediaItem (sbIDevice *aDevice, sbIMediaItem *aMediaItem, const nsAString &aImportType) |
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.
|
static |
Add or modify properties of aMediaItem according to aImportType
aDevice | The device on which the media item content resides |
aMediaItem | A media item to decorate according to aImportType |
aImportType | A 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 |
Definition at line 34 of file sbDeviceMediaItemDecorator.cpp.