#include <Libs/PluginFramework/service/metatype/ctkMetaTypeProvider.h>
Provides access to metatypes. This interface can be implemented on a Managed Service or Managed Service Factory as well as registered as a service. When registered as a service, it must be registered with a METATYPE_FACTORY_PID or METATYPE_PID service property (or both). Any PID mentioned in either of these factories must be a valid argument to the getObjectClassDefinition(const QString&, const QLocale&) method.
Definition at line 41 of file ctkMetaTypeProvider.h.
◆ ~ctkMetaTypeProvider()
virtual ctkMetaTypeProvider::~ctkMetaTypeProvider |
( |
| ) |
|
|
inlinevirtual |
◆ getLocales()
virtual QList<QLocale> ctkMetaTypeProvider::getLocales |
( |
| ) |
const |
|
pure virtual |
Return a list of available locales.
- Returns
- A list of QLocale objects.
◆ getObjectClassDefinition()
virtual ctkObjectClassDefinitionPtr ctkMetaTypeProvider::getObjectClassDefinition |
( |
const QString & |
id, |
|
|
const QLocale & |
locale = QLocale() |
|
) |
| |
|
pure virtual |
Returns an object class definition for the specified id localized to the specified locale. If no locale is specified, the default locale is used, according to the default constructor of QLocale.
- Parameters
-
id | The ID of the requested object class. This can be a pid or factory pid returned by getPids or getFactoryPids. |
locale | The locale of the definition |
- Returns
- A
ctkObjectClassDefinition
object.
◆ METATYPE_FACTORY_PID
const QString ctkMetaTypeProvider::METATYPE_FACTORY_PID |
|
static |
◆ METATYPE_PID
const QString ctkMetaTypeProvider::METATYPE_PID |
|
static |
The documentation for this struct was generated from the following file: