98 virtual QDateTime
GetDate ()
const = 0;
121 virtual QString
GetText ()
const = 0;
198 "org.LeechCraft.Monocle.IAnnotation/1.0");
200 "org.LeechCraft.Monocle.ITextAnnotation/1.0");
202 "org.LeechCraft.Monocle.IHighlightAnnotation/1.0");
204 "org.LeechCraft.Monocle.ILinkAnnotation/1.0");
std::shared_ptr< ILink > ILink_ptr
virtual QRectF GetBoundary() const =0
Returns the bounding rectangle of the annotation.
A highlighted block in the text.
virtual ~ITextAnnotation()
AnnotationType
Defines an annotation type.
The interface for AnnotationType::Text annotations.
virtual QList< QPolygonF > GetPolygons() const =0
Returns the shape of the highlight.
An annotation with a link.
virtual QString GetText() const =0
Returns the text contained in the annotation.
std::shared_ptr< ILinkAnnotation > ILinkAnnotation_ptr
Base interface for annotations.
The interface for AnnotationType::Link annotations.
virtual QString GetAuthor() const =0
Returns the author of the annotation.
virtual AnnotationType GetAnnotationType() const =0
Returns the type of the annotation.
Q_DECLARE_INTERFACE(LeechCraft::Monocle::IAnnotation,"org.LeechCraft.Monocle.IAnnotation/1.0")
std::shared_ptr< IAnnotation > IAnnotation_ptr
virtual ~ILinkAnnotation()
virtual QDateTime GetDate() const =0
Returns the date the annotation was created.
virtual bool IsInline() const =0
Returns whether this is an inline annotation.
The interface for AnnotationType::Highlight annotations.
virtual ILink_ptr GetLink() const =0
Returns the link corresponding to this annotation.
std::shared_ptr< ITextAnnotation > ITextAnnotation_ptr
A simple text annotation.
Another type of annotation.
std::shared_ptr< IHighlightAnnotation > IHighlightAnnotation_ptr
virtual ~IHighlightAnnotation()