QCAD
Open Source 2D CAD
RDxfPlugin.h
Go to the documentation of this file.
1 #ifndef RDXFPLUGIN_H_
2 #define RDXFPLUGIN_H_
3 
4 #include <QDebug>
5 #include <QObject>
6 #include <QStringList>
7 
8 #include "RPluginInterface.h"
9 
10 class RSpline;
11 
15 class RDxfPlugin : public QObject, public RPluginInterface
16 {
17  Q_OBJECT
18  Q_INTERFACES(RPluginInterface)
19 #if QT_VERSION >= 0x050000
20  Q_PLUGIN_METADATA(IID "org.qcad.dxf")
21 #endif
22 
23 public:
24  virtual bool init();
25  virtual void uninit(bool) {}
26  virtual void postInit(InitStatus) {}
27  virtual void initScriptExtensions(QScriptEngine&) {}
28  virtual RPluginInfo getPluginInfo();
29 };
30 
31 #endif
Definition: RDxfPlugin.h:15
virtual void initScriptExtensions(QScriptEngine &)
Called whenever a new script engine is instantiated.
Definition: RDxfPlugin.h:27
Copyright (c) 2011-2017 by Andrew Mustun.
Definition: RSpline.h:55
Information about a plugin.
Definition: RPluginInfo.h:42
virtual void postInit(InitStatus)
Called after the application has been fully loaded, directly before entering the main event loop...
Definition: RDxfPlugin.h:26
Interface for all C++ QCAD plugins.
Definition: RPluginInterface.h:39
virtual bool init()
Called immediately after the plugin has been loaded, directly after starting the application.
Definition: RDxfPlugin.cpp:8
virtual void uninit(bool)
Called before a plugin is removed / unloaded.
Definition: RDxfPlugin.h:25
virtual RPluginInfo getPluginInfo()
Definition: RDxfPlugin.cpp:15
InitStatus
Definition: RPluginInterface.h:41