CopperSpice API  1.9.1
QMetaClassInfo Class Reference

The QMetaClassInfo class provides additional information about a class. More...

Public Methods

const QStringname () const
 
const QStringvalue () const
 

Detailed Description

The QMetaClassInfo class provides additional information about a class. Class information items are simple name / value pairs that are specified using CS_CLASSINFO() in the source code. The information can be retrieved using name() and value().

class MyClass
{
CS_OBJECT(MyClass)
CS_CLASSINFO("author", "Clark Kent")
CS_CLASSINFO("url", "http://www.berkeleydailyplanet.com")
public:
};

This mechanism is free for you to use in your CopperSpice applications. CopperSpice does not use it for any of its classes.

See also
QMetaObject

Method Documentation

const QString & QMetaClassInfo::name ( ) const

Returns the name of this item.

See also
value()
const QString & QMetaClassInfo::value ( ) const

Returns the value of this item.

See also
name()