MetaProperty Class Reference
[Reflections]

Meta-information about property. More...

#include <object.h>

List of all members.

Public Types

enum  { READABLE = 1, WRITABLE = 2, STORED = 4 }

Public Member Functions

const char * name () const
const char * description () const
int flags () const
int userTypeId () const
QVariant readVariant (const Object *obj) const
bool writeVariant (Object *obj, const QVariant &v) const
QString readString (const Object *obj) const
bool writeString (Object *obj, const QString &s) const
bool isReadable () const
bool isWritable () const
bool isStored () const


Detailed Description

Meta-information about property.


Member Enumeration Documentation

anonymous enum

Enumerator:
READABLE  Property is readable.
WRITABLE  Property is writable.
STORED  Property should be stored in file.


Member Function Documentation

const char* name (  )  const [inline]

Returns property name

const char* description (  )  const [inline]

Returns property description

int flags (  )  const [inline]

Returns property flags

int userTypeId (  )  const [inline]

Returns property userType (see QMetaProperty)

QVariant readVariant ( const Object obj  )  const [inline]

Read property as QVariant

bool writeVariant ( Object obj,
const QVariant &  v 
) const [inline]

Write property as QVariant.

Returns:
true on success

QString readString ( const Object obj  )  const [inline]

Read property as string

bool writeString ( Object obj,
const QString &  s 
) const [inline]

Write property as string.

Returns:
true on success

bool isReadable (  )  const [inline]

Returns true if this property is readable

bool isWritable (  )  const [inline]

Returns true if this property is writable

bool isStored (  )  const [inline]

Returns true if this property should be stored


The documentation for this class was generated from the following file:
Generated on Thu Mar 15 14:23:37 2007 for StepCore by  doxygen 1.5.1