![]() |
LeechCraft
0.6.70-10870-g558588d6ec
Modular cross-platform feature rich live environment.
|
An ItemsFinder automatically watching for changes in .desktop
files.
More...
#include "itemsdatabase.h"
Public Member Functions | |
ItemsDatabase (ICoreProxy_ptr proxy, const QList< Type > &types, QObject *parent=nullptr) | |
Creates the ItemsDatabase for the given types. More... | |
![]() | |
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 | |
![]() | |
void | update () |
Updates the list of items. More... | |
![]() | |
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 43 of file itemsdatabase.cpp.