LeechCraft Monocle  0.6.70-16373-g319c272718
Modular document viewer for LeechCraft
iredirectproxy.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 <QtPlugin>
12 
13 namespace LC
14 {
15 namespace Monocle
16 {
41  {
42  public:
43  virtual ~IRedirectProxy () {}
44 
49  virtual QObject* GetQObject () = 0;
50 
61  virtual QString GetRedirectSource () const = 0;
62 
70  virtual QString GetRedirectTarget () const = 0;
71 
79  virtual QString GetRedirectedMime () const = 0;
80  protected:
90  virtual void ready (const QString& target) = 0;
91  };
92 }
93 }
94 
95 Q_DECLARE_INTERFACE (LC::Monocle::IRedirectProxy,
96  "org.LeechCraft.Monocle.IRedirectProxy/1.0")
virtual QString GetRedirectTarget() const =0
Returns the filename of the converted document.
virtual void ready(const QString &target)=0
Emitted when the document has finished converting.
Interface for redirecting document opening requests.
virtual QString GetRedirectedMime() const =0
Returns the MIME type of the converted document.
virtual QString GetRedirectSource() const =0
Returns the source filename of the document.
virtual QObject * GetQObject()=0
Returns this object as a QObject.
Definition: iannotation.h:20