|
browserchooser 0.0.2
A simple browser chooser.
|
#include <browseroption.h>
Public Member Functions | |
| BrowserOption (const QString &desktopPath, const QString &profileId=QString(), const QString &profileDisplayName=QString(), bool singleProfile=false, bool fromProfileDiscovery=false) | |
| BrowserOption (const DesktopEntry &entry, const QString &profileId=QString(), const QString &profileDisplayName=QString(), bool singleProfile=false, bool fromProfileDiscovery=false) | |
| QString | desktopPath () const |
| QString | profileName () const |
| QString | displayName () const |
| QString | profileLabel () const |
| DesktopEntry | entry () const |
| bool | isValid () const |
| bool | fromProfileDiscovery () const |
A selectable browser option: a desktop entry plus an optional Chrome/Chromium profile. Default profile is represented by an empty profile name.
| BrowserOption::BrowserOption | ( | const QString & | desktopPath, |
| const QString & | profileId = QString(), | ||
| const QString & | profileDisplayName = QString(), | ||
| bool | singleProfile = false, | ||
| bool | fromProfileDiscovery = false ) |
Construct from .desktop file path, profile ID (for launch), and optional profile display name (for UI). If display name is empty, profile ID is used.
| singleProfile | When true, displayName() returns only the browser name. |
| fromProfileDiscovery | When true, this option came from profile discovery. |
| BrowserOption::BrowserOption | ( | const DesktopEntry & | entry, |
| const QString & | profileId = QString(), | ||
| const QString & | profileDisplayName = QString(), | ||
| bool | singleProfile = false, | ||
| bool | fromProfileDiscovery = false ) |
Construct from a desktop entry, profile ID, and optional display name.
|
inlinenodiscard |
Path to the .desktop file.
|
nodiscard |
Display name, e.g. "Google Chrome Beta (Default)" or "Google Chrome Beta (Work)".
|
nodiscard |
Underlying desktop entry.
|
inlinenodiscard |
Whether this option came from profile discovery (Chrome/Firefox profiles).
|
nodiscard |
Whether this option is valid (.desktop file exists and parses).
|
nodiscard |
Profile label for use under a browser section header (e.g. "Default", "Work").
|
inlinenodiscard |
Profile ID for launch (e.g. --profile= or -P); empty for Default.