Receptacle
 All Classes Files Functions Variables Pages
util_interface.h
1 /*
2 
3 Copyright 2014 William Wedler
4 
5 This file is part of Receptacle
6 
7 Receptacle is free software: you can redistribute it and/or modify
8 it under the terms of the GNU Lesser General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11 
12 Receptacle is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU Lesser General Public License for more details.
16 
17 You should have received a copy of the GNU Lesser General Public License
18 along with Receptacle. If not, see <http://www.gnu.org/licenses/>.
19 
20 */
21 
22 /*
23  Plugin interface
24  See example at:
25  http://qt-project.org/doc/qt-5.1/qtwidgets/tools-plugandpaint.html
26 http://michael-stengel.com/blog/?p=4
27 https://qt-project.org/doc/qt-5.0/qtwidgets/tools-plugandpaintplugins-basictools.html
28  */
29 
30 #ifndef UTIL_INTERFACE_H
31 #define UTIL_INTERFACE_H
32 
33 #include <QtPlugin>
34 #include <QString>
35 #include "util_worker.h"
36 
38 {
39  public:
40  virtual ~UtilInterface(){}
41  virtual QString name() const = 0;
42  virtual QString description() const = 0;
43  virtual QString command() const = 0;
44  virtual QString version() const = 0;
45  virtual UtilWorker* newWorker() = 0;
46 };
47 
48 #define UtilInterface_iid "Receptacle.plugins.UtilInterface/0.1.0"
49 
50 Q_DECLARE_INTERFACE(UtilInterface, UtilInterface_iid)
51 
52 #endif // UTIL_INTERFACE_H
Definition: util_worker.h:41
Definition: util_interface.h:37