/**************************************************************************
<MODULE NAME>
<FILENAME>PcDetec.h</FILENAME>
<HISTORY>
	<MODIFICATION>
		<DATE>20/12/2005</DATE>
		<ATHOR>DRO</ATHOR>
		< DESCRIPTION>
			Detection of type of pc
		< /DESCRIPTION>
	</MODIFICATION>
</HISTORY>
</MODULE NAME>
**************************************************************************/
#ifndef __PCDETEC_H__
#define __PCDETEC_H__

/**************************************************************************
INCLUDE FILE
**************************************************************************/
#include "..\comp\TypePc\TypePc.h"
#include "..\comp\system\system.h"

/**************************************************************************
MACRO
**************************************************************************/
/*
< MACRO>
	<NAME>JITES_MAV_ADD_VER1</NAME>
	<TYPE >GLOBAL</TYPE>
	<DESCRIPTION>
		Address detection of the machines to vote JITES(version 1)
	</DESCRIPTION>
< / MACRO>
*/
#define JITES_MAV_ADD_VER1						0xC0000087
/*
< MACRO>
	<NAME>JITES_MAV_TXT_VER1</NAME>
	<TYPE >GLOBAL</TYPE>
	<DESCRIPTION>
		String detection of the machines to vote JITES(version 1)
	</DESCRIPTION>
< / MACRO>
*/
#define JITES_MAV_TXT_VER1						"Voting Terminal"
/*
<MACRO>
	<NAME>JITES_MAV_ADD_VER2</NAME>
	<TYPE >GLOBAL</TYPE>
	<DESCRIPTION>
		Address detection of the machines to vote JITES(version 2)
	</DESCRIPTION>
</MACRO>
*/
#define JITES_MAV_ADD_VER2 						0xC00000DF
/*
<MACRO>
	<NAME>JITES_MAV_TXT_VER2</NAME>
	<TYPE >GLOBAL</TYPE>
	<DESCRIPTION>
		String detection of the machines to vote JITES(version 2)
	</DESCRIPTION>
</MACRO>
*/
#define JITES_MAV_TXT_VER2						"Voting Terminal"

/*
<MACRO>
	<NAME>JITES_URNE_ADD_VER1</NAME>
	<TYPE >GLOBAL</TYPE>
	<DESCRIPTION>
        Address detection of the JITES(version 1)
	</DESCRIPTION>
</MACRO>
*/
#define JITES_URNE_ADD_VER1						0xFE9D0022
/*
<MACRO>
	<NAME>JITES_URNE_TXT_VER1</NAME>
	<TYPE >GLOBAL</TYPE>
	<DESCRIPTION>
	</DESCRIPTION>
</MACRO>
*/
#define JITES_URNE_TXT_VER1						"Version 1.0.1"
/*
<MACRO>
	<NAME>JITES_URNE_ADD_VER2</NAME>
	<TYPE >GLOBAL</TYPE>
	<DESCRIPTION>
	</DESCRIPTION>
</MACRO>
*/
#define JITES_URNE_ADD_VER2						0xC7FC0019
/*
< MACRO>
	<NAME>JITES_URNE_TXT_VER2</NAME>
	<TYPE >GLOBAL</TYPE>
	<DESCRIPTION>
	</DESCRIPTION>
</MACRO>
*/
#define JITES_URNE_TXT_VER2						"Version 2.0.0"

/**************************************************************************
<CLASS>
	<NAME>CDetecPC</NAME>
	<DESCRIPTION>
	</DESCRIPTION>
</CLASS>
**************************************************************************/
class CDetecPC
{
	public:

    /*
    < TYPEDEFS>
        <NAME>e_PcType</NAME>
        <TYPE >GLOBAL</TYPE>
        <DESCRIPTION>
            enumération des différents type de pc
        </DESCRIPTION>
    < /TYPEDEFS >
    */

		CDetecPC();
		~CDetecPC();

		CTypePc::e_PcType TypeOfPc(void);
        CTypePc::e_PcType VerifyJites(void);
        CTypePc::e_PcType VerifyDigiVote(void);

	protected:
	char* ReadMemory(char* pzString, unsigned long ulAddress, unsigned int uiSize );
	uchar Keyboard(void);
	uchar CardReader(void);
	void kbWaitForReady(void);
	void KbSendCommand(unsigned char c);

	private:

};

#endif /* __PCDETEC_H__ */
