PropsMap Class Reference

A generic container of properties of an object. More...

#include <propsmap.h>

Inheritance diagram for PropsMap:

Inheritance graph
[legend]
Collaboration diagram for PropsMap:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PropsMap (QString classn=QString())
 
Parameters:
classn - the name of the class this propsMap wants to "fake"

 PropsMap (const QObject &other)
 Convenience method for setting String properties.
virtual QString className () const
 
Returns:
the className property, if it was set at construction time.

bool readFrom (const QObject &source)
 Grabs all the properties in source and sets the properties of this to have the same values.
virtual QStringList propertyNames () const
 
Returns:
list of all propertyNames


Detailed Description

A generic container of properties of an object.

This is a concrete generic DataObject

This class is meant to have convenient means of initializing non-typesafe properties, for the purpose of importing/exporting data to/from QObject-derived classes with proper properties set.

This is for a DataAccessObject (DAO) framework

Deprecated:
In Qt 4.2 and later, QObject supports dynamic properties. PropsMap is no longer needed.
Author:
Alan Ezust

Definition at line 29 of file propsmap.h.


Member Function Documentation

bool PropsMap::readFrom ( const QObject &  source  )  [virtual]

Grabs all the properties in source and sets the properties of this to have the same values.

Parameters:
source the object to read properties from
Returns:
true if all of the property sets were successful.

Reimplemented from DataObject.

Definition at line 21 of file propsmap.cpp.

References DataObject::readFrom().

Referenced by PropsMap().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Wed Sep 30 01:15:44 2009 for oopapidocs by  doxygen 1.5.1