GammaRay API Documentation  3.2.0
Static Public Member Functions | List of all members
GammaRay::EnumRepositoryServer Class Reference

Probe-side enum definition management. More...

#include <enumrepositoryserver.h>

Inheritance diagram for GammaRay::EnumRepositoryServer:
GammaRay::EnumRepository

Static Public Member Functions

static bool isEnum (int metaTypeId)
 Check if the given meta type id is a known enum.
 
static EnumValue valueFromMetaEnum (int value, const QMetaEnum &me)
 Creates an EnumValue instance for the given numeric value and QMetaEnum. More...
 
static EnumValue valueFromVariant (const QVariant &value)
 Creates an EnumValue instance for a given QVariant containing a registered GammaRay::MetaEnum value.
 

Additional Inherited Members

- Signals inherited from GammaRay::EnumRepository
void definitionChanged (int id)
 Notification of EnumDefinition availability. More...
 
- Public Member Functions inherited from GammaRay::EnumRepository
virtual EnumDefinition definition (EnumId id) const
 Request the enum definition for the given enum id. More...
 

Detailed Description

Probe-side enum definition management.

Use this to obtain enum value representations that can be safely transferred to the client.

Member Function Documentation

◆ valueFromMetaEnum()

static EnumValue GammaRay::EnumRepositoryServer::valueFromMetaEnum ( int  value,
const QMetaEnum &  me 
)
static

Creates an EnumValue instance for the given numeric value and QMetaEnum.

If not yet present, the enum definition with be registered with the EnumRepositoryServer, so that the client has access to the key/value mappings of the enum if needed.


© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
GammaRay Qt-application inspection and manipulation tool
https://www.kdab.com/development-resources/qt-tools/gammaray/
Generated by doxygen 1.9.1