Qt Virtual Chart Table (QVCT)
|
[UI] Flotilla device More...
#include <overlays/vessel/device/CVesselContainerDevice.hpp>
Signals | |
void | signalRefreshContent () |
Signal emitted when views should refresh this object's corresponding content. More... | |
Public Member Functions | |
CVesselContainerDevice (const QString &_rqsName) | |
virtual | ~CVesselContainerDevice () |
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 COverlay * | useOverlay () |
Returns this object's (base) overlay. More... | |
virtual void | draw (const CChart *_poChart, QPainter *_pqPainter) |
Draws this object (itself or its content) More... | |
virtual void | showDetail () |
Displays this object's details (in the appropriate widget/view) More... | |
virtual void | showEdit () |
Displays this object's edit widget/view. More... | |
void | setTTL (int _iTTL) |
Sets the (vessels) time-to-live (seconds) More... | |
bool | isDeviceConnected () const |
Returns whether the actual device is connected. More... | |
int | getTTL () const |
Returns the (vessels) time-to-live. More... | |
bool | connectDevice () |
Connects to the actual device. More... | |
void | disconnectDevice () |
Dicconnects from the actual device. More... | |
void | parseQVCT (const QDomElement &_rqDomElement) |
Retrieves this object's content from the given QVCT source (file) More... | |
void | dumpQVCT (QXmlStreamWriter &_rqXmlStreamWriter) const |
Stores this object's content 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... | |
Private Slots | |
void | slotDestroyed (QObject *_pqObject) |
Slot to handle object destruction. More... | |
void | slotDataFix (const CDeviceDataFix &_roDeviceDataFix) |
Slot to handle fix data (sent by device) More... | |
Private Attributes | |
CDevice * | poDevice |
Corresponding device's pointer. More... | |
int | iTTL |
(Vessels) Time-to-live (seconds) More... | |
Additional Inherited Members | |
Public Types inherited from COverlayObject | |
enum | EType { OVERLAY = 1001 , CONTAINER = 1010 , SUBCONTAINER = 1011 , ITEM = 1100 , SUBITEM1 = 1101 , SUBITEM2 = 1102 } |
Overlay object type. More... | |
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 () |
Protected Attributes inherited from COverlayItem | |
bool | bMultiSelected |
Item's selection status. More... | |
Protected Attributes inherited from COverlayObject | |
QString | qsName |
Object name. More... | |
[UI] Flotilla device
This class implements the link between a (dynamic) flotilla and a device, used to update the flotilla with automatically created vessels (based on what the device sends).
Definition at line 43 of file CVesselContainerDevice.hpp.
CVesselContainerDevice::CVesselContainerDevice | ( | const QString & | _rqsName | ) |
Definition at line 41 of file CVesselContainerDevice.cpp.
|
inlinevirtual |
Definition at line 66 of file CVesselContainerDevice.hpp.
|
inlinevirtual |
Serializes (store) this object's data to binary format.
Reimplemented from COverlayObject.
Definition at line 74 of file CVesselContainerDevice.hpp.
|
inlinevirtual |
Unserializes (restore) this object's data from binary format.
Reimplemented from COverlayObject.
Definition at line 75 of file CVesselContainerDevice.hpp.
|
inlinevirtual |
Returns this object's (base) overlay.
Implements COverlayObject.
Definition at line 78 of file CVesselContainerDevice.hpp.
|
inlinevirtual |
Draws this object (itself or its content)
Implements COverlayObject.
Definition at line 81 of file CVesselContainerDevice.hpp.
|
virtual |
Displays this object's details (in the appropriate widget/view)
Implements COverlayObject.
Definition at line 55 of file CVesselContainerDevice.cpp.
|
virtual |
Displays this object's edit widget/view.
Implements COverlayObject.
Definition at line 63 of file CVesselContainerDevice.cpp.
|
signal |
Signal emitted when views should refresh this object's corresponding content.
|
privateslot |
Slot to handle object destruction.
Definition at line 79 of file CVesselContainerDevice.cpp.
|
privateslot |
Slot to handle fix data (sent by device)
Definition at line 85 of file CVesselContainerDevice.cpp.
|
inline |
Sets the (vessels) time-to-live (seconds)
Definition at line 107 of file CVesselContainerDevice.hpp.
bool CVesselContainerDevice::isDeviceConnected | ( | ) | const |
Returns whether the actual device is connected.
Definition at line 96 of file CVesselContainerDevice.cpp.
|
inline |
Returns the (vessels) time-to-live.
Definition at line 114 of file CVesselContainerDevice.hpp.
bool CVesselContainerDevice::connectDevice | ( | ) |
Connects to the actual device.
Definition at line 105 of file CVesselContainerDevice.cpp.
void CVesselContainerDevice::disconnectDevice | ( | ) |
Dicconnects from the actual device.
Definition at line 120 of file CVesselContainerDevice.cpp.
void CVesselContainerDevice::parseQVCT | ( | const QDomElement & | _rqDomElement | ) |
Retrieves this object's content from the given QVCT source (file)
Definition at line 128 of file CVesselContainerDevice.cpp.
void CVesselContainerDevice::dumpQVCT | ( | QXmlStreamWriter & | _rqXmlStreamWriter | ) | const |
Stores this object's content to the given QVCT destination (file)
Definition at line 134 of file CVesselContainerDevice.cpp.
|
private |
Corresponding device's pointer.
Definition at line 53 of file CVesselContainerDevice.hpp.
|
private |
(Vessels) Time-to-live (seconds)
Definition at line 57 of file CVesselContainerDevice.hpp.