You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
697 B
C++

#ifndef IFONTPROVIDER_H
#define IFONTPROVIDER_H
#include <QtPlugin>
#include <QString>
#include <QList>
#include "cfontinfo.h"
class IFontProvider
{
public:
enum Sort {
alpha,
date,
popularity,
style
};
virtual ~IFontProvider() = default;
virtual QString pluginAPIVersion() = 0;
virtual QString name() = 0;
virtual QString version() = 0;
virtual QList<cFontInfo> search(const QString& family, const QString& subset = QString(), const Sort& sort = Sort::popularity) = 0;
};
QT_BEGIN_NAMESPACE
#define IFontProvider_iid "at.windesign.fontManager.IFontProvider/1.0"
Q_DECLARE_INTERFACE(IFontProvider, IFontProvider_iid)
QT_END_NAMESPACE
#endif // IFONTPROVIDER_H