Old fashion design for PC-104
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
1.7 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: ReportServer.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of ReportServer.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __REPORT__SERVER__H__INCLUDED__
  15. #define __REPORT__SERVER__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. #include "..\LgLib\Thread.h"
  20. #include "..\LgLib\Remote\LgRemoteInterface.h"
  21. #include "Profile.h"
  22. class CReportServer :
  23. public CLgThread,
  24. public CLgRemoteInterfaceReport
  25. {
  26. public:
  27. CReportServer();
  28. virtual ~CReportServer();
  29. public:
  30. BOOL Create( CProfile *pProfile );
  31. void Destroy();
  32. private:
  33. typedef struct REPORT_JOB
  34. {
  35. REMOTE_CONTEXT rc;
  36. INT nOperation;
  37. TCHAR pName[MAX_PATH];
  38. union
  39. {
  40. DWORD dwPosition;
  41. };
  42. }REPORT_JOB, *PREPORT_JOB;
  43. enum { REPORT_JOB_LIST, REPORT_JOB_TEXT, REPORT_JOB_IMAGE, REPORT_JOB_FILE };
  44. private:
  45. virtual DWORD ThreadProc();
  46. private:
  47. void OnJobList( PREPORT_JOB pJob );
  48. void OnJobText( PREPORT_JOB pJob );
  49. void OnJobImage( PREPORT_JOB pJob );
  50. void OnJobFile( PREPORT_JOB pJob );
  51. private:
  52. virtual BOOL DoRemoteReportList( REMOTE_CONTEXT rc, LPCTSTR pFolderName, INT nSize );
  53. virtual BOOL DoRemoteReportFile( REMOTE_CONTEXT rc, LPCTSTR pFolderName, INT nSize, DWORD dwPosition );
  54. private:
  55. CLgProtectedFastStream<REPORT_JOB,8> m_JobStream;
  56. CLgEvent m_Event;
  57. CLgImageJPEG m_JPEG;
  58. CLgImageDIB m_DIB;
  59. private:
  60. CProfile *m_pProfile;
  61. };
  62. #endif