62 lines
1.5 KiB
C++
62 lines
1.5 KiB
C++
#ifndef _M68HC11_M68REG_HPP_
|
|
#define _M68HC11_M68REG_HPP_
|
|
#ifndef _COMMON_REGKEY_HPP_
|
|
#include <common/regkey.hpp>
|
|
#endif
|
|
#ifndef _COMMON_BLOCK_HPP_
|
|
#include <common/block.hpp>
|
|
#endif
|
|
#ifndef _COMMON_STRING_HPP_
|
|
#include <common/string.hpp>
|
|
#endif
|
|
#ifndef _M68HC11_M68HC11_HPP_
|
|
#include <m68hc11/m68hc11.hpp>
|
|
#endif
|
|
|
|
class M68Reg
|
|
{
|
|
public:
|
|
M68Reg(void);
|
|
M68Reg(const M68Reg &someM68Reg);
|
|
virtual ~M68Reg();
|
|
M68Reg &operator=(const M68Reg &someM68Reg);
|
|
BOOL getHistory(Block<String> &nameList);
|
|
BOOL setHistory(Block<String> &nameList);
|
|
BOOL insertHistory(const String &strName);
|
|
bool setBaud(const String &strBaud);
|
|
String getBaud(void);
|
|
bool setParity(const String &strParity);
|
|
String getParity(void);
|
|
bool setDataBits(const String &strDataBits);
|
|
String getDataBits(void);
|
|
bool setStopBits(const String &stopBits);
|
|
String getStopBits(void);
|
|
bool setPort(const String &strPort);
|
|
String getPort(void);
|
|
String getSerialSettings(void);
|
|
String email(void);
|
|
void email(const String &email);
|
|
BOOL isOkay(void)const;
|
|
private:
|
|
enum {MaxCachedNames=5};
|
|
void guarantee(void);
|
|
void getCacheNames(void);
|
|
|
|
Block<String> mCachedNames;
|
|
String mHistoryKeyName;
|
|
String mSettingsKeyName;
|
|
String mSerialKeyName;
|
|
String mHistoryKeyShortName;
|
|
String mSettingsEMAIL;
|
|
String mM68KeyName;
|
|
String mSerialPort;
|
|
String mSerialBaud;
|
|
String mSerialData;
|
|
String mSerialParity;
|
|
String mSerialStop;
|
|
RegKey mRegKeySettings;
|
|
RegKey mRegKeyHistory;
|
|
RegKey mRegKeySerial;
|
|
};
|
|
#endif
|