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.
|
|
//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright � 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 30/06/2002
// PROJECT:
// SUBSYSTEM:
// FILE: LgRemoteInterfaceInfo.cpp
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Source file of LgRemoteInterfaceInfo.cpp
//----------------------------------------------------------------------------
#include "stdafx.h"
#include "..\Version.h"
#include "LgRemoteInterfaceInfo.h"
CLgRemoteInterfaceInfo::CLgRemoteInterfaceInfo(){ m_Link.SetData( this );
LGLOG( LOG_LEVEL_MEDIUM, LOG_TYPE_INFO, this, "CLgRemoteInterfaceInfo::CLgRemoteInterfaceInfo" );}
CLgRemoteInterfaceInfo::~CLgRemoteInterfaceInfo(){ UnlinkRemoteInterfaceInfo();
LGLOG( LOG_LEVEL_MEDIUM, LOG_TYPE_INFO, this, "CLgRemoteInterfaceInfo::~CLgRemoteInterfaceInfo" );}
BOOL CLgRemoteInterfaceInfo::LinkRemoteInterfaceInfo( CLgRemoteInterfaceInfo *pInterface ){ if( !pInterface ) return FALSE;
return m_Link.Link( &pInterface->m_Link );}
void CLgRemoteInterfaceInfo::UnlinkRemoteInterfaceInfo(){ m_Link.UnlinkAll();}
BOOL CLgRemoteInterfaceInfo::OnRemoteInfoConnect( BOOL bConnected ){ CLgLocker Lock( &m_Link );
if( !m_Link.GetCount() ) return FALSE; CLgRemoteInterfaceInfo *pInterface = (CLgRemoteInterfaceInfo*)m_Link[0]->GetData();
return pInterface->OnRemoteInfoConnect( bConnected );}
BOOL CLgRemoteInterfaceInfo::DoRemoteInfoTransfer(){ CLgLocker Lock( &m_Link );
if( !m_Link.GetCount() ) return FALSE; CLgRemoteInterfaceInfo *pInterface = (CLgRemoteInterfaceInfo*)m_Link[0]->GetData();
return pInterface->DoRemoteInfoTransfer();}
BOOL CLgRemoteInterfaceInfo::OnRemoteInfoTransfer( PLARGE_INTEGER pTX, PLARGE_INTEGER pRX ){ CLgLocker Lock( &m_Link );
if( !m_Link.GetCount() ) return FALSE; CLgRemoteInterfaceInfo *pInterface = (CLgRemoteInterfaceInfo*)m_Link[0]->GetData();
return pInterface->OnRemoteInfoTransfer( pTX, pRX );}
|