|
browserchooser 0.0.2
A simple browser chooser.
|
#include <browserchooser.h>
Public Member Functions | |
| BrowserChooser (const QString &urlToOpen=QString()) | |
| int | exec () |
| void | openBrowser (const BrowserOption &option) |
| void | remember (const BrowserOption &option, const QString &domainPattern=QString()) |
| const QString & | urlToOpen () const |
| const std::expected< QString, ParseUrlError > & | parsedDomain () const |
| const QList< BrowserOption > & | availableBrowsers () const |
| bool | hideGuestProfiles () const |
| void | setHideGuestProfiles (bool hide) |
| bool | showGuestProfiles () const |
| void | setShowGuestProfiles (bool show) |
| bool | hideBrowsersWithoutProfiles () const |
| void | setHideBrowsersWithoutProfiles (bool hide) |
| bool | rememberChoiceChecked () const |
| void | setRememberChoiceChecked (bool checked) |
| bool | rememberDomainWildcard () const |
| void | setRememberDomainWildcard (bool wildcard) |
Manages browser selection based on a URL.
Constructor.
| urlToOpen | The URL to be opened in the selected browser. |
|
inlinenodiscard |
Get the list of available browser options.
|
nodiscard |
Executes the browser chooser dialog.
|
nodiscard |
Whether the Other browsers section is hidden.
|
nodiscard |
Whether Guest profile options are hidden. Default true.
| void BrowserChooser::openBrowser | ( | const BrowserOption & | option | ) |
Open the specified browser option.
| option | The browser and optional profile to open. |
|
inlinenodiscard |
Get the parsed domain from the URL.
| void BrowserChooser::remember | ( | const BrowserOption & | option, |
| const QString & | domainPattern = QString() ) |
Remember the browser choice for the given domain pattern.
| option | The browser and optional profile to remember. |
| domainPattern | The domain pattern to associate with the browser. |
|
nodiscard |
Whether the "Do not ask again" checkbox was checked when the selector last closed.
|
nodiscard |
Whether the "all subdomains" radio was last used.
| void BrowserChooser::setHideBrowsersWithoutProfiles | ( | bool | hide | ) |
Sets whether to hide the Other browsers section.
| void BrowserChooser::setHideGuestProfiles | ( | bool | hide | ) |
Sets whether to hide Guest profile options.
| void BrowserChooser::setRememberChoiceChecked | ( | bool | checked | ) |
Sets whether the "Do not ask again" checkbox is checked.
| void BrowserChooser::setRememberDomainWildcard | ( | bool | wildcard | ) |
Sets which domain scope radio was last used.
| void BrowserChooser::setShowGuestProfiles | ( | bool | show | ) |
Sets whether to show Guest profile options.
|
nodiscard |
Whether Guest profile options are shown (inverse of hideGuestProfiles).
|
inlinenodiscard |
Get the URL to be opened.