synthclone 0.3.0
Loading...
Searching...
No Matches
component.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_COMPONENT_H__
21#define __SYNTHCLONE_COMPONENT_H__
22
23#include <QtCore/QObject>
24#include <QtCore/QString>
25
26namespace synthclone {
27
32
33 class Component: public QObject {
34
35 Q_OBJECT
36
37 public:
38
45
46 QString
47 getName() const;
48
49 public slots:
50
57
58 void
59 setName(const QString &name);
60
61 signals:
62
70
71 void
72 nameChanged(const QString &name);
73
86
87 void
88 progressChanged(float progress);
89
96
97 void
98 statusChanged(const QString &status);
99
100 protected:
101
116
117 explicit
118 Component(const QString &name, QObject *parent=0);
119
123
124 virtual
126
127 private:
128
129 QString name;
130
131 };
132
133}
134
135#endif
void nameChanged(const QString &name)
Emitted when the Component name is changed.
void setName(const QString &name)
Sets the name of this Component.
virtual ~Component()
Destroys a Component object.
Component(const QString &name, QObject *parent=0)
Constructs a new Component object.
void statusChanged(const QString &status)
Emitted when the Component object's status changes.
QString getName() const
Gets the Component name.
void progressChanged(float progress)
Emitted by the Component to indicate progress in whatever operation the Component is performing.
Definition component.h:26