LeechCraft  0.6.70-10870-g558588d6ec
Modular cross-platform feature rich live environment.
LeechCraft::Util::XDG::ItemsDatabase Class Reference

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...
 

Detailed Description

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.

See also
ItemsFinder

Definition at line 55 of file itemsdatabase.h.

Constructor & Destructor Documentation

◆ ItemsDatabase()

LeechCraft::Util::XDG::ItemsDatabase::ItemsDatabase ( ICoreProxy_ptr  proxy,
const QList< Type > &  types,
QObject *  parent = nullptr 
)

Creates the ItemsDatabase for the given types.

Parameters
[in]proxyThe proxy to use to get the icons of the items that were found.
[in]typesThe item types to watch for.
[in]parentThe parent object of this finder.
See also
ItemsFinder::ItemsFinder

Definition at line 43 of file itemsdatabase.cpp.


The documentation for this class was generated from the following files: