MCPcopy Create free account
hub / github.com/KDE/okular / embeddedFileFromAnnotation

Function embeddedFileFromAnnotation

part/annotationpopup.cpp:40–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40Okular::EmbeddedFile *embeddedFileFromAnnotation(Okular::Annotation *annotation)
41{
42 if (annotation->subType() == Okular::Annotation::AFileAttachment) {
43 const Okular::FileAttachmentAnnotation *fileAttachAnnot = static_cast<Okular::FileAttachmentAnnotation *>(annotation);
44 return fileAttachAnnot->embeddedFile();
45 } else if (annotation->subType() == Okular::Annotation::ARichMedia) {
46 const Okular::RichMediaAnnotation *richMediaAnnot = static_cast<Okular::RichMediaAnnotation *>(annotation);
47 return richMediaAnnot->embeddedFile();
48 } else {
49 return nullptr;
50 }
51}
52
53}
54

Callers 3

addActionsToMenuMethod · 0.85
doSaveEmbeddedFileMethod · 0.85
doOpenEmbeddedFileMethod · 0.85

Calls 2

subTypeMethod · 0.80
embeddedFileMethod · 0.80

Tested by

no test coverage detected