LMMS
Loading...
Searching...
No Matches
DummyPlugin.h
Go to the documentation of this file.
1/*
2 * DummyPlugin.h - empty plugin which is used as fallback if a plugin couldn't
3 * be found
4 *
5 * Copyright (c) 2005-2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
6 *
7 * This file is part of LMMS - https://lmms.io
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public
11 * License as published by the Free Software Foundation; either
12 * version 2 of the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public
20 * License along with this program (see COPYING); if not, write to the
21 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 * Boston, MA 02110-1301 USA.
23 *
24 */
25
26#ifndef LMMS_DUMMY_PLUGIN_H
27#define LMMS_DUMMY_PLUGIN_H
28
29#include "Plugin.h"
30#include "PluginView.h"
31
32
33namespace lmms
34{
35
36class DummyPlugin : public Plugin
37{
38public:
41 {
42 }
43
44 ~DummyPlugin() override = default;
45
46 void saveSettings( QDomDocument &, QDomElement & ) override
47 {
48 }
49
50 void loadSettings( const QDomElement & ) override
51 {
52 }
53
54 QString nodeName() const override
55 {
56 return "DummyPlugin";
57 }
58
59
60protected:
61 gui::PluginView * instantiateView( QWidget * _parent ) override
62 {
63 return new gui::PluginView( this, _parent );
64 }
65
66} ;
67
68
69} // namespace lmms
70
71#endif // LMMS_DUMMY_PLUGIN_H
#define nullptr
Definition DistrhoDefines.h:75
~DummyPlugin() override=default
void saveSettings(QDomDocument &, QDomElement &) override
Definition DummyPlugin.h:46
void loadSettings(const QDomElement &) override
Definition DummyPlugin.h:50
gui::PluginView * instantiateView(QWidget *_parent) override
Create a view for the model.
Definition DummyPlugin.h:61
DummyPlugin()
Definition DummyPlugin.h:39
QString nodeName() const override
Definition DummyPlugin.h:54
Plugin(const Descriptor *descriptor, Model *parent, const Descriptor::SubPluginFeatures::Key *key=nullptr)
Definition Plugin.cpp:60
Definition PluginView.h:36
Definition AudioAlsa.cpp:35