62 lines
1.5 KiB
C++
62 lines
1.5 KiB
C++
/*
|
|
* Author - Bertrand Songis <bsongis@gmail.com>
|
|
*
|
|
* Based on th9x -> http://code.google.com/p/th9x/
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* 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.
|
|
*
|
|
*/
|
|
#ifndef th9x_interface_h
|
|
#define th9x_interface_h
|
|
|
|
#include "eeprominterface.h"
|
|
|
|
class EFile;
|
|
|
|
class Th9xInterface : public EEPROMInterface
|
|
{
|
|
public:
|
|
|
|
Th9xInterface();
|
|
|
|
virtual ~Th9xInterface();
|
|
|
|
virtual const char * getName();
|
|
|
|
virtual const int getEEpromSize();
|
|
|
|
virtual const int getMaxModels();
|
|
|
|
virtual bool load(RadioData &, const uint8_t *eeprom, int size);
|
|
|
|
virtual bool loadBackup(RadioData &, uint8_t *eeprom, int esize, int index);
|
|
|
|
virtual bool loadxml(RadioData &radioData, QDomDocument &doc);
|
|
|
|
virtual int save(uint8_t *eeprom, RadioData &radioData, uint32_t variant=0, uint8_t version=0);
|
|
|
|
virtual int getSize(ModelData &);
|
|
|
|
virtual int getSize(GeneralSettings &);
|
|
|
|
virtual int getCapability(const Capability);
|
|
|
|
virtual int isAvailable(Protocol proto, int port=0);
|
|
|
|
virtual SimulatorInterface * getSimulator();
|
|
|
|
protected:
|
|
|
|
EFile *efile;
|
|
|
|
};
|
|
|
|
#endif
|