Rev 645 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | |||
641 | werner | 2 | #ifndef PLUGIN_INTERFACE_H |
3 | #define PLUGIN_INTERFACE_H |
||
4 | |||
5 | #include <QtPlugin> |
||
6 | |||
7 | /** This file contains the interfaces for iLand disturbance modules. |
||
8 | It uses the plugin mechanism provided by Qt; the destructor is needed by some compilers (see Qt-doc). |
||
9 | The interface contains several parts: |
||
10 | * General information: used to identify plugins |
||
11 | |||
12 | */ |
||
13 | |||
14 | class DisturbanceInterface |
||
15 | { |
||
16 | public: |
||
17 | virtual ~DisturbanceInterface() {} |
||
18 | |||
19 | // general information / properties |
||
20 | virtual QString name()=0; ///< a unique name of the plugin |
||
21 | virtual QString version()=0; ///< a version identification |
||
22 | virtual QString description()=0; ///< some additional description. This info is shown in the GUI and is printed to the log file. |
||
23 | |||
24 | }; |
||
25 | |||
26 | Q_DECLARE_INTERFACE(DisturbanceInterface, |
||
27 | "at.ac.boku.iland.DisturbanceInterface/1.0") |
||
28 | |||
29 | #endif // PLUGIN_INTERFACE_H |