LeechCraft Monocle 0.6.70-17335-ge406ffdcaf
Modular document viewer for LeechCraft
Loading...
Searching...
No Matches
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
14namespace LC
15{
16namespace Monocle
17{
30 {
31 protected:
32 virtual ~IKnowFileExtensions () = default;
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
65Q_DECLARE_INTERFACE (LC::Monocle::IKnowFileExtensions,
66 "org.LeechCraft.Monocle.IKnowFileExtensions/1.0")
Interface for backend plugins providing default extensions for their relevant file types.
virtual QList< ExtInfo > GetKnownFileExtensions() const =0
Returns the list of supported typical file extensions.
virtual ~IKnowFileExtensions()=default
Describes a single typical file type.
QString Description_
Human-readable description.
QList< QString > Extensions_
Typically used extensions for the file type.