LeechCraft 0.6.70-17609-g3dde4097dd
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
LC::Util::XDG::ItemsDatabase Class Reference

An ItemsFinder automatically watching for changes in .desktop files. More...

#include "itemsdatabase.h"

Inheritance diagram for LC::Util::XDG::ItemsDatabase:
Collaboration diagram for LC::Util::XDG::ItemsDatabase:

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 ()

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 30 of file itemsdatabase.h.

Constructor & Destructor Documentation

◆ ItemsDatabase()

LC::Util::XDG::ItemsDatabase::ItemsDatabase ( const 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 16 of file itemsdatabase.cpp.

References LC::Util::XDG::ItemsFinder::ItemsFinder(), LC::Util::XDG::ToPaths(), and LC::Util::XDG::ItemsFinder::Update().

Here is the call graph for this function:

The documentation for this class was generated from the following files:
  • /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.17609.g3dde4097dd-build/leechcraft-0.6.70-17609-g3dde4097dd/src/util/xdg/itemsdatabase.h
  • /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.17609.g3dde4097dd-build/leechcraft-0.6.70-17609-g3dde4097dd/src/util/xdg/itemsdatabase.cpp