2019-04-10 20:00:54 +02:00
|
|
|
/******************************************************************************\
|
|
|
|
*
|
|
|
|
* Author(s):
|
|
|
|
* pljones
|
|
|
|
*
|
|
|
|
******************************************************************************
|
|
|
|
*
|
|
|
|
* This program 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 2 of the License, or (at your option) any later
|
|
|
|
* version.
|
|
|
|
*
|
|
|
|
* This program 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
|
|
|
|
* this program; if not, write to the Free Software Foundation, Inc.,
|
2020-06-08 22:58:11 +02:00
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
2019-04-10 20:00:54 +02:00
|
|
|
*
|
|
|
|
\******************************************************************************/
|
|
|
|
|
2019-07-09 08:52:38 +02:00
|
|
|
#pragma once
|
2019-04-03 19:12:45 +02:00
|
|
|
|
|
|
|
#include <QUuid>
|
|
|
|
#include <QFileInfo>
|
|
|
|
#include <QDir>
|
|
|
|
#include "util.h"
|
|
|
|
|
|
|
|
#include "cwavestream.h"
|
|
|
|
|
|
|
|
namespace recorder {
|
|
|
|
|
|
|
|
class CReaperItem : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2020-04-10 18:52:17 +02:00
|
|
|
CReaperItem( const QString& name, const STrackItem& trackItem, const qint32& iid, int frameSize );
|
2019-04-03 19:12:45 +02:00
|
|
|
QString toString() { return out; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
const QUuid iguid = QUuid::createUuid();
|
|
|
|
const QUuid guid = QUuid::createUuid();
|
|
|
|
QString out;
|
|
|
|
};
|
|
|
|
|
|
|
|
class CReaperTrack : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2020-04-10 18:52:17 +02:00
|
|
|
CReaperTrack( QString name, qint32 &iid, QList<STrackItem> items, int frameSize );
|
2019-04-03 19:12:45 +02:00
|
|
|
QString toString() { return out; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
QUuid trackId = QUuid::createUuid();
|
|
|
|
QString out;
|
|
|
|
};
|
|
|
|
|
|
|
|
class CReaperProject : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2020-04-10 18:52:17 +02:00
|
|
|
CReaperProject( QMap<QString, QList<STrackItem> > tracks, int frameSize );
|
2019-04-03 19:12:45 +02:00
|
|
|
QString toString() { return out; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
QString out;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|