mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-09 20:46:07 +01:00
29fef56372
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@360 ebee16cc-31ac-478f-84a7-5cbb03baadba
46 lines
662 B
C++
46 lines
662 B
C++
/*
|
|
* mapplugin.cpp
|
|
*
|
|
* Created on: Mar 6, 2010
|
|
* Author: peter
|
|
*/
|
|
#include "mapplugin.h"
|
|
#include "mapgadgetfactory.h"
|
|
#include <QDebug>
|
|
#include <QtPlugin>
|
|
#include <QStringList>
|
|
#include <extensionsystem/pluginmanager.h>
|
|
|
|
|
|
MapPlugin::MapPlugin()
|
|
{
|
|
// Do nothing
|
|
}
|
|
|
|
MapPlugin::~MapPlugin()
|
|
{
|
|
// Do nothing
|
|
}
|
|
|
|
bool MapPlugin::initialize(const QStringList& args, QString *errMsg)
|
|
{
|
|
Q_UNUSED(args);
|
|
Q_UNUSED(errMsg);
|
|
mf = new MapGadgetFactory(this);
|
|
addAutoReleasedObject(mf);
|
|
|
|
return true;
|
|
}
|
|
|
|
void MapPlugin::extensionsInitialized()
|
|
{
|
|
// Do nothing
|
|
}
|
|
|
|
void MapPlugin::shutdown()
|
|
{
|
|
// Do nothing
|
|
}
|
|
Q_EXPORT_PLUGIN(MapPlugin)
|
|
|