Struct xpcom::interfaces::nsISound [] [src]

#[repr(C)]
pub struct nsISound { /* fields omitted */ }

interface nsISound : nsISupports

Methods

impl nsISound
[src]

[src]

Cast this nsISound to one of its base interfaces.

impl nsISound
[src]

EVENT_NEW_MAIL_RECEIVED: i64 = 0
/**
   * In some situations, playEventSound will be called.  Then, each
   * implementations will play a system sound for the event if it's necessary.
   *
   * NOTE: Don't change these values because they are used in
   * nsPIPromptService.idl. So, if they are changed, that makes big impact for
   * the embedders.
   */

EVENT_ALERT_DIALOG_OPEN: i64 = 1

EVENT_CONFIRM_DIALOG_OPEN: i64 = 2

EVENT_PROMPT_DIALOG_OPEN: i64 = 3

EVENT_SELECT_DIALOG_OPEN: i64 = 4

EVENT_MENU_EXECUTE: i64 = 5

EVENT_MENU_POPUP: i64 = 6

EVENT_EDITOR_MAX_LEN: i64 = 7

[src]

void play (in nsIURL aURL);

[src]

/**
   * for playing system sounds
   *
   * NS_SYSSOUND_* params are obsolete. The new events will not be supported by
   * this method.  You should use playEventSound method instaed.
   */

void playSystemSound (in AString soundAlias);

[src]

void beep ();

[src]

/**
    * Not strictly necessary, but avoids delay before first sound.
    * The various methods on nsISound call Init() if they need to.
    */

void init ();

[src]

void playEventSound (in unsigned long aEventId);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsISound
[src]

IID: nsIID = nsID(3284307346, 41343, 17375, [151, 109, 78, 234, 230, 249, 149, 252])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsISound
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsISound
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.