mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-25 10:52:11 +01:00
46 lines
686 B
C++
46 lines
686 B
C++
|
/*
|
||
|
* emptyplugin.cpp
|
||
|
*
|
||
|
* Created on: Mar 6, 2010
|
||
|
* Author: peter
|
||
|
*/
|
||
|
#include "emptyplugin.h"
|
||
|
#include "emptygadgetfactory.h"
|
||
|
#include <QDebug>
|
||
|
#include <QtPlugin>
|
||
|
#include <QStringList>
|
||
|
#include <extensionsystem/pluginmanager.h>
|
||
|
|
||
|
|
||
|
EmptyPlugin::EmptyPlugin()
|
||
|
{
|
||
|
// Do nothing
|
||
|
}
|
||
|
|
||
|
EmptyPlugin::~EmptyPlugin()
|
||
|
{
|
||
|
// Do nothing
|
||
|
}
|
||
|
|
||
|
bool EmptyPlugin::initialize(const QStringList& args, QString *errMsg)
|
||
|
{
|
||
|
Q_UNUSED(args);
|
||
|
Q_UNUSED(errMsg);
|
||
|
mf = new EmptyGadgetFactory(this);
|
||
|
addAutoReleasedObject(mf);
|
||
|
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
void EmptyPlugin::extensionsInitialized()
|
||
|
{
|
||
|
// Do nothing
|
||
|
}
|
||
|
|
||
|
void EmptyPlugin::shutdown()
|
||
|
{
|
||
|
// Do nothing
|
||
|
}
|
||
|
Q_EXPORT_PLUGIN(EmptyPlugin)
|
||
|
|