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.
70 lines
1.8 KiB
70 lines
1.8 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 05/11/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: LgReport.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of LgReport.h
|
|
//----------------------------------------------------------------------------
|
|
#ifndef __LG__REPORT__H__INCLUDED__
|
|
#define __LG__REPORT__H__INCLUDED__
|
|
|
|
#ifdef LGREPORT_EXPORTS
|
|
#define LGREPORT_API __declspec(dllexport)
|
|
#else
|
|
#define LGREPORT_API __declspec(dllimport)
|
|
#endif
|
|
|
|
#include "..\LgImageDIB.h"
|
|
#include "..\LgImageJPEG.h"
|
|
|
|
|
|
class LGREPORT_API CLgReportInterface
|
|
{
|
|
public:
|
|
virtual BOOL OnCreateSite() = 0;
|
|
virtual BOOL OnAskForDeleteOld() = 0;
|
|
};
|
|
|
|
class LGREPORT_API CLgReport :
|
|
public CLgReportInterface
|
|
{
|
|
public:
|
|
CLgReport();
|
|
virtual ~CLgReport();
|
|
|
|
public:
|
|
BOOL Create( LPCTSTR pPathRoot, INT nMaxStorageDays );
|
|
void Destroy();
|
|
|
|
BOOL Reset();
|
|
|
|
BOOL StoreEvent( SYSTEMTIME *pST, BYTE bId, BOOL bSensor, WORD wSensorIndex, BOOL bPosition, float x, float y, LARGE_INTEGER *pOffset, LPCTSTR pFormat, ... );
|
|
BOOL StoreImage( HBITMAP hBitmap, LARGE_INTEGER *pOffset );
|
|
BOOL StoreImage( CLgImageDIB& dib, LARGE_INTEGER *pOffset );
|
|
BOOL StoreImage( CLgImageJPEG& jpeg, LARGE_INTEGER *pOffset );
|
|
BOOL StoreBackground( CLgImageDIB& dib );
|
|
BOOL StoreBackground( CLgImageJPEG& jpeg );
|
|
|
|
public:
|
|
BOOL SetMaxStoreTime( INT nDays );
|
|
BOOL OnSensor( LPCTSTR pName, float x, float y );
|
|
BOOL OnFilter( BYTE bId, LPCTSTR pName );
|
|
|
|
public:
|
|
BOOL Dlg_Create( HWND hParentWnd );
|
|
BOOL Dlg_DoModal( HWND hParentWnd );
|
|
void Dlg_Destroy();
|
|
|
|
BOOL DlgSetup_DoModal( HWND hParentWnd );
|
|
|
|
private:
|
|
LPVOID m_pReserved;
|
|
};
|
|
|
|
#endif
|