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:
parent
db01fe9e6b
commit
9c20801b9c
10
ground/src/plugins/donothing/DoNothing.pluginspec
Normal file
10
ground/src/plugins/donothing/DoNothing.pluginspec
Normal 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>
|
11
ground/src/plugins/donothing/donothing.pro
Normal file
11
ground/src/plugins/donothing/donothing.pro
Normal 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
|
32
ground/src/plugins/donothing/donothingplugin.cpp
Normal file
32
ground/src/plugins/donothing/donothingplugin.cpp
Normal 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)
|
17
ground/src/plugins/donothing/donothingplugin.h
Normal file
17
ground/src/plugins/donothing/donothingplugin.h
Normal 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
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user