Start the Plugin Manager

This bit of code will try to load all plugins avaliable.
Now I need to port a Facebook plugin for this new system,
then I'll delete the old preferences widget.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2015-10-09 19:26:05 -03:00 committed by Dirk Hohndel
parent 66d3e99ff2
commit e62d439bda
2 changed files with 6 additions and 0 deletions

View file

@ -11,6 +11,9 @@ PluginManager& PluginManager::instance() {
return self;
}
PluginManager::PluginManager() {
}
void PluginManager::loadPlugins() {
QDir pluginsDir(qApp->applicationDirPath());

View file

@ -4,6 +4,7 @@
#include "display.h"
#include "desktop-widgets/mainwindow.h"
#include "helpers.h"
#include "pluginmanager.h"
#include <QApplication>
#include <QDesktopWidget>
@ -30,6 +31,8 @@ void init_ui()
{
init_qt_late();
PluginManager::instance().loadPlugins();
window = new MainWindow();
if (existing_filename && existing_filename[0] != '\0')
window->setTitle(MWTF_FILENAME);