Struct xpcom::interfaces::nsISound
[−]
[src]
#[repr(C)]pub struct nsISound { /* fields omitted */ }
interface nsISound : nsISupports
Methods
impl nsISound
[src]
pub fn coerce<T: nsISoundCoerce>(&self) -> &T
[src]
Cast this nsISound
to one of its base interfaces.
impl nsISound
[src]
pub const EVENT_NEW_MAIL_RECEIVED: i64
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.
*/
pub const EVENT_ALERT_DIALOG_OPEN: i64
EVENT_ALERT_DIALOG_OPEN: i64 = 1
pub const EVENT_CONFIRM_DIALOG_OPEN: i64
EVENT_CONFIRM_DIALOG_OPEN: i64 = 2
pub const EVENT_PROMPT_DIALOG_OPEN: i64
EVENT_PROMPT_DIALOG_OPEN: i64 = 3
pub const EVENT_SELECT_DIALOG_OPEN: i64
EVENT_SELECT_DIALOG_OPEN: i64 = 4
pub const EVENT_MENU_EXECUTE: i64
EVENT_MENU_EXECUTE: i64 = 5
pub const EVENT_MENU_POPUP: i64
EVENT_MENU_POPUP: i64 = 6
pub const EVENT_EDITOR_MAX_LEN: i64
EVENT_EDITOR_MAX_LEN: i64 = 7
pub unsafe fn Play(&self, aURL: *const nsIURL) -> nsresult
[src]
void play (in nsIURL aURL);
pub unsafe fn PlaySystemSound(&self, soundAlias: &nsAString) -> nsresult
[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);
pub unsafe fn Beep(&self) -> nsresult
[src]
void beep ();
pub unsafe fn Init(&self) -> nsresult
[src]
/**
* Not strictly necessary, but avoids delay before first sound.
* The various methods on nsISound call Init() if they need to.
*/
void init ();
pub unsafe fn PlayEventSound(&self, aEventId: uint32_t) -> nsresult
[src]
void playEventSound (in unsigned long aEventId);
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsISound
[src]
const IID: nsIID
IID: nsIID = nsID(3284307346, 41343, 17375, [151, 109, 78, 234, 230, 249, 149, 252])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[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]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsISound
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.