kwave  18.07.70
PlayBackPlugin.h
Go to the documentation of this file.
1 /***************************************************************************
2  PlayBackPlugin.h - plugin for playback and playback configuration
3  -------------------
4  begin : Sun May 13 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 PLAY_BACK_PLUGIN_H
19 #define PLAY_BACK_PLUGIN_H
20 
21 #include "config.h"
22 
23 #include <QMutex>
24 #include <QString>
25 
26 #include "libkwave/PlayBackParam.h"
28 #include "libkwave/Plugin.h"
29 #include "libkwave/Sample.h"
30 
31 class QStringList;
32 
33 namespace Kwave
34 {
35  class PlaybackController;
36  class PlayBackDevice;
37  class PlayBackDialog;
38  class PluginContext;
39  class SampleSink;
40 
43  {
44  Q_OBJECT
45  public:
46 
52  PlayBackPlugin(QObject *parent, const QVariantList &args);
53 
55  virtual ~PlayBackPlugin() Q_DECL_OVERRIDE;
56 
61  virtual void load(QStringList &params) Q_DECL_OVERRIDE;
62 
66  virtual void unload() Q_DECL_OVERRIDE;
67 
69  virtual QStringList *setup(QStringList &previous_params)
70  Q_DECL_OVERRIDE;
71 
76  virtual void run(QStringList params) Q_DECL_OVERRIDE;
77 
78  signals:
79 
81  void sigTestProgress(int percent);
82 
83  public slots:
84 
88  void testPlayBack();
89 
90  protected:
91 
98  Kwave::PlayBackParam interpreteParameters(QStringList &params);
99 
106  Q_DECL_OVERRIDE;
107 
113  virtual QList<Kwave::playback_method_t> supportedMethods() Q_DECL_OVERRIDE;
114 
115  private:
116 
119 
122 
125  };
126 }
127 
128 #endif /* PLAY_BACK_PLUGIN_H */
129 
130 //***************************************************************************
131 //***************************************************************************
Definition: App.h:33
PlayBackPlugin(QObject *parent, const QVariantList &args)
playback_method_t
Definition: PlayBackParam.h:31
virtual void unload() Q_DECL_OVERRIDE
Kwave::PlayBackDialog * m_dialog
Kwave::PlayBackParam interpreteParameters(QStringList &params)
virtual void run(QStringList params) Q_DECL_OVERRIDE
virtual ~PlayBackPlugin() Q_DECL_OVERRIDE
virtual void load(QStringList &params) Q_DECL_OVERRIDE
void sigTestProgress(int percent)
virtual QStringList * setup(QStringList &previous_params) Q_DECL_OVERRIDE
Kwave::SampleSink * m_playback_sink
virtual Kwave::PlayBackDevice * createDevice(Kwave::playback_method_t method) Q_DECL_OVERRIDE
Kwave::PlaybackController & m_playback_controller
virtual QList< Kwave::playback_method_t > supportedMethods() Q_DECL_OVERRIDE