browserchooser 0.0.2
A simple browser chooser.
Loading...
Searching...
No Matches
desktopentry.h File Reference
#include <expected>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
Include dependency graph for desktopentry.h:

Go to the source code of this file.

Classes

class  DesktopEntry

Enumerations

enum class  DesktopEntryError { ParseFailed }

Functions

std::expected< DesktopEntry, DesktopEntryError > readDesktopEntry (const QString &filename)

Enumeration Type Documentation

◆ DesktopEntryError

enum class DesktopEntryError
strong

Error code for reading a desktop entry.

Function Documentation

◆ readDesktopEntry()

std::expected< DesktopEntry, DesktopEntryError > readDesktopEntry ( const QString & filename)
nodiscard

Reads a desktop entry from the given file.

Parameters
filenamePath to the .desktop file.
Returns
The parsed DesktopEntry on success, or an error.