synthclone 0.3.0
Loading...
Searching...
No Matches
target.h
Go to the documentation of this file.
1/*
2 * libsynthclone - a plugin API for `synthclone`
3 * Copyright (C) 2011 Devin Anderson
4 *
5 * This library is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU Lesser General Public License as published by the
7 * Free Software Foundation; either version 2.1 of the License, or (at your
8 * option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
13 * for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this library; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20#ifndef __SYNTHCLONE_TARGET_H__
21#define __SYNTHCLONE_TARGET_H__
22
23#include <QtCore/QList>
24
26#include <synthclone/zone.h>
27
28namespace synthclone {
29
33
34 class Target: public Component {
35
36 Q_OBJECT
37
38 public:
39
46
47 virtual void
48 build(const QList<Zone *> &zones) = 0;
49
50 signals:
51
58
59 void
60 buildWarning(const QString &message);
61
62 protected:
63
75
76 explicit
77 Target(const QString &name, QObject *parent=0);
78
82
83 virtual
85
86 };
87
88}
89
90#endif
Component(const QString &name, QObject *parent=0)
Constructs a new Component object.
virtual void build(const QList< Zone * > &zones)=0
Builds a patch.
virtual ~Target()
Destroys a Target object.
void buildWarning(const QString &message)
Emitted to indicate a warning found during the build process.
Target(const QString &name, QObject *parent=0)
Constructs a new Target object.
Definition component.h:26