1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

Update and add the DoNothing Plugin to SVN, these will not be compiled by default but needs to remain as a template for plugin authors.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@267 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
dankers 2010-03-08 01:45:42 +00:00 committed by dankers
parent db01fe9e6b
commit 9c20801b9c
5 changed files with 78 additions and 1 deletions

View File

@ -0,0 +1,10 @@
<plugin name="DoNothing" version="0.0.1" compatVersion="1.3.1">
<vendor>The OpenPilot Project</vendor>
<copyright>(C) 2010 OpenPilot Project</copyright>
<license>Your License goes here</license>
<description>A plugin that does nothing!</description>
<url>http://www.openpilot.org</url>
<dependencyList>
<dependency name="Core" version="1.3.1"/>
</dependencyList>
</plugin>

View File

@ -0,0 +1,11 @@
TEMPLATE = lib
TARGET = DoNothing
include(../../openpilotgcsplugin.pri)
include(../../plugins/coreplugin/coreplugin.pri)
HEADERS += donothingplugin.h
SOURCES += donothingplugin.cpp
OTHER_FILES += DoNothing.pluginspec

View File

@ -0,0 +1,32 @@
#include "donothingplugin.h"
#include <QtPlugin>
#include <QStringList>
DoNothingPlugin::DoNothingPlugin()
{
// Do nothing
}
DoNothingPlugin::~DoNothingPlugin()
{
// Do nothing
}
bool DoNothingPlugin::initialize(const QStringList& args, QString *errMsg)
{
Q_UNUSED(args);
Q_UNUSED(errMsg);
return true;
}
void DoNothingPlugin::extensionsInitialized()
{
// Do nothing
}
void DoNothingPlugin::shutdown()
{
// Do nothing
}
Q_EXPORT_PLUGIN(DoNothingPlugin)

View File

@ -0,0 +1,17 @@
#ifndef DONOTHINGPLUGIN_H
#define DONOTHINGPLUGIN_H
#include <extensionsystem/iplugin.h>
class DoNothingPlugin : public ExtensionSystem::IPlugin
{
public:
DoNothingPlugin();
~DoNothingPlugin();
void extensionsInitialized();
bool initialize(const QStringList & arguments, QString * errorString);
void shutdown();
};
#endif // DONOTHINGPLUGIN_H

View File

@ -5,9 +5,16 @@ TEMPLATE = subdirs
SUBDIRS = plugin_coreplugin \
plugin_welcome
# Blank Template Plugin, not compiled by default
SUBDIRS += plugin_donothing
plugin_donothing.subdir = donothing
plugin_donothing.depends = plugin_coreplugin
# Core Plugin
plugin_coreplugin.subdir = coreplugin
# Welcome Plugin
plugin_welcome.subdir = welcome
plugin_welcome.depends = plugin_coreplugin