BrowserList

The BrowserList class keeps track of all the open browser windows. More...

Publicly inherits QObject.

Public Methods

voidbrowserOpened( Browser* browser );
~BrowserList( );

Public Slots

voidbrowserClosed( );

Signals

voidcanClose( bool b );

Private Data Members

QList<QObject>_browsers;

Detailed Documentation

The BrowserList class keeps track of all the open browser windows.

The BrowserList maintains a list of all open browser windows. This list is used to determine whether a browser is allowed to be closed. Any browser can exit the application, but a browser can only close itself if there is at least one other open browser. Otherwise, the last browser could close itself, and the application would continue to run (but not do anything interesting ;)

Public Methods Documentation

void browserOpened ( Browser* browser );

When a new browser is created, it registers itself with this function call.

~BrowserList ( );

Make g++ happy.

Public Slots Documentation

void browserClosed ( );

Process a close signal from a browser. The browser is determined by looking at the sender of the signal.

Signals Documentation

void canClose ( bool b );

This signal is emitted whenever a browser is added to or removed from the list of open browsers. "b" is TRUE if there are at least 2 browsers in the list.


Return to Index.
Automatically generated on Aug 11 23:32