NDEVR
API Documentation
PixmapResolverabstract

Base class for logic that can be used to resolve a Pixmap resource and turn it into a QPixmap for use by the NDEVR API. More...

Inheritance diagram for PixmapResolver:
[legend]
Collaboration diagram for PixmapResolver:
[legend]

Public Member Functions

virtual bool canPotentiallyResolve (const StringView &pixmap_resource)=0
 Checks whether this resolver can potentially resolve the given pixmap resource.
virtual UUID id () const =0
 Returns the unique identifier for this resolver.
virtual bool requestSet (const StringView &pixmap_resource, QPixmap map, QIcon::Mode mode)=0
 Requests that a pixmap be stored for the given resource identifier.
virtual QPixmap resolve (const StringView &pixmap_resource, QIcon::Mode mode, const QSize &requested_size, Dictionary< UUID, QPixmap > &pixmaps)=0
 Resolves a pixmap resource identifier into a QPixmap.

Detailed Description

Base class for logic that can be used to resolve a Pixmap resource and turn it into a QPixmap for use by the NDEVR API.


Definition at line 206 of file QTIconManager.h.

Member Function Documentation

◆ canPotentiallyResolve()

virtual bool PixmapResolver::canPotentiallyResolve ( const StringView & pixmap_resource)
pure virtual

Checks whether this resolver can potentially resolve the given pixmap resource.

Parameters
[in]pixmap_resourceThe resource identifier to check.
Returns
True if resolution may be possible.

◆ id()

virtual UUID PixmapResolver::id ( ) const
pure virtual

Returns the unique identifier for this resolver.

Returns
The resolver UUID.

◆ requestSet()

virtual bool PixmapResolver::requestSet ( const StringView & pixmap_resource,
QPixmap map,
QIcon::Mode mode )
pure virtual

Requests that a pixmap be stored for the given resource identifier.

Parameters
[in]pixmap_resourceThe resource identifier.
[in]mapThe pixmap to store.
[in]modeThe icon mode.
Returns
True if the pixmap was successfully stored.

◆ resolve()

virtual QPixmap PixmapResolver::resolve ( const StringView & pixmap_resource,
QIcon::Mode mode,
const QSize & requested_size,
Dictionary< UUID, QPixmap > & pixmaps )
pure virtual

Resolves a pixmap resource identifier into a QPixmap.

Parameters
[in]pixmap_resourceThe resource identifier to resolve.
[in]modeThe icon mode.
[in]requested_sizeThe desired pixmap size.
[in]pixmapsCache dictionary for storing resolved pixmaps.
Returns
The resolved QPixmap.

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