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.
48 lines
1020 B
48 lines
1020 B
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 19/04/2000
|
|
// Last modification: 08/10/2003
|
|
// Project Intruder Position Indicator
|
|
// SUBSYSTEM: Alarm
|
|
// FILE: Alarm.h
|
|
// AUTHOR: Chizhevskiy Sergey
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of class CAlarm
|
|
//----------------------------------------------------------------------------
|
|
|
|
#ifndef __ALARM__H__INCLUDED__
|
|
#define __ALARM__H__INCLUDED__
|
|
|
|
#include "..\lglib\lgalarm.h"
|
|
|
|
class CAlarm
|
|
{
|
|
public:
|
|
CAlarm();
|
|
~CAlarm();
|
|
|
|
public:
|
|
BOOL Create( LPCTSTR pCommPort, BOOL bDelay, INT nValue );
|
|
void Beep();
|
|
void Enable(BOOL fEnable);
|
|
void End( BOOL bOnlyCommAlarm );
|
|
void Begin();
|
|
|
|
public:
|
|
void OnTimer();
|
|
|
|
private:
|
|
HANDLE m_hCommPort;
|
|
BOOL m_fEnabled;
|
|
CLgAlarm m_Alarm;
|
|
|
|
private:
|
|
BOOL m_bDelay;
|
|
BOOL m_bDelayStart;
|
|
INT m_nDelayValue;
|
|
DWORD m_dwDelayTime;
|
|
};
|
|
|
|
#endif
|