//---------------------------------------------------------------------------- // Laser Guard Ltd. // Copyright © 2000-2002. All Rights Reserved. // Version 1.0 01/01/2000 // Last modification: 08/10/2003 // PROJECT: // SUBSYSTEM: // FILE: ReportServer.h // AUTHOR: Sergey Chizhevskiy // OVERVIEW // ~~~~~~~~ // Header file of ReportServer.h //---------------------------------------------------------------------------- #ifndef __REPORT__SERVER__H__INCLUDED__ #define __REPORT__SERVER__H__INCLUDED__ #if _MSC_VER > 1000 #pragma once #endif #include "..\LgLib\Thread.h" #include "..\LgLib\Remote\LgRemoteInterface.h" #include "Profile.h" class CReportServer : public CLgThread, public CLgRemoteInterfaceReport { public: CReportServer(); virtual ~CReportServer(); public: BOOL Create( CProfile *pProfile ); void Destroy(); private: typedef struct REPORT_JOB { REMOTE_CONTEXT rc; INT nOperation; TCHAR pName[MAX_PATH]; union { DWORD dwPosition; }; }REPORT_JOB, *PREPORT_JOB; enum { REPORT_JOB_LIST, REPORT_JOB_TEXT, REPORT_JOB_IMAGE, REPORT_JOB_FILE }; private: virtual DWORD ThreadProc(); private: void OnJobList( PREPORT_JOB pJob ); void OnJobText( PREPORT_JOB pJob ); void OnJobImage( PREPORT_JOB pJob ); void OnJobFile( PREPORT_JOB pJob ); private: virtual BOOL DoRemoteReportList( REMOTE_CONTEXT rc, LPCTSTR pFolderName, INT nSize ); virtual BOOL DoRemoteReportFile( REMOTE_CONTEXT rc, LPCTSTR pFolderName, INT nSize, DWORD dwPosition ); private: CLgProtectedFastStream m_JobStream; CLgEvent m_Event; CLgImageJPEG m_JPEG; CLgImageDIB m_DIB; private: CProfile *m_pProfile; }; #endif