![]() |
LeechCraft
0.6.70-3565-g2d86529
Modular cross-platform feature rich live environment.
|
An ItemsFinder automatically watching for changes in .desktop files.
More...
#include "itemsdatabase.h"
Inheritance diagram for LeechCraft::Util::XDG::ItemsDatabase:
Collaboration diagram for LeechCraft::Util::XDG::ItemsDatabase:Public Member Functions | |
| ItemsDatabase (ICoreProxy_ptr proxy, const QList< Type > &types, QObject *parent=nullptr) | |
| Creates the ItemsDatabase for the given types. More... | |
Public Member Functions inherited from LeechCraft::Util::XDG::ItemsFinder | |
| ItemsFinder (ICoreProxy_ptr, const QList< Type > &types, QObject *parent=nullptr) | |
| Constructs the items finder for the given types. More... | |
| bool | IsReady () const |
| Checks whether this items finder is ready. More... | |
| Cat2Items_t | GetItems () const |
| Returns the categorized list of XDG items. More... | |
| Item_ptr | FindItem (const QString &permanentID) const |
| Finds an XDG item for the given permanent ID. More... | |
Additional Inherited Members | |
Public Slots inherited from LeechCraft::Util::XDG::ItemsFinder | |
| void | update () |
| Updates the list of items. More... | |
Signals inherited from LeechCraft::Util::XDG::ItemsFinder | |
| void | itemsListChanged () |
| Notifies when the list of items changes in any way. More... | |
An ItemsFinder automatically watching for changes in .desktop files.
The only difference between this class and ItemsFinder is in this class automatically watching for changes in the directories matching the types passed to its constructor. The changes include both updates to the existing files as well as addition of new files and removal of already existing ones.
Refer to the documentation for ItemsFinder for more information.
Definition at line 55 of file itemsdatabase.h.
| LeechCraft::Util::XDG::ItemsDatabase::ItemsDatabase | ( | ICoreProxy_ptr | proxy, |
| const QList< Type > & | types, | ||
| QObject * | parent = nullptr |
||
| ) |
Creates the ItemsDatabase for the given types.
| [in] | proxy | The proxy to use to get the icons of the items that were found. |
| [in] | types | The item types to watch for. |
| [in] | parent | The parent object of this finder. |
Definition at line 42 of file itemsdatabase.cpp.