gqrx/qtgui/afsk1200win.h
2011-08-11 00:10:56 +02:00

63 lines
1.6 KiB
C++

/* -*- c++ -*- */
/*
* Copyright 2011 Alexandru Csete OZ9AEC.
*
* Gqrx is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* Gqrx is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Gqrx; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
* Boston, MA 02110-1301, USA.
*/
#ifndef AFSK1200WIN_H
#define AFSK1200WIN_H
#include <QMainWindow>
#include <QVarLengthArray>
#include "dsp/afsk1200/cafsk12.h"
namespace Ui {
class Afsk1200Win;
}
/*! \brief AFSK1200 decoder window. */
class Afsk1200Win : public QMainWindow
{
Q_OBJECT
public:
explicit Afsk1200Win(QWidget *parent = 0);
~Afsk1200Win();
void process_samples(float *buffer, int length);
protected:
void closeEvent(QCloseEvent *ev);
signals:
void windowClosed(); /*! Signal we emit when window is closed. */
private slots:
void on_actionClear_triggered();
void on_actionSave_triggered();
void on_actionInfo_triggered();
private:
Ui::Afsk1200Win *ui; /*! Qt Designer form. */
CAfsk12 *decoder; /*! The AFSK1200 decoder object. */
QVarLengthArray<float, 16384> tmpbuf; /*! Needed to remember "overlap" smples. */
};
#endif // AFSK1200WIN_H