Mixxx

/home/maxime/Projets/Mixxx/1.10/mixxx/src/ladspa/ladspapresetknob.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *                                                                         *
00003  *   This program is free software; you can redistribute it and/or modify  *
00004  *   it under the terms of the GNU General Public License as published by  *
00005  *   the Free Software Foundation; either version 2 of the License, or     *
00006  *   (at your option) any later version.                                   *
00007  *                                                                         *
00008  ***************************************************************************/
00009 
00010 #ifndef LADSPAPRESETKNOB_H
00011 #define LADSPAPRESETKNOB_H
00012 
00013 #include <QtCore>
00014 #include <QtXml>
00015 
00016 #include <ladspa.h>
00017 
00018 class QDomElement;
00019 
00020 struct LADSPAPortConnection
00021 {
00022     unsigned long plugin, port;
00023 };
00024 
00025 typedef QVector<LADSPAPortConnection> LADSPAPortConnectionVector;
00026 
00027 class LADSPAPresetKnob
00028 {
00029 public:
00030     LADSPAPresetKnob();
00031     LADSPAPresetKnob(QDomElement element);
00032     ~LADSPAPresetKnob();
00033 
00034     LADSPAPortConnectionVector * getConnections();
00035     QString getLabel();
00036     LADSPA_Data getMin();
00037     LADSPA_Data getMax();
00038     LADSPA_Data getDefault();
00039 
00040 private:
00041     QString m_qLabel;
00042     LADSPAPortConnectionVector m_Connections;
00043     LADSPA_Data m_fMin, m_fMax, m_fDefault;
00044 };
00045 
00046 typedef QVector<LADSPAPresetKnob *> LADSPAPresetKnobVector;
00047 
00048 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines