NeroRoboFirmwareCheck.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /******************************************************************************
  2. |* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  3. |* ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  4. |* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  5. |* PARTICULAR PURPOSE.
  6. |*
  7. |* Copyright 1995-2005 Nero AG. All Rights Reserved.
  8. |*-----------------------------------------------------------------------------
  9. |* NeroSDK / NeroRobo
  10. |*
  11. |* PROGRAM: NeroRoboFirmwareCheck.h
  12. |*
  13. |* PURPOSE: Inreface for robo recognition
  14. ******************************************************************************/
  15. /* Class CNeroRoboFirmwareCheck defines and additional robot driver interface, which enables Nero
  16. * to estimate the firmware of robot connected. This interface is used by Nero mainly to automatically
  17. * recognize robots if particular port was selected in the configuration dialog. */
  18. #ifndef NEROROBOFIRMWARECHECK_H
  19. #define NEROROBOFIRMWARECHECK_H
  20. #include "CSerial.h"
  21. /** Since Nero 5.5.9.8 */
  22. class CNeroRoboFirmwareCheckV1
  23. {
  24. public:
  25. /* Read firmware from named robo. */
  26. virtual char *GetRoboFirmware() = 0;
  27. /* Check if the received firmware belongs one of known robos. Here the firmware string received in
  28. * method above will be passed, so the driver can check if it's a valid string. If this methods
  29. * returns true, Nero will automatically assign this robot driver to recorder selected in configuration
  30. * dialog.*/
  31. virtual bool IsValidFirmware(const char *cpFirmware) = 0;
  32. /* Check also for valid printer name we found on local machine. There could be a couple of special robot
  33. * printers which also can be automatically assigned to selected robot driver. */
  34. virtual bool IsValidPrinter(const char *cpPrinterName) = 0;
  35. virtual ~CNeroRoboFirmwareCheckV1() {};
  36. };
  37. /** Since Nero 5.5.10.2 */
  38. class CNeroRoboFirmwareCheck
  39. :public CNeroRoboFirmwareCheckV1
  40. {
  41. public:
  42. /* Save the supported interface types in the driver. This method schould return the port type
  43. * the robot is using for communication. */
  44. virtual SerialPortType GetInterfaceType() = 0;
  45. virtual ~CNeroRoboFirmwareCheck() {};
  46. };
  47. #endif // NEROROBOFIRMWARECHECK_H