kwave  18.07.70
VolumePlugin.h
Go to the documentation of this file.
1 /***************************************************************************
2  VolumePlugin.h - Plugin for adjusting a signal's volume
3  -------------------
4  begin : Sun Sep 02 2001
5  copyright : (C) 2001 by Thomas Eschenbacher
6  email : Thomas.Eschenbacher@gmx.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef VOLUME_PLUGIN_H
19 #define VOLUME_PLUGIN_H
20 
21 #include "config.h"
22 
23 #include <QObject>
24 #include <QString>
25 #include <QStringList>
26 
27 #include "libkwave/Plugin.h"
28 
29 namespace Kwave
30 {
32  {
33  Q_OBJECT
34 
35  public:
36 
42  VolumePlugin(QObject *parent, const QVariantList &args);
43 
45  virtual ~VolumePlugin() Q_DECL_OVERRIDE;
46 
51  virtual QStringList *setup(QStringList &previous_params)
52  Q_DECL_OVERRIDE;
53 
58  virtual void run(QStringList params) Q_DECL_OVERRIDE;
59 
60  protected:
61 
63  int interpreteParameters(QStringList &params);
64 
65  private:
67  QStringList m_params;
68 
70  float m_factor;
71  };
72 }
73 
74 #endif /* VOLUME_PLUGIN_H */
75 
76 //***************************************************************************
77 //***************************************************************************
Definition: App.h:33
virtual QStringList * setup(QStringList &previous_params) Q_DECL_OVERRIDE
virtual void run(QStringList params) Q_DECL_OVERRIDE
QStringList m_params
Definition: VolumePlugin.h:67
VolumePlugin(QObject *parent, const QVariantList &args)
int interpreteParameters(QStringList &params)
virtual ~VolumePlugin() Q_DECL_OVERRIDE