mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
This is the changes made by Patrick Plenefisch converting the native code to use CMake and the CMake Maven Plugin, as opposed to the native Maven plugin. This is to allow for compatibility with newer versions of the GCC toolchain. All the cpp sources were moved from maven style directories to cpp style directories for CMake. Change-Id: I67f5e3608948f37c83b0990d232105a3784f8593
56 lines
1.1 KiB
C++
56 lines
1.1 KiB
C++
/*
|
|
* IRemote.h
|
|
*
|
|
* Created on: Sep 22, 2012
|
|
* Author: Mitchell Wills
|
|
*/
|
|
|
|
#ifndef IREMOTE_H_
|
|
#define IREMOTE_H_
|
|
|
|
class IRemote;
|
|
|
|
|
|
#include "tables/IRemoteConnectionListener.h"
|
|
|
|
|
|
|
|
/**
|
|
* Represents an object that has a remote connection
|
|
*
|
|
* @author Mitchell
|
|
*
|
|
*/
|
|
class IRemote {
|
|
public:
|
|
/**
|
|
* Register an object to listen for connection and disconnection events
|
|
*
|
|
* @param listener the listener to be register
|
|
* @param immediateNotify if the listener object should be notified of the current connection state
|
|
*/
|
|
virtual void AddConnectionListener(IRemoteConnectionListener* listener, bool immediateNotify) = 0;
|
|
|
|
/**
|
|
* Unregister a listener from connection events
|
|
*
|
|
* @param listener the listener to be unregistered
|
|
*/
|
|
virtual void RemoveConnectionListener(IRemoteConnectionListener* listener) = 0;
|
|
|
|
/**
|
|
* Get the current state of the objects connection
|
|
* @return the current connection state
|
|
*/
|
|
virtual bool IsConnected() = 0;
|
|
|
|
/**
|
|
* If the object is acting as a server
|
|
* @return if the object is a server
|
|
*/
|
|
virtual bool IsServer() = 0;
|
|
};
|
|
|
|
|
|
#endif /* IREMOTE_H_ */
|