MCPcopy Create free account
hub / github.com/MailCore/mailcore2 / htmlForAbstractPart

Function htmlForAbstractPart

src/core/renderer/MCHTMLRenderer.cpp:263–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261static String * htmlForAbstractMultipartAlternative(AbstractMultipart * part, htmlRendererContext * context);
262
263static String * htmlForAbstractPart(AbstractPart * part, htmlRendererContext * context)
264{
265 switch (part->partType()) {
266 case PartTypeSingle:
267 return htmlForAbstractSinglePart((AbstractPart *) part, context);
268 case PartTypeMessage:
269 return htmlForAbstractMessagePart((AbstractMessagePart *) part, context);
270 case PartTypeMultipartMixed:
271 return htmlForAbstractMultipartMixed((AbstractMultipart *) part, context);
272 case PartTypeMultipartRelated:
273 return htmlForAbstractMultipartRelated((AbstractMultipart *) part, context);
274 case PartTypeMultipartAlternative:
275 return htmlForAbstractMultipartAlternative((AbstractMultipart *) part, context);
276 case PartTypeMultipartSigned:
277 return htmlForAbstractMultipartMixed((AbstractMultipart *) part, context);
278 default:
279 MCAssert(0);
280 }
281 return NULL;
282}
283
284static String * htmlForAbstractSinglePart(AbstractPart * part, htmlRendererContext * context)
285{

Tested by

no test coverage detected