sbWindowWatcher Class Reference

#include <sbWindowWatcher.h>

Inheritance diagram for sbWindowWatcher:
[legend]
Collaboration diagram for sbWindowWatcher:
[legend]

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_SBIWINDOWWATCHER
NS_DECL_NSIOBSERVER 
sbWindowWatcher ()
 
virtual ~sbWindowWatcher ()
 
nsresult Init ()
 
void Finalize ()
 
- Public Member Functions inherited from sbIWindowWatcher
void callWithWindow (in AString aWindowType, in sbICallWithWindowCallback aCallback, [optional] in boolean aWait)
 Call callback specified by aCallback with a window of the type specified by aWindowType. Wait until a window of the specified type is available or until shutdown. Call callback with null window on shutdown. Call callback on main thread. If aWait is true, don't return until callback is called. More...
 
nsIDOMWindow getWindow (in AString aWindowType)
 Get the top-most available window of the type specified by aWindowType. Return null if no matching window is available. Since nsIDOMWindow is not thread-safe, this method may only be called on the main thread. More...
 
void waitForWindow (in AString aWindowType)
 Wait until a window of the type specified by aWindowType is available or until shutdown. This method may not be called on the main thread. Since the available window can only be used on the main thread, the available window may become unavailable after waitForWindow returns but before processing continues on the main thread. More...
 
- Public Member Functions inherited from sbSupportsWeakReference
 sbSupportsWeakReference ()
 

Friends

class sbWindowWatcherEventListener
 

Additional Inherited Members

- Public Attributes inherited from sbIWindowWatcher
readonly attribute boolean isShuttingDown
 True if the window watcher is shutting down and no more windows will become available. More...
 
- Protected Member Functions inherited from sbSupportsWeakReference
 ~sbSupportsWeakReference ()
 
void ClearWeakReferences ()
 
PRBool HasWeakReferences () const
 

Detailed Description

Definition at line 62 of file sbWindowWatcher.h.

Constructor & Destructor Documentation

sbWindowWatcher::sbWindowWatcher ( )

Construct a window watcher instance.

Definition at line 462 of file sbWindowWatcher.cpp.

sbWindowWatcher::~sbWindowWatcher ( )
virtual

Destroy a window watcher instance.

Definition at line 478 of file sbWindowWatcher.cpp.

Here is the call graph for this function:

Member Function Documentation

void sbWindowWatcher::Finalize ( )

Finalize the window watcher services.

Definition at line 539 of file sbWindowWatcher.cpp.

Here is the caller graph for this function:

nsresult sbWindowWatcher::Init ( )

Initialize the window watcher services.

Definition at line 490 of file sbWindowWatcher.cpp.

Friends And Related Function Documentation

friend class sbWindowWatcherEventListener
friend

Definition at line 72 of file sbWindowWatcher.h.


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