![]() |
LeechCraft
0.6.70-3565-g2d86529
Modular cross-platform feature rich live environment.
|
Classes | |
class | DesktopParser |
A parser for XDG .desktop files. More... | |
class | Item |
Describes a single XDG .desktop entry. More... | |
class | ItemsDatabase |
An ItemsFinder automatically watching for changes in .desktop files. More... | |
class | ItemsFinder |
Finds and parses XDG .desktop files. More... | |
Typedefs | |
using | Item_ptr = std::shared_ptr< Item > |
typedef QHash< QString, QList < Item_ptr > > | Cat2Items_t |
Enumerations | |
enum | Type { Type::Other, Type::Application, Type::URL, Type::Dir } |
Describes the various types of XDG .desktop files. More... | |
Functions | |
bool | operator== (const Item &left, const Item &right) |
QDebug | operator<< (QDebug debug, const Item &item) |
Serializes item contents to the debugging stream. More... | |
QSet< QString > | ToPaths (Type type) |
QSet< QString > | ToPaths (const QList< Type > &types) |
Returns a set of typical directories with desktop files of the given types. More... | |
QIcon | GetAppIcon (const QString &name) |
QPixmap | GetAppPixmap (const QString &name) |
Variables | |
class UTIL_XDG_API | Item |
class UTIL_XDG_API | ItemsFinder |
typedef QHash<QString, QList<Item_ptr> > LeechCraft::Util::XDG::Cat2Items_t |
Definition at line 47 of file itemsfinder.h.
typedef std::shared_ptr< Item > LeechCraft::Util::XDG::Item_ptr |
|
strong |
Describes the various types of XDG .desktop
files.
Enumerator | |
---|---|
Other |
Unknown type. |
Application |
A shortcut to an application. |
URL |
A shortcut to an URL. |
Dir |
A shortcut to a directory. |
Definition at line 49 of file itemtypes.h.
UTIL_XDG_API QIcon LeechCraft::Util::XDG::GetAppIcon | ( | const QString & | name | ) |
Definition at line 40 of file xdg.cpp.
References GetAppPixmap().
UTIL_XDG_API QPixmap LeechCraft::Util::XDG::GetAppPixmap | ( | const QString & | name | ) |
Definition at line 45 of file xdg.cpp.
Referenced by GetAppIcon().
QDebug LeechCraft::Util::XDG::operator<< | ( | QDebug | debug, |
const Item & | item | ||
) |
Serializes item contents to the debugging stream.
This function is provided for convenience to pretty-print contents of item to a debugging stream.
[in] | stream | The stream to debug-print |
[in] | item | The XDG item to print. |
Definition at line 234 of file item.cpp.
References LeechCraft::Util::XDG::Item::DebugPrint().
bool LeechCraft::Util::XDG::operator== | ( | const Item & | left, |
const Item & | right | ||
) |
QSet<QString> LeechCraft::Util::XDG::ToPaths | ( | Type | type | ) |
Definition at line 40 of file itemtypes.cpp.
References Application, Dir, Other, and URL.
Referenced by ToPaths().
UTIL_XDG_API QSet< QString > LeechCraft::Util::XDG::ToPaths | ( | const QList< Type > & | types | ) |
Returns a set of typical directories with desktop
files of the given types.
[in] | types | The types of the interesting .desktop files. |
Definition at line 59 of file itemtypes.cpp.
References ToPaths().
Definition at line 44 of file itemsfinder.h.