#ifndef _ALADIN_APPREG_HPP_ #define _ALADIN_APPREG_HPP_ #ifndef _COMMON_REGKEY_HPP_ #include #endif #ifndef _COMMON_STRING_HPP_ #include #endif #ifndef _COMMON_BLOCK_HPP_ #include #endif #ifndef _ALADIN_ALADINRC_HPP_ #include #endif class AppReg { public: AppReg(void); AppReg(const AppReg &someAppReg); virtual ~AppReg(); AppReg &operator=(const AppReg &someAppReg); bool getHistory(Block &nameList); bool setHistory(Block &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 mCachedNames; }; #endif