icalproperty *prop = icalproperty_new(kind);
calIcalComponent::SetProperty(icalproperty_kind kind, icalvalue *val){    ClearAllProperties(kind);    icalproperty *prop = icalproperty_new(kind);    if (!prop) {        icalvalue_free(val);        return NS_ERROR_OUT_OF_MEMORY;    }    icalproperty_set_value(prop, val);    icalcomponent_add_property(mComponent, prop);    return NS_OK;}