37 QHash<QString, QString>
Name_;
38 QHash<QString, QString> GenericName_;
39 QHash<QString, QString> Comments_;
41 QStringList Categories_;
46 mutable std::optional<QIcon> Icon_;
48 bool IsHidden_ =
false;
49 Type Type_ = Type::Other;
79 bool IsValid ()
const;
88 bool IsHidden ()
const;
110 QString GetName (
const QString& language)
const;
122 QString GetGenericName (
const QString& language)
const;
132 QString GetComment (
const QString& language)
const;
143 QString GetIconName ()
const;
149 QStringList GetCategories ()
const;
155 Type GetType ()
const;
167 QString GetCommand ()
const;
179 QString GetWorkingDirectory ()
const;
188 QString GetPermanentID ()
const;
217 QDebug DebugPrint (QDebug stream)
const;
228 static Item_ptr FromDesktopFile (
const QString& file);
Describes a single XDG .desktop entry.
auto operator==(const T &left, const T &right)
std::shared_ptr< ICoreProxy > ICoreProxy_ptr
Type
Describes the various types of XDG .desktop files.
std::shared_ptr< Item > Item_ptr
QDebug operator<<(QDebug dbg, const Item &item)
Serializes item contents to the debugging stream.