MEPP2 Project
PluginInterface.h
Go to the documentation of this file.
1 // Copyright (c) 2012-2019 University of Lyon and CNRS (France).
2 // All rights reserved.
3 //
4 // This file is part of MEPP2; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published
6 // by the Free Software Foundation; either version 3 of the License,
7 // or (at your option) any later version.
8 //
9 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
10 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
11 #pragma once
12 
13 
14 #if defined _MSC_VER
15 // CAN'T PUSH the '#pragma warning' here because we are in an interface !!!
16 // AND SO, CAN'T POP too !!!
17 #pragma warning(disable : 4267) // for VS-2015 // MANDATORY when PCL is ON !!!
18 #endif
19 
20 
21 #include <QtPlugin>
22 #include <QMessageBox>
23 
24 #ifndef Q_MOC_RUN // MT : very important to avoid the error : ' Parse error at
25  // "BOOST_JOIN" ' -> (qt4 pb with boost)
27 #endif
28 
34 namespace FEVV {
35 
37 {
38 public:
40 
41  virtual QStringList Generic_plugins() const = 0;
42  virtual bool Generic_plugin(const QString &plugin) = 0;
43 
44  virtual void init(BaseWindowQt *bwQt)
45  {
46  this->baseWindowQt = bwQt;
47  // QMessageBox(QMessageBox::Information, "MEPP", "Generic_PluginInterface:
48  // init.").exec();
49  }
50 
51 protected:
53 };
54 
55 } // namespace FEVV
56 
57 Q_DECLARE_INTERFACE(FEVV::Generic_PluginInterface,
58  "fr.liris.MEPP2.Generic_PluginInterface/1.0")
BaseWindowQt.h
FEVV
Interfaces for plugins These interfaces will be used for different plugins.
Definition: Assert.h:16
FEVV::Generic_PluginInterface::init
virtual void init(BaseWindowQt *bwQt)
Definition: PluginInterface.h:44
FEVV::Generic_PluginInterface::baseWindowQt
BaseWindowQt * baseWindowQt
the BaseWindowQt pointer
Definition: PluginInterface.h:52
FEVV::Generic_PluginInterface
Definition: PluginInterface.h:37
FEVV::Generic_PluginInterface::Generic_plugin
virtual bool Generic_plugin(const QString &plugin)=0
FEVV::BaseWindowQt
Definition: BaseWindowQt.h:21
FEVV::Generic_PluginInterface::Generic_plugins
virtual QStringList Generic_plugins() const =0
FEVV::Generic_PluginInterface::~Generic_PluginInterface
virtual ~Generic_PluginInterface()
Definition: PluginInterface.h:39