MODEMREG.H 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. //
  2. // Copyright 2020 Electronic Arts Inc.
  3. //
  4. // TiberianDawn.DLL and RedAlert.dll and corresponding source code is free
  5. // software: you can redistribute it and/or modify it under the terms of
  6. // the GNU General Public License as published by the Free Software Foundation,
  7. // either version 3 of the License, or (at your option) any later version.
  8. // TiberianDawn.DLL and RedAlert.dll and corresponding source code is distributed
  9. // in the hope that it will be useful, but with permitted additional restrictions
  10. // under Section 7 of the GPL. See the GNU General Public License in LICENSE.TXT
  11. // distributed with this program. You should have received a copy of the
  12. // GNU General Public License along with permitted additional restrictions
  13. // with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
  14. #ifndef WIN32
  15. #define WIN32
  16. #ifndef _WIN32 // Denzil 6/2/98 Watcom 11.0 complains without this check
  17. #define _WIN32
  18. #endif // _WIN32
  19. #endif //WIN32
  20. #include <windows.h>
  21. class ModemRegistryEntryClass {
  22. public:
  23. ModemRegistryEntryClass (int modem_number);
  24. ~ModemRegistryEntryClass (void);
  25. char *Get_Modem_Name (void) { return (ModemName); }
  26. char *Get_Modem_Device_Name (void) { return (ModemDeviceName); }
  27. char *Get_Modem_Error_Correction_Enable (void) { return (ErrorCorrectionEnable); }
  28. char *Get_Modem_Error_Correction_Disable (void) { return (ErrorCorrectionDisable); }
  29. char *Get_Modem_Compression_Enable (void) { return (CompressionEnable); }
  30. char *Get_Modem_Compression_Disable (void) { return (CompressionDisable); }
  31. char *Get_Modem_Hardware_Flow_Control (void) { return (HardwareFlowControl); }
  32. char *Get_Modem_No_Flow_Control (void) { return (HardwareFlowControl); }
  33. private:
  34. char *ModemName;
  35. char *ModemDeviceName;
  36. char *ErrorCorrectionEnable;
  37. char *ErrorCorrectionDisable;
  38. char *CompressionEnable;
  39. char *CompressionDisable;
  40. char *HardwareFlowControl;
  41. char *NoFlowControl;
  42. };