OSCAR-code/SleepLib/machine_loader.h
Mark Watkins e6fe771adf QT Commit
2011-06-26 18:30:44 +10:00

30 lines
534 B
C++

/*
SleepLib MachineLoader Base Class Header
Author: Mark Watkins <jedimark64@users.sourceforge.net>
License: GPL
*/
#ifndef MACHINE_LOADER_H
#define MACHINE_LOADER_H
#include "profiles.h"
class MachineLoader
{
public:
MachineLoader();
virtual ~MachineLoader();
virtual bool Open(QString &,Profile *profile)=0;
virtual int Version()=0;
virtual const QString & ClassName()=0;
};
void RegisterLoader(MachineLoader *loader);
void DestroyLoaders();
list<MachineLoader *> GetLoaders();
#endif //MACHINE_LOADER_H