AttributeDoc Class Reference

#include <attributedoc.h>

Inheritance diagram for AttributeDoc:

Doc AbstractModel DomAccessibleState MvcBase ElementDoc Diagram List of all members.

Public Member Functions

 AttributeDoc (QObject *parent)
 AttributeDoc (const QString &name, QObject *parent)
AttributeDocControllerattributeDocController () const
QHash< int, QVariant > attributes () const
QVariant attributeValue (int type) const
bool containsAttribute (int type) const

Protected Member Functions

virtual void dispatchEvent (MEvent *)
virtual void changeControllerEvent (MChangeControllerEvent *)
virtual void attributesSetValuesEvent (MAttributesSetValuesEvent *)
virtual void attributesRemoveEvent (MAttributesRemoveEvent *)

Constructor & Destructor Documentation

AttributeDoc::AttributeDoc ( QObject *  parent  ) 

Default constructor.

AttributeDoc::AttributeDoc ( const QString &  name,
QObject *  parent 
)

Convenience constructor.


Member Function Documentation

AttributeDocController * AttributeDoc::attributeDocController (  )  const

Convenience method.

Returns a cached guarded pointer that has been dynamically cast to AttributeDocController* from AbstractController*.

See also AbstractModel::controller().

QHash< int, QVariant > AttributeDoc::attributes (  )  const

Note: This intentionally does not return a const ref, as to ensure thread safety. However, Qt's implicit sharing should help to maintain performance.

Note: This method is thread-safe.

QVariant AttributeDoc::attributeValue ( int  type  )  const

Note: This intentionally does not return a const ref, as to ensure thread safety. However, Qt's implicit sharing should help to maintain performance.

Note: This method is thread-safe.

bool AttributeDoc::containsAttribute ( int  type  )  const

Note: This method is thread-safe.

void AttributeDoc::dispatchEvent ( MEvent event  )  [protected, virtual]

The model's event dispatcher.

Warning! It is assumed that the events have their correct type set (as it uses static casts).

Asserts that the event is non-null.

Reimplemented from Doc.

Reimplemented in ElementDoc.

void AttributeDoc::changeControllerEvent ( MChangeControllerEvent event  )  [protected, virtual]

Re-implemented, as to also have the pointer returned by attributeDocController() updated.

Asserts that the event is non-null.

Reimplemented from Doc.

Reimplemented in ElementDoc, and Diagram.

void AttributeDoc::attributesSetValuesEvent ( MAttributesSetValuesEvent event  )  [protected, virtual]

Asserts that the event is non-null.

Note: This method is thread-safe.

void AttributeDoc::attributesRemoveEvent ( MAttributesRemoveEvent event  )  [protected, virtual]

Asserts that the event is non-null.

Note: This method is thread-safe.


The documentation for this class was generated from the following files:
Generated on Mon Jul 30 09:46:51 2007 for Digest by  doxygen 1.5.2