LeechCraft Monocle  0.6.70-16373-g319c272718
Modular document viewer for LeechCraft
isupportannotations.h
Go to the documentation of this file.
1 /**********************************************************************
2  * LeechCraft - modular cross-platform feature rich internet client.
3  * Copyright (C) 2006-2014 Georg Rudoy
4  *
5  * Distributed under the Boost Software License, Version 1.0.
6  * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7  **********************************************************************/
8 
9 #pragma once
10 
11 #include <memory>
12 #include <QtPlugin>
13 
14 namespace LC
15 {
16 namespace Monocle
17 {
18  class IAnnotation;
19  typedef std::shared_ptr<IAnnotation> IAnnotation_ptr;
20 
29  {
30  public:
31  virtual ~ISupportAnnotations () {}
32 
38  virtual QList<IAnnotation_ptr> GetAnnotations (int page) = 0;
39  };
40 }
41 }
42 
43 Q_DECLARE_INTERFACE (LC::Monocle::ISupportAnnotations,
44  "org.LeechCraft.Monocle.ISupportAnnotations/1.0")
std::shared_ptr< IAnnotation > IAnnotation_ptr
Definition: iannotation.h:183
virtual QList< IAnnotation_ptr > GetAnnotations(int page)=0
Returns the list of annotations on the given page.
Definition: iannotation.h:20
Interface for documents supporting annotations.