#ifndef _LINKINDICATOR_H
#define _LINKINDICATOR_H

#include "afxwin.h"
#include "lrsconnectionstatus.h"


class CLinkIndicator {

	public:
	CLinkIndicator(UINT id, LrsConnectionStatus *pClient, CWnd *parent,
					UINT ledOffBitmap, UINT ledOnBitmap, UINT ledClrBitmap);

	~CLinkIndicator();

	void update();
	void repaint(CBitmap *bitmap);

	protected:	
	CBitmap _ledOn;
	CBitmap _ledOff;
	CBitmap _ledClr;
	UINT _id;
	LrsConnectionStatus *_pClient;
	CWnd *_parent;
	BOOL _toggle;
};

#endif

