Commit 7e1ccadf authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add class base for plugins

parent 9aa177fb
......@@ -4,6 +4,7 @@ add_definitions( -DQT_NO_CAST_TO_ASCII )
set(libgrammar_SRCS
grammarhighlighter.cpp
grammarclient.cpp
widgets/grammarcomboboxlanguage.cpp
widgets/grammarconfigurewidget.cpp
)
......
/*
Copyright (c) 2013 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "grammarclient.h"
namespace Grammar {
GrammarClient::GrammarClient(QObject *parent)
: QObject(parent)
{
}
}
/*
Copyright (c) 2013 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef GRAMMARCLIENT_H
#define GRAMMARCLIENT_H
#include <QObject>
#include <QStringList>
#include <QString>
namespace Grammar {
class GrammarClient : public QObject
{
Q_OBJECT
public:
explicit GrammarClient(QObject *parent = 0);
virtual QStringList languages() const = 0;
virtual QString name() const = 0;
};
}
#endif // GRAMMARCLIENT_H
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment