mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-04 02:00:43 +00:00
50 lines
1.5 KiB
C++
50 lines
1.5 KiB
C++
/* SleepLib Somnopose Loader Header
|
|
*
|
|
* Copyright (c) 2019-2024 The OSCAR Team
|
|
* Copyright (C) 2011-2018 Mark Watkins
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
* License. See the file COPYING in the main directory of the source code
|
|
* for more details. */
|
|
|
|
#ifndef SOMNOPOSELOADER_H
|
|
#define SOMNOPOSELOADER_H
|
|
|
|
#include "SleepLib/machine_loader.h"
|
|
|
|
const QString somnopose_class_name = "Somnopose";
|
|
const int somnopose_data_version = 1;
|
|
|
|
|
|
/*! \class SomnoposeLoader
|
|
\brief Unfinished stub for loading Somnopose Positional CSV data
|
|
*/
|
|
class SomnoposeLoader : public MachineLoader
|
|
{
|
|
public:
|
|
SomnoposeLoader();
|
|
virtual ~SomnoposeLoader();
|
|
|
|
virtual bool Detect(const QString & path) { Q_UNUSED(path); return false; } // bypass autoscanner
|
|
|
|
virtual int Open(const QString & path) { Q_UNUSED(path); return 0; } // Only for CPAP
|
|
virtual int OpenFile(const QString & filename);
|
|
virtual QStringList getNameFilter() { return QStringList("Somnopose CSV File (*.csv)"); }
|
|
static void Register();
|
|
|
|
virtual int Version() { return somnopose_data_version; }
|
|
virtual const QString &loaderName() { return somnopose_class_name; }
|
|
|
|
virtual MachineInfo newInfo() {
|
|
return MachineInfo(MT_POSITION, 0, somnopose_class_name, QObject::tr("Somnopose"), QString(), QString(), QString(), QObject::tr("Somnopose Software"), QDateTime::currentDateTime(), somnopose_data_version);
|
|
}
|
|
|
|
|
|
//Machine *CreateMachine();
|
|
|
|
protected:
|
|
private:
|
|
};
|
|
|
|
#endif // SOMNOPOSELOADER_H
|