]> vaikene.ee Git - evaf/blobdiff - src/libs/Plugins/pluginmanager_p.h
Mac OS changes and switched to c++11.
[evaf] / src / libs / Plugins / pluginmanager_p.h
index 22a0de17258cd8e6833f19ad35dcb835c8045566..31cc18c9fd712f7182b528b30e9d369783f84c91 100644 (file)
@@ -2,7 +2,7 @@
  * @file Plugins/pluginmanager_p.h
  * @brief Private implementation of the plugin manager
  *
- * Copyright (c) 2011 Enar Vaikene
+ * Copyright (c) 2011-2019 Enar Vaikene
  *
  * This file is part of the eVaf C++ cross-platform application development framework.
  *
@@ -22,6 +22,7 @@
 #include <QObject>
 #include <QSharedData>
 #include <QExplicitlySharedDataPointer>
+#include <QScopedPointer>
 #include <QPluginLoader>
 
 namespace eVaf {
@@ -91,13 +92,6 @@ private: // Methods
      */
     Module * moduleByName(QString const & name) const;
 
-    /**
-     * Loads the Qt plugin
-     * @param Name of the Qt plugin
-     * @return True; false if failed
-     */
-    bool loadQtPlugin(QString const & name) const;
-
 };
 
 /**
@@ -147,7 +141,7 @@ private: // Members
     QString mName;
 
     /// Plugin loader
-    QPluginLoader * mLoader;
+    QScopedPointer<QPluginLoader> mLoader;
 
     /// Plugin's root component
     QObject * mRoot;