|
browserchooser 0.0.2
A simple browser chooser.
|
#include <desktopentry.h>
Public Member Functions | |
| DesktopEntry ()=default | |
| DesktopEntry (const QString &filename) | |
| bool | parse (const QString &filename) |
| bool | isValid () const |
| QString | filename () const |
| QString | name () const |
| QString | exec () const |
| QString | executableName () const |
| QString | icon () const |
| QString | comment () const |
| QString | startupWMClass () const |
| QStringList | categories () const |
| QStringList | mimeTypes () const |
| bool | noDisplay () const |
Represents a desktop entry (.desktop file).
|
default |
Constructor.
|
explicit |
Constructor that parses the given .desktop file.
| filename | The path to the .desktop file. |
|
inlinenodiscard |
Returns the categories of the desktop entry.
|
nodiscard |
Returns the comment/description of the desktop entry.
|
inlinenodiscard |
Returns the executable command of the desktop entry.
|
nodiscard |
Returns the executable name (first token of Exec) for PATH lookup.
|
inlinenodiscard |
Returns the filename of the desktop entry.
|
inlinenodiscard |
Returns the icon name of the desktop entry.
|
inlinenodiscard |
Checks if the desktop entry is valid.
|
inlinenodiscard |
Returns the MIME types of the desktop entry.
|
nodiscard |
Returns the name of the desktop entry.
|
inlinenodiscard |
Returns whether the desktop entry has NoDisplay set (hidden from menus).
| bool DesktopEntry::parse | ( | const QString & | filename | ) |
Parses the given .desktop file.
| filename | The path to the .desktop file. |
|
inlinenodiscard |
Returns the startup WM class of the desktop entry.