Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
45 lines (32 sloc) 0.862 kB
#ifndef __PLUGIN_INTERFACE_H__
#define __PLUGIN_INTERFACE_H__
#include <QObject>
#include <QStringList>
class ParserInterface : public QObject
{
Q_OBJECT
public:
virtual ~ParserInterface() { };
virtual void parse(const QString &localPath, const QString &filename) = 0;
};
class PluginInterface
{
public:
struct MenuItem {
QString label;
int key;
bool checked;
MenuItem(QString const& l = "", int k = 0, bool c = false): label(l), key(k), checked(c) {}
};
struct MenuGroup {
QString label;
QList<MenuItem> items;
};
virtual ~PluginInterface() {};
virtual QStringList mimeTypes() = 0;
virtual QStringList fileExtensions() { return QStringList(); };
virtual QWidget *reader(QWidget *parent = 0) = 0;
virtual ParserInterface *parser() = 0;
};
Q_DECLARE_INTERFACE(PluginInterface, "com.shortcovers.nickel.PluginInterface")
#endif
Jump to Line
Something went wrong with that request. Please try again.