The BrowserList class keeps track of all the open browser windows. More...
Publicly inherits QObject.
void | browserOpened | ( Browser* browser ); |
~BrowserList | ( ); |
void | browserClosed | ( ); |
void | canClose | ( bool b ); |
QList<QObject> | _browsers; |
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 ;)When a new browser is created, it registers itself with this function call.
Make g++ happy.
Process a close signal from a browser. The browser is determined by looking at the sender of the signal.
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.