#include <sbDeviceUtils.h>
Public Types | |
enum | ListenerType { MEDIA_LIST = 1, LIBRARY = 2, ALL = 3 } |
Public Member Functions | |
sbDeviceListenerIgnore (sbBaseDevice *aDevice, PRUint32 aListenerType=ALL) | |
sbDeviceListenerIgnore (sbBaseDevice *aDevice, sbIMediaItem *aItem) | |
~sbDeviceListenerIgnore () | |
void | SetIgnore (PRBool aIgnore) |
Class to help temporary turn off listening
Definition at line 538 of file sbDeviceUtils.h.
Enumerator | |
---|---|
MEDIA_LIST | |
LIBRARY | |
ALL |
Definition at line 541 of file sbDeviceUtils.h.
|
inline |
Turns off listeners for all items
Definition at line 550 of file sbDeviceUtils.h.
sbDeviceListenerIgnore::sbDeviceListenerIgnore | ( | sbBaseDevice * | aDevice, |
sbIMediaItem * | aItem | ||
) |
Turns off listeners for a specific item
Definition at line 2227 of file sbDeviceUtils.cpp.
sbDeviceListenerIgnore::~sbDeviceListenerIgnore | ( | ) |
Turns the listeners back on if they are turned off
Definition at line 2238 of file sbDeviceUtils.cpp.
void sbDeviceListenerIgnore::SetIgnore | ( | PRBool | aIgnore | ) |
Turns the listeners on or off if they are not already
Turns the listners back on if they are turned off
Definition at line 2251 of file sbDeviceUtils.cpp.