Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
nsSoundRequest Class Reference
Inheritance diagram for nsSoundRequest:
Inheritance graph
Collaboration diagram for nsSoundRequest:
Collaboration graph

List of all members.

Public Member Functions

 nsSoundRequest ()
virtual ~nsSoundRequest ()
NS_DECL_ISUPPORTS NS_IMETHOD Notify (nsITimer *timer)=0
virtual nsresult PlaySound ()=0
void notify (in nsITimer timer)

Static Public Member Functions

static nsSoundRequestGetFromISupports (nsISupports *inSupports)

Protected Member Functions

nsresult Cleanup ()

Protected Attributes

nsCOMPtr< nsISoundmSound
nsCOMPtr< nsITimermTimer

Detailed Description

Definition at line 76 of file nsSound.cpp.

Constructor & Destructor Documentation

Definition at line 461 of file nsSound.cpp.


Definition at line 465 of file nsSound.cpp.


Member Function Documentation

Definition at line 485 of file nsSound.cpp.

  nsresult rv = NS_OK;
  printf("Sound playback done\n");
  // kill the timer
  if (mTimer) {
    mTimer = nsnull;
  // remove from parent array. Use a deathGrip to ensure that it's OK
  // to clear mSound.
  nsCOMPtr<nsISupports>   deathGrip(this);
  if (mSound.get())
    nsSound*    macSound = NS_REINTERPRET_CAST(nsSound*, mSound.get());
    rv = macSound->RemoveRequest(NS_STATIC_CAST(nsITimerCallback*, this));
    mSound = nsnull;
  return rv;

Here is the call graph for this function:

Here is the caller graph for this function:

nsSoundRequest * nsSoundRequest::GetFromISupports ( nsISupports *  inSupports) [static]

Definition at line 472 of file nsSound.cpp.

  if (!inSupports) return nsnull;
  // test to see if this is really a nsSoundRequest by trying a QI
  nsCOMPtr<nsITimerCallback>  timerCallback = do_QueryInterface(inSupports);
  if (!timerCallback) return nsnull;
  return NS_REINTERPRET_CAST(nsSoundRequest*, inSupports);

Here is the call graph for this function:

void nsITimerCallback::notify ( in nsITimer  timer) [inherited]
aTimerthe timer which has expired
virtual nsresult nsSoundRequest::PlaySound ( ) [pure virtual]

Member Data Documentation

Definition at line 98 of file nsSound.cpp.

Definition at line 99 of file nsSound.cpp.

The documentation for this class was generated from the following file: