kwave  18.07.70
DebugPlugin.h
Go to the documentation of this file.
1 /*************************************************************************
2  DebugPlugin.h - various debug aids
3  -------------------
4  begin : Mon Feb 02 2009
5  copyright : (C) 2009 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 DEBUG_PLUGIN_H
19 #define DEBUG_PLUGIN_H
20 
21 #include "config.h"
22 
23 #include <QByteArray>
24 #include <QString>
25 #include <QStringList>
26 
27 #include "libkwave/Plugin.h"
28 #include "libkwave/Sample.h"
29 #include "libkwave/SampleArray.h"
30 
31 namespace Kwave
32 {
37  class DebugPlugin: public Kwave::Plugin
38  {
39  Q_OBJECT
40 
41  public:
42 
48  DebugPlugin(QObject *parent, const QVariantList &args);
49 
51  virtual ~DebugPlugin() Q_DECL_OVERRIDE;
52 
54  virtual void load(QStringList &params) Q_DECL_OVERRIDE;
55 
64  virtual QStringList *setup(QStringList &params) Q_DECL_OVERRIDE;
65 
70  virtual void run(QStringList params) Q_DECL_OVERRIDE;
71 
72  private slots:
73 
79  void screenshot(const QByteArray &class_name,
80  const QString &filename);
81 
82  private:
83 
89  void dump_children(const QObject *obj, const QString &indent) const;
90 
97  QWidget *findWidget(const char *class_name) const;
98 
105  QObject *findObject(QObject *obj,
106  const char *class_name) const;
107 
108  private:
109 
112 
113  };
114 }
115 
116 #endif /* DEBUG_PLUGIN_H */
117 
118 //***************************************************************************
119 //***************************************************************************
Kwave::SampleArray m_buffer
Definition: DebugPlugin.h:111
Definition: App.h:33
void dump_children(const QObject *obj, const QString &indent) const
DebugPlugin(QObject *parent, const QVariantList &args)
Definition: DebugPlugin.cpp:69
virtual void run(QStringList params) Q_DECL_OVERRIDE
virtual QStringList * setup(QStringList &params) Q_DECL_OVERRIDE
QWidget * findWidget(const char *class_name) const
void screenshot(const QByteArray &class_name, const QString &filename)
virtual void load(QStringList &params) Q_DECL_OVERRIDE
Definition: DebugPlugin.cpp:81
QObject * findObject(QObject *obj, const char *class_name) const
virtual ~DebugPlugin() Q_DECL_OVERRIDE
Definition: DebugPlugin.cpp:76