33 #include <boost/optional.hpp> 62 QHash<QString, QString>
Name_;
63 QHash<QString, QString> GenericName_;
64 QHash<QString, QString> Comments_;
66 QStringList Categories_;
71 mutable boost::optional<QIcon> Icon_;
73 bool IsHidden_ =
false;
104 bool IsValid ()
const;
113 bool IsHidden ()
const;
135 QString GetName (
const QString& language)
const;
147 QString GetGenericName (
const QString& language)
const;
157 QString GetComment (
const QString& language)
const;
168 QString GetIconName ()
const;
174 QStringList GetCategories ()
const;
180 Type GetType ()
const;
192 QString GetCommand ()
const;
204 QString GetWorkingDirectory ()
const;
213 QString GetPermanentID ()
const;
242 QDebug DebugPrint (QDebug stream)
const;
253 static Item_ptr FromDesktopFile (
const QString& file);
std::shared_ptr< Item > Item_ptr
bool operator!=(const Item &left, const Item &right)
Describes a single XDG .desktop entry.
bool operator==(const Item &left, const Item &right)
Type
Describes the various types of XDG .desktop files.
std::shared_ptr< ICoreProxy > ICoreProxy_ptr
QDebug operator<<(QDebug dbg, const Item &item)
Serializes item contents to the debugging stream.