LeechCraft Monocle  0.6.70-16373-g319c272718
Modular document viewer for LeechCraft
iknowfileextensions.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 <QStringList>
12 #include <QtPlugin>
13 
14 namespace LC
15 {
16 namespace Monocle
17 {
30  {
31  protected:
32  virtual ~IKnowFileExtensions () {}
33  public:
40  struct ExtInfo
41  {
46  QString Description_;
47 
53  QList<QString> Extensions_;
54  };
55 
60  virtual QList<ExtInfo> GetKnownFileExtensions () const = 0;
61  };
62 }
63 }
64 
65 Q_DECLARE_INTERFACE (LC::Monocle::IKnowFileExtensions,
66  "org.LeechCraft.Monocle.IKnowFileExtensions/1.0")
virtual QList< ExtInfo > GetKnownFileExtensions() const =0
Returns the list of supported typical file extensions.
QList< QString > Extensions_
Typically used extensions for the file type.
Describes a single typical file type.
QString Description_
Human-readable description.
Interface for backend plugins providing default extensions for their relevant file types...
Definition: iannotation.h:20