Qt Virtual Chart Table (QVCT)
|
Generic navigation device (GPS, speedometer, compass, etc.) More...
#include <devices/CDevice.hpp>
Public Types | |
enum | ECapability { FIX = 1 , SKYVIEW = 2 } |
Device capabilities. More... | |
enum | EOperatingMode { UNDEFINED , STOP , PAUSE , START } |
Device operating mode (stop, start, pause) More... | |
Public Types inherited from COverlayObject | |
enum | EType { OVERLAY = 1001 , CONTAINER = 1010 , SUBCONTAINER = 1011 , ITEM = 1100 , SUBITEM1 = 1101 , SUBITEM2 = 1102 } |
Overlay object type. More... | |
Signals | |
void | signalOperatingMode (CDevice::EOperatingMode _eOperatingMode) |
Signal emitted by the device when its operating mode changed. More... | |
void | signalActivity () |
Signal emitted by the device when activity occures. More... | |
void | signalDataFix (const CDeviceDataFix &_roDeviceDataFix) |
Signal emitted by the device when an updated fix is available. More... | |
void | signalDataSkyView (const CDeviceDataSkyView &_roDeviceDataSkyView) |
Signal emitted by the device when an updated sky view is available. More... | |
void | signalError (const QString &_rqsErrorMessage) |
Signal emitted by the device when an error occured. More... | |
Public Member Functions | |
virtual | ~CDevice () |
virtual COverlay * | useOverlay () |
Returns this object's (base) overlay. More... | |
virtual QVCT::EStatus | setOperatingMode (EOperatingMode _eOperatingMode)=0 |
Sets the device's operating mode. More... | |
virtual CDeviceDriver::EDriver | getDriver () const =0 |
Returns the device's driver ID. More... | |
virtual int | getCapabilities () const =0 |
Returns the device's capabilities. More... | |
virtual EOperatingMode | getOperatingMode () |
Returns the device's operating mode. More... | |
virtual void | showDetail ()=0 |
Displays the device's details (in the appropriate widget/view) More... | |
virtual void | showEdit ()=0 |
Displays the device's edit (configuration) widget/view. More... | |
virtual void | parseQVCT (const QDomElement &_rqDomElement)=0 |
Retrieves the device's configuration from the given QVCT source (file) More... | |
virtual void | dumpQVCT (QXmlStreamWriter &_rqXmlStreamWriter) const =0 |
Stores the device's configuration to the given QVCT destination (file) More... | |
Public Member Functions inherited from COverlayItem | |
void | setMultiSelected (bool _bMultiSelected) |
Sets this item's selection status. More... | |
bool | isMultiSelected () const |
Returns this item's selection status. More... | |
Public Member Functions inherited from COverlayObject | |
void | setName (const QString &_rqsName) |
Sets this object's name. More... | |
QString | getName () const |
Returns this object's name. More... | |
QString | newChildName (const QString &_rqsName, int _iZeroPrefix=0, bool _bForceSuffix=false) const |
Returns a valid (non-duplicate) name for a new sibling of this object. More... | |
QString | newChildName (const QString &_rqsName, int _iZeroPrefix, int _iSuffix) const |
Returns a suffixed (potentially duplicate) name for a new sibling of this object. More... | |
Protected Member Functions | |
CDevice (const QString &_rqsName) | |
Protected Member Functions inherited from COverlayItem | |
COverlayItem (COverlayObject::EType _eType, const QString &_rqsName) | |
virtual | ~COverlayItem () |
Protected Member Functions inherited from COverlayObject | |
COverlayObject (EType _eType, const QString &_rqsName) | |
virtual | ~COverlayObject () |
Private Slots | |
void | slotOperatingMode (CDevice::EOperatingMode _eOperatingMode) |
[Slot] Slot to handle operating mode changes More... | |
Private Member Functions | |
virtual void | serialize (QDataStream &_rqDataStream) const |
Serializes (store) this object's data to binary format. More... | |
virtual void | unserialize (QDataStream &_rqDataStream) |
Unserializes (restore) this object's data from binary format. More... | |
virtual void | draw (const CChart *_poChart, QPainter *_pqPainter) |
Draws this object (itself or its content) More... | |
Private Attributes | |
EOperatingMode | eOperatingMode |
Device's operating mode. More... | |
Additional Inherited Members | |
Protected Attributes inherited from COverlayItem | |
bool | bMultiSelected |
Item's selection status. More... | |
Protected Attributes inherited from COverlayObject | |
QString | qsName |
Object name. More... | |
Generic navigation device (GPS, speedometer, compass, etc.)
This class defines the generic representation of a navigation device, able to emit full or partial geographical position or course data, along other useful information.
Definition at line 42 of file CDevice.hpp.
enum CDevice::ECapability |
Device capabilities.
Enumerator | |
---|---|
FIX | Device emits 'newDataFix' signal. |
SKYVIEW | Device emits 'newDataSkyView' signal. |
Definition at line 53 of file CDevice.hpp.
Device operating mode (stop, start, pause)
Enumerator | |
---|---|
UNDEFINED | |
STOP | |
PAUSE | |
START |
Definition at line 58 of file CDevice.hpp.
|
protected |
Definition at line 32 of file CDevice.cpp.
|
inlinevirtual |
Definition at line 79 of file CDevice.hpp.
|
inlineprivatevirtual |
Serializes (store) this object's data to binary format.
Reimplemented from COverlayObject.
Definition at line 87 of file CDevice.hpp.
|
inlineprivatevirtual |
Unserializes (restore) this object's data from binary format.
Reimplemented from COverlayObject.
Definition at line 88 of file CDevice.hpp.
|
inlinevirtual |
Returns this object's (base) overlay.
Implements COverlayObject.
Definition at line 91 of file CDevice.hpp.
|
inlineprivatevirtual |
Draws this object (itself or its content)
Implements COverlayObject.
Definition at line 94 of file CDevice.hpp.
|
inlineprivateslot |
[Slot] Slot to handle operating mode changes
Definition at line 104 of file CDevice.hpp.
|
signal |
Signal emitted by the device when its operating mode changed.
|
signal |
Signal emitted by the device when activity occures.
|
signal |
Signal emitted by the device when an updated fix is available.
|
signal |
Signal emitted by the device when an updated sky view is available.
|
signal |
Signal emitted by the device when an error occured.
|
pure virtual |
Sets the device's operating mode.
Implemented in CDeviceTcpSbs1, CDeviceSample, CDeviceGpsdGps, and CDeviceGpsdAis.
|
pure virtual |
Returns the device's driver ID.
Implemented in CDeviceTcpSbs1, CDeviceSample, CDeviceGpsdGps, and CDeviceGpsdAis.
|
pure virtual |
Returns the device's capabilities.
Implemented in CDeviceTcpSbs1, CDeviceSample, CDeviceGpsdGps, and CDeviceGpsdAis.
|
inlinevirtual |
Returns the device's operating mode.
Definition at line 132 of file CDevice.hpp.
|
pure virtual |
Displays the device's details (in the appropriate widget/view)
Implements COverlayObject.
Implemented in CDeviceTcpSbs1, CDeviceSample, CDeviceGpsdGps, and CDeviceGpsdAis.
|
pure virtual |
Displays the device's edit (configuration) widget/view.
Implements COverlayObject.
Implemented in CDeviceTcpSbs1, CDeviceSample, CDeviceGpsdGps, and CDeviceGpsdAis.
|
pure virtual |
Retrieves the device's configuration from the given QVCT source (file)
Implemented in CDeviceTcpSbs1, CDeviceSample, CDeviceGpsdGps, and CDeviceGpsdAis.
|
pure virtual |
Stores the device's configuration to the given QVCT destination (file)
Implemented in CDeviceTcpSbs1, CDeviceSample, CDeviceGpsdGps, and CDeviceGpsdAis.
|
private |
Device's operating mode.
Definition at line 68 of file CDevice.hpp.