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.
71 lines
1.6 KiB
71 lines
1.6 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: PhoneCallCenter.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of PhoneCallCenter.h
|
|
//----------------------------------------------------------------------------
|
|
#ifndef __PHONE__CALL__CENTER__H__INCLUDED__
|
|
#define __PHONE__CALL__CENTER__H__INCLUDED__
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "..\..\lglib\Modem\LgVoiceModemCallCenter.h"
|
|
|
|
class CSensorArray;
|
|
|
|
class CPhoneCallCenter
|
|
{
|
|
public:
|
|
CPhoneCallCenter();
|
|
virtual ~CPhoneCallCenter();
|
|
|
|
public:
|
|
BOOL Create( CSensorArray *pSensorArray );
|
|
void Destroy();
|
|
|
|
public:
|
|
void OnAlarm( INT nSensor );
|
|
void OnReset();
|
|
|
|
public:
|
|
BOOL Load( LPCTSTR pFileName );
|
|
BOOL Save( LPCTSTR pFileName );
|
|
|
|
public:
|
|
typedef struct PHONE_COMMAND
|
|
{
|
|
INT nModem;
|
|
CLgVoiceModemCallCenter::MODEM_COMMAND command;
|
|
BOOL bComplete;
|
|
INT nSensorCount;
|
|
}PHONE_COMMAND, *PPHONE_COMMAND;
|
|
|
|
typedef struct PHONE_COMMAND_EX : public PHONE_COMMAND
|
|
{
|
|
INT pSensor[1];
|
|
}PHONE_COMMAND_EX, *PPHONE_COMMAND_EX;
|
|
|
|
public:
|
|
typedef CLgArray<PPHONE_COMMAND_EX> CPhoneCommandArray;
|
|
|
|
public:
|
|
CPhoneCommandArray& GetCommandArray() { return m_CommandArray; }
|
|
|
|
private:
|
|
CLgArray<CLgVoiceModemCallCenter*,CLgVoiceModemCallCenter*> m_ModemArray;
|
|
CPhoneCommandArray m_CommandArray;
|
|
|
|
private:
|
|
CSensorArray *m_pSensorArray;
|
|
};
|
|
|
|
#endif
|