Files
Work/aladin/appreg.hpp
2024-08-07 09:12:07 -04:00

58 lines
1.4 KiB
C++

#ifndef _ALADIN_APPREG_HPP_
#define _ALADIN_APPREG_HPP_
#ifndef _COMMON_REGKEY_HPP_
#include <common/regkey.hpp>
#endif
#ifndef _COMMON_STRING_HPP_
#include <common/string.hpp>
#endif
#ifndef _COMMON_BLOCK_HPP_
#include <common/block.hpp>
#endif
#ifndef _ALADIN_ALADINRC_HPP_
#include <aladin/aladinrc.hpp>
#endif
class AppReg
{
public:
AppReg(void);
AppReg(const AppReg &someAppReg);
virtual ~AppReg();
AppReg &operator=(const AppReg &someAppReg);
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);
BOOL isOkay(void)const;
private:
enum{MaxCachedNames=7};
void guarantee(void);
void cacheHistory(void);
String mHistoryKeyName;
String mHistoryKeyShortName;
String mSerialKeyName;
String mSettingsEMAIL;
String mAladinKeyName;
String mSerialPort;
String mSerialBaud;
String mSerialData;
String mSerialParity;
String mSerialStop;
RegKey mRegKeySerial;
RegKey mRegKeyHistory;
Block<String> mCachedNames;
};
#endif