20#ifndef __SYNTHCLONE_SAMPLE_H__
21#define __SYNTHCLONE_SAMPLE_H__
23#include <QtCore/QObject>
24#include <QtCore/QString>
61 Sample(
bool temporary=
true, QObject *parent=0);
80 Sample(
const QString &path,
bool temporary=
false, QObject *parent=0);
99 Sample(
const Sample &sample,
bool temporary=
true, QObject *parent=0);
119 Sample(
const Sample &sample,
const QString &path,
bool temporary=
false,
178 initializeData(
const Sample &sample);
181 initializeTemporaryPath();
Used to write sample data to a sample file.
Definition sampleoutputstream.h:34
friend class SampleInputStream
Definition sample.h:41
Sample(const Sample &sample, const QString &path, bool temporary=false, QObject *parent=0)
Initializes a sample object.
Sample(bool temporary=true, QObject *parent=0)
Initializes an empty sample object.
void setTemporary(bool temporary)
Sets a boolean indicating whether or not the file referenced by this object will be deleted when this...
bool isTemporary() const
Returns a boolean indicating whether or not the file referenced by this object will be deleted when t...
QString getPath() const
Gets the path to the file holding this sample.
friend class SampleOutputStream
Definition sample.h:42
Sample(const QString &path, bool temporary=false, QObject *parent=0)
Initializes a sample object.
~Sample()
If the file linked to this sample object is a temporary file, then the temporary file is deleted.
Sample(const Sample &sample, bool temporary=true, QObject *parent=0)
Initializes a sample object.
void temporaryChanged(bool temporary)
Emitted when the temporary flag changes.
Definition component.h:26