![]() |
LeechCraft 0.6.70-17609-g3dde4097dd
Modular cross-platform feature rich live environment.
|
An ItemsFinder automatically watching for changes in .desktop
files.
More...
#include "itemsdatabase.h"
Public Member Functions | |
ItemsDatabase (const ICoreProxy_ptr &proxy, const QList< Type > &types, QObject *parent=nullptr) | |
Creates the ItemsDatabase for the given types. | |
Public Member Functions inherited from LC::Util::XDG::ItemsFinder | |
ItemsFinder (const ICoreProxy_ptr &, const QList< Type > &types, QObject *parent=nullptr) | |
Constructs the items finder for the given types. | |
bool | IsReady () const |
Checks whether this items finder is ready. | |
Cat2Items_t | GetItems () const |
Returns the categorized list of XDG items. | |
Item_ptr | FindItem (const QString &permanentID) const |
Finds an XDG item for the given permanent ID. |
Additional Inherited Members | |
Signals inherited from LC::Util::XDG::ItemsFinder | |
void | itemsListChanged () |
Notifies when the list of items changes in any way. | |
Protected Member Functions inherited from LC::Util::XDG::ItemsFinder | |
void | Update () |
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 30 of file itemsdatabase.h.
LC::Util::XDG::ItemsDatabase::ItemsDatabase | ( | const 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 16 of file itemsdatabase.cpp.
References LC::Util::XDG::ItemsFinder::ItemsFinder(), LC::Util::XDG::ToPaths(), and LC::Util::XDG::ItemsFinder::Update().