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

VComponent::VComponent ( string  str  )  throw (icalerrorenum)

Constructor.

Create a new VComponent from a string.

Exceptions:
ICAL_MALFORMEDDATA_ERROR Catch this error if you

Definition at line 93 of file vcomponent.cpp.

                                                        {
      // Fix for BUG #15647, but breaks fix for BUG #15596.  Attempting a UI fix for cal-4.0.
      //char* quoted_str = quote_ical_string((char *)str);
      //imp = icalcomponent_new_from_string(quoted_str);
      imp = icalcomponent_new_from_string(str);

      if (!imp) throw icalerrno;
}


Generated by  Doxygen 1.6.0   Back to index