import "sbIDeviceLibrary.idl";
Inheritance diagram for sbIDeviceLibrary:
Public Member Functions | |
void | initialize (in AString aLibraryId) |
Initialize the device library. | |
void | finalize () |
Finalize the device library. | |
nsIArray | getSyncPlaylistList () |
Return the list of playlists the user wants to sync from the main library to the device. | |
void | setSyncPlaylistList (in nsIArray aPlaylistList) |
Set the list of playlists the user wants to sync from the main library to the device. | |
void | addToSyncPlaylistList (in sbIMediaList aPlaylist) |
Add a playlist to the list of playlists the user wants to sync from the main library to the device. | |
void | sync () |
Initiates a sync operation on this library. | |
void | addDeviceLibraryListener (in sbIDeviceLibraryListener aListener) |
Add a listener to this device library. | |
void | removeDeviceLibraryListener (in sbIDeviceLibraryListener aListener) |
Remove a listener from this device library. | |
Public Attributes | |
const unsigned long | MGMT_TYPE_MANUAL = 0 |
Manually manage device. | |
const unsigned long | MGMT_TYPE_SYNC_ALL = 1 |
Automatically synchronize all of library to device. | |
const unsigned long | MGMT_TYPE_SYNC_PLAYLISTS = 2 |
Automatically synchronize a list of playlsits to device. | |
attribute PRUint32 | mgmtType |
The currently configured device management type preference for the device library. |
Definition at line 210 of file sbIDeviceLibrary.idl.
void sbIDeviceLibrary::initialize | ( | in AString | aLibraryId | ) |
Initialize the device library.
aLibraryId | Device library identifier. |
nsIArray sbIDeviceLibrary::getSyncPlaylistList | ( | ) |
Return the list of playlists the user wants to sync from the main library to the device.
void sbIDeviceLibrary::setSyncPlaylistList | ( | in nsIArray | aPlaylistList | ) |
Set the list of playlists the user wants to sync from the main library to the device.
aPlaylistList | List of sbIMediaLists that represent the playlists to sync. |
void sbIDeviceLibrary::addToSyncPlaylistList | ( | in sbIMediaList | aPlaylist | ) |
Add a playlist to the list of playlists the user wants to sync from the main library to the device.
aPlaylist | The playlist to add. |
void sbIDeviceLibrary::sync | ( | ) |
Initiates a sync operation on this library.
This is a no-op if this library is in manual management mode.
void sbIDeviceLibrary::addDeviceLibraryListener | ( | in sbIDeviceLibraryListener | aListener | ) |
Add a listener to this device library.
sbIDeviceLibraryListener | aListener listener to add. |
void sbIDeviceLibrary::removeDeviceLibraryListener | ( | in sbIDeviceLibraryListener | aListener | ) |
Remove a listener from this device library.
sbIDeviceLibraryListener | aListener listener to remove. |
attribute PRUint32 sbIDeviceLibrary::mgmtType |
The currently configured device management type preference for the device library.
Definition at line 246 of file sbIDeviceLibrary.idl.