Logo Search packages:      
Sourcecode: taskjuggler version File versions  Download package

bool Project::addResourceAttribute ( const QString &  name,
CustomAttributeDefinition *  cad 
)

This function adds a new, user-defined attribute to the Resource attributes. The

Parameters:
id must be unique within the Resource attributes namespace.
cad is a pointer to the CustomAttributeDefinition object.

Definition at line 356 of file Project.cpp.

{
    if (resourceAttributes.find(id))
        return FALSE;

    resourceAttributes.insert(id, cad);
    return TRUE;
}


Generated by  Doxygen 1.6.0   Back to index