TwiceAsNice  2019-02-18
Public Member Functions | List of all members
INDI::BaseMediator Class Referenceabstract

Meditates event notification as generated by driver and passed to clients. More...

#include <indibase.h>

Inheritance diagram for INDI::BaseMediator:
Inheritance graph
Collaboration diagram for INDI::BaseMediator:
Collaboration graph

Public Member Functions

virtual void newDevice (INDI::BaseDevice *dp)=0
 Emmited when a new device is created from INDI server. More...
 
virtual void removeDevice (INDI::BaseDevice *dp)=0
 Emmited when a device is deleted from INDI server. More...
 
virtual void newProperty (INDI::Property *property)=0
 Emmited when a new property is created for an INDI driver. More...
 
virtual void removeProperty (INDI::Property *property)=0
 Emmited when a property is deleted for an INDI driver. More...
 
virtual void newBLOB (IBLOB *bp)=0
 Emmited when a new BLOB value arrives from INDI server. More...
 
virtual void newSwitch (ISwitchVectorProperty *svp)=0
 Emmited when a new switch value arrives from INDI server. More...
 
virtual void newNumber (INumberVectorProperty *nvp)=0
 Emmited when a new number value arrives from INDI server. More...
 
virtual void newText (ITextVectorProperty *tvp)=0
 Emmited when a new text value arrives from INDI server. More...
 
virtual void newLight (ILightVectorProperty *lvp)=0
 Emmited when a new light value arrives from INDI server. More...
 
virtual void newMessage (INDI::BaseDevice *dp, int messageID)=0
 Emmited when a new message arrives from INDI server. More...
 
virtual void serverConnected ()=0
 Emmited when the server is connected. More...
 
virtual void serverDisconnected (int exit_code)=0
 Emmited when the server gets disconnected. More...
 
virtual ~BaseMediator ()
 
virtual void newDevice (INDI::BaseDevice *dp)=0
 Emmited when a new device is created from INDI server. More...
 
virtual void removeDevice (INDI::BaseDevice *dp)=0
 Emmited when a device is deleted from INDI server. More...
 
virtual void newProperty (INDI::Property *property)=0
 Emmited when a new property is created for an INDI driver. More...
 
virtual void removeProperty (INDI::Property *property)=0
 Emmited when a property is deleted for an INDI driver. More...
 
virtual void newBLOB (IBLOB *bp)=0
 Emmited when a new BLOB value arrives from INDI server. More...
 
virtual void newSwitch (ISwitchVectorProperty *svp)=0
 Emmited when a new switch value arrives from INDI server. More...
 
virtual void newNumber (INumberVectorProperty *nvp)=0
 Emmited when a new number value arrives from INDI server. More...
 
virtual void newText (ITextVectorProperty *tvp)=0
 Emmited when a new text value arrives from INDI server. More...
 
virtual void newLight (ILightVectorProperty *lvp)=0
 Emmited when a new light value arrives from INDI server. More...
 
virtual void newMessage (INDI::BaseDevice *dp, int messageID)=0
 Emmited when a new message arrives from INDI server. More...
 
virtual void serverConnected ()=0
 Emmited when the server is connected. More...
 
virtual void serverDisconnected (int exit_code)=0
 Emmited when the server gets disconnected. More...
 
virtual ~BaseMediator ()
 

Detailed Description

Meditates event notification as generated by driver and passed to clients.

Constructor & Destructor Documentation

◆ ~BaseMediator() [1/2]

virtual INDI::BaseMediator::~BaseMediator ( )
inlinevirtual

◆ ~BaseMediator() [2/2]

virtual INDI::BaseMediator::~BaseMediator ( )
inlinevirtual

Member Function Documentation

◆ newBLOB() [1/2]

virtual void INDI::BaseMediator::newBLOB ( IBLOB bp)
pure virtual

Emmited when a new BLOB value arrives from INDI server.

Parameters
bpPointer to filled and process BLOB.

Implemented in SkySafariClient, WatchDogClient, MyClient, Imager, MathPluginManagerClient, and LoaderClient.

◆ newBLOB() [2/2]

virtual void INDI::BaseMediator::newBLOB ( IBLOB bp)
pure virtual

Emmited when a new BLOB value arrives from INDI server.

Parameters
bpPointer to filled and process BLOB.

Implemented in SkySafariClient, WatchDogClient, MyClient, Imager, MathPluginManagerClient, and LoaderClient.

◆ newDevice() [1/2]

virtual void INDI::BaseMediator::newDevice ( INDI::BaseDevice dp)
pure virtual

Emmited when a new device is created from INDI server.

Parameters
dpPointer to the base device instance

Implemented in SkySafariClient, WatchDogClient, MyClient, Imager, MathPluginManagerClient, and LoaderClient.

◆ newDevice() [2/2]

virtual void INDI::BaseMediator::newDevice ( INDI::BaseDevice dp)
pure virtual

Emmited when a new device is created from INDI server.

Parameters
dpPointer to the base device instance

Implemented in SkySafariClient, WatchDogClient, MyClient, Imager, MathPluginManagerClient, and LoaderClient.

◆ newLight() [1/2]

virtual void INDI::BaseMediator::newLight ( ILightVectorProperty lvp)
pure virtual

Emmited when a new light value arrives from INDI server.

Parameters
lvpPointer to a light vector property.

Implemented in SkySafariClient, WatchDogClient, MyClient, Imager, MathPluginManagerClient, and LoaderClient.

◆ newLight() [2/2]

virtual void INDI::BaseMediator::newLight ( ILightVectorProperty lvp)
pure virtual

Emmited when a new light value arrives from INDI server.

Parameters
lvpPointer to a light vector property.

Implemented in SkySafariClient, WatchDogClient, MyClient, Imager, MathPluginManagerClient, and LoaderClient.

◆ newMessage() [1/2]

virtual void INDI::BaseMediator::newMessage ( INDI::BaseDevice dp,
int  messageID 
)
pure virtual

Emmited when a new message arrives from INDI server.

Parameters
dppointer to the INDI device the message is sent to.
messageIDID of the message that can be used to retrieve the message from the device's messageQueue() function.

Implemented in SkySafariClient, WatchDogClient, Imager, MyClient, LoaderClient, and MathPluginManagerClient.

◆ newMessage() [2/2]

virtual void INDI::BaseMediator::newMessage ( INDI::BaseDevice dp,
int  messageID 
)
pure virtual

Emmited when a new message arrives from INDI server.

Parameters
dppointer to the INDI device the message is sent to.
messageIDID of the message that can be used to retrieve the message from the device's messageQueue() function.

Implemented in SkySafariClient, WatchDogClient, Imager, MyClient, LoaderClient, and MathPluginManagerClient.

◆ newNumber() [1/2]

virtual void INDI::BaseMediator::newNumber ( INumberVectorProperty nvp)
pure virtual

Emmited when a new number value arrives from INDI server.

Parameters
nvpPointer to a number vector property.

Implemented in SkySafariClient, WatchDogClient, MyClient, Imager, LoaderClient, and MathPluginManagerClient.

◆ newNumber() [2/2]

virtual void INDI::BaseMediator::newNumber ( INumberVectorProperty nvp)
pure virtual

Emmited when a new number value arrives from INDI server.

Parameters
nvpPointer to a number vector property.

Implemented in SkySafariClient, WatchDogClient, MyClient, Imager, LoaderClient, and MathPluginManagerClient.

◆ newProperty() [1/2]

virtual void INDI::BaseMediator::newProperty ( INDI::Property property)
pure virtual

Emmited when a new property is created for an INDI driver.

Parameters
propertyPointer to the Property Container

Implemented in SkySafariClient, WatchDogClient, MyClient, Imager, LoaderClient, and MathPluginManagerClient.

◆ newProperty() [2/2]

virtual void INDI::BaseMediator::newProperty ( INDI::Property property)
pure virtual

Emmited when a new property is created for an INDI driver.

Parameters
propertyPointer to the Property Container

Implemented in SkySafariClient, WatchDogClient, MyClient, Imager, LoaderClient, and MathPluginManagerClient.

◆ newSwitch() [1/2]

virtual void INDI::BaseMediator::newSwitch ( ISwitchVectorProperty svp)
pure virtual

Emmited when a new switch value arrives from INDI server.

Parameters
svpPointer to a switch vector property.

Implemented in SkySafariClient, WatchDogClient, MyClient, Imager, LoaderClient, and MathPluginManagerClient.

◆ newSwitch() [2/2]

virtual void INDI::BaseMediator::newSwitch ( ISwitchVectorProperty svp)
pure virtual

Emmited when a new switch value arrives from INDI server.

Parameters
svpPointer to a switch vector property.

Implemented in SkySafariClient, WatchDogClient, MyClient, Imager, LoaderClient, and MathPluginManagerClient.

◆ newText() [1/2]

virtual void INDI::BaseMediator::newText ( ITextVectorProperty tvp)
pure virtual

Emmited when a new text value arrives from INDI server.

Parameters
tvpPointer to a text vector property.

Implemented in SkySafariClient, WatchDogClient, MyClient, Imager, LoaderClient, and MathPluginManagerClient.

◆ newText() [2/2]

virtual void INDI::BaseMediator::newText ( ITextVectorProperty tvp)
pure virtual

Emmited when a new text value arrives from INDI server.

Parameters
tvpPointer to a text vector property.

Implemented in SkySafariClient, WatchDogClient, MyClient, Imager, LoaderClient, and MathPluginManagerClient.

◆ removeDevice() [1/2]

virtual void INDI::BaseMediator::removeDevice ( INDI::BaseDevice dp)
pure virtual

Emmited when a device is deleted from INDI server.

Parameters
dpPointer to the base device instance.

Implemented in SkySafariClient, WatchDogClient, Imager, and MyClient.

◆ removeDevice() [2/2]

virtual void INDI::BaseMediator::removeDevice ( INDI::BaseDevice dp)
pure virtual

Emmited when a device is deleted from INDI server.

Parameters
dpPointer to the base device instance.

Implemented in SkySafariClient, WatchDogClient, Imager, and MyClient.

◆ removeProperty() [1/2]

virtual void INDI::BaseMediator::removeProperty ( INDI::Property property)
pure virtual

Emmited when a property is deleted for an INDI driver.

Parameters
propertyPointer to the Property Container to remove.

Implemented in SkySafariClient, WatchDogClient, MyClient, Imager, MathPluginManagerClient, and LoaderClient.

◆ removeProperty() [2/2]

virtual void INDI::BaseMediator::removeProperty ( INDI::Property property)
pure virtual

Emmited when a property is deleted for an INDI driver.

Parameters
propertyPointer to the Property Container to remove.

Implemented in SkySafariClient, WatchDogClient, MyClient, Imager, MathPluginManagerClient, and LoaderClient.

◆ serverConnected() [1/2]

virtual void INDI::BaseMediator::serverConnected ( )
pure virtual

Emmited when the server is connected.

Implemented in SkySafariClient, WatchDogClient, MyClient, Imager, MathPluginManagerClient, and LoaderClient.

◆ serverConnected() [2/2]

virtual void INDI::BaseMediator::serverConnected ( )
pure virtual

Emmited when the server is connected.

Implemented in SkySafariClient, WatchDogClient, MyClient, Imager, MathPluginManagerClient, and LoaderClient.

◆ serverDisconnected() [1/2]

virtual void INDI::BaseMediator::serverDisconnected ( int  exit_code)
pure virtual

Emmited when the server gets disconnected.

Parameters
exit_code0 if client was requested to disconnect from server. -1 if connection to server is terminated due to remote server disconnection.

Implemented in SkySafariClient, WatchDogClient, MyClient, Imager, MathPluginManagerClient, and LoaderClient.

◆ serverDisconnected() [2/2]

virtual void INDI::BaseMediator::serverDisconnected ( int  exit_code)
pure virtual

Emmited when the server gets disconnected.

Parameters
exit_code0 if client was requested to disconnect from server. -1 if connection to server is terminated due to remote server disconnection.

Implemented in SkySafariClient, WatchDogClient, MyClient, Imager, MathPluginManagerClient, and LoaderClient.


The documentation for this class was generated from the following file: