Rockwell Automation 2727-M7P20D1P1, -M7P20D1Q2,-M7P20D1Q3 MobileView Machine Terminal MT750 User Manual
Page 89
Publication 2727-UM003D-EN-P
Windows CE Applications 6-7
Connections
class CKVCConnection {
private:
char *pIpAdr;
public:
virtual int Init(CKVCServer *pServer, SOCKET socket,
SOCKADDR_IN &socketAdr,Tpriority threadPriority);
virtual int Exit();
virtual int OnOverrideChange(SINT16 val);
virtual int OnWheelChange(SINT16 wheelAbsVal);
virtual int OnKeyboardEvent(TKVCEvent keyEvent, int keyNum);
virtual int OnSpaceMouseEvent(TKVCEvent event,
TKVCSpaceMouseData *pSMData);
virtual int OnDisconnect(int val);
virtual int GetWheelVal(TKVCHandWheelData &hwData);
virutal int GetOverrideVal(SINT16 &overrideVal);
virtual int GetSpaceMousePos(TKVCSpaceMouseData &smData);
virtual int GetLedState(UINT8 ledNum,UINT8 &state);
virtual int GetContrast(UINT8 &contrast);
virtual int GetBrightness(UINT8 &brightness);
virtual int GetVolume(UINT8 &volume);
virutal int GetScreensaverTime(UINT16 &time);
virtual int GetScreensaverState(UINT8 &state);
virtual int SetWheelVal(SINT16 val);
virtual int SetLed(UINT8 ledNum, TKVCLedMode mode);
virtual int SetContrast(UINT8 contrast);
virtual int SetBrightness(UINT8 brightness);
virtual int SetVolume(UINT8 volume);
virtual int SetScreenSaver(UINT16 screenSaverTime);
virtual int SwitchBacklight(UINT8 backlightOnOff);
virtual int WriteToFlash();
virtual int PlaySound(UINT16 soundNr);
};
The methods OnOverrideChange, OnWheelChange,
OnKeyboardEvent, OnJoystickEvent and OnSpacemouseEvent will be
called if an event has occurred at the corresponding operating
element on the client.
int CKVCConnection::OnOverrideChange(SINT16 val);
This method will be called if the value of the override potentiometer
has changed on the client. The current value is specified in the
parameter val.