Qt Virtual Chart Table (QVCT)
CVesselContainerDevice Class Reference

[UI] Flotilla device More...

#include <overlays/vessel/device/CVesselContainerDevice.hpp>

Inheritance diagram for CVesselContainerDevice:
COverlayItem COverlayObject

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 COverlayuseOverlay ()
 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

CDevicepoDevice
 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...
 

Detailed Description

[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).

Author
Cedric Dufour http://cedric.dufour.name

Definition at line 43 of file CVesselContainerDevice.hpp.

Constructor & Destructor Documentation

◆ CVesselContainerDevice()

CVesselContainerDevice::CVesselContainerDevice ( const QString &  _rqsName)

Definition at line 41 of file CVesselContainerDevice.cpp.

◆ ~CVesselContainerDevice()

virtual CVesselContainerDevice::~CVesselContainerDevice ( )
inlinevirtual

Definition at line 66 of file CVesselContainerDevice.hpp.

Member Function Documentation

◆ serialize()

virtual void CVesselContainerDevice::serialize ( QDataStream &  _rqDataStream) const
inlinevirtual

Serializes (store) this object's data to binary format.

Reimplemented from COverlayObject.

Definition at line 74 of file CVesselContainerDevice.hpp.

◆ unserialize()

virtual void CVesselContainerDevice::unserialize ( QDataStream &  _rqDataStream)
inlinevirtual

Unserializes (restore) this object's data from binary format.

Reimplemented from COverlayObject.

Definition at line 75 of file CVesselContainerDevice.hpp.

◆ useOverlay()

virtual COverlay* CVesselContainerDevice::useOverlay ( )
inlinevirtual

Returns this object's (base) overlay.

Implements COverlayObject.

Definition at line 78 of file CVesselContainerDevice.hpp.

◆ draw()

virtual void CVesselContainerDevice::draw ( const CChart _poChart,
QPainter *  _pqPainter 
)
inlinevirtual

Draws this object (itself or its content)

Implements COverlayObject.

Definition at line 81 of file CVesselContainerDevice.hpp.

◆ showDetail()

void CVesselContainerDevice::showDetail ( )
virtual

Displays this object's details (in the appropriate widget/view)

Implements COverlayObject.

Definition at line 55 of file CVesselContainerDevice.cpp.

◆ showEdit()

void CVesselContainerDevice::showEdit ( )
virtual

Displays this object's edit widget/view.

Implements COverlayObject.

Definition at line 63 of file CVesselContainerDevice.cpp.

◆ signalRefreshContent

void CVesselContainerDevice::signalRefreshContent ( )
signal

Signal emitted when views should refresh this object's corresponding content.

◆ slotDestroyed

void CVesselContainerDevice::slotDestroyed ( QObject *  _pqObject)
privateslot

Slot to handle object destruction.

Definition at line 79 of file CVesselContainerDevice.cpp.

◆ slotDataFix

void CVesselContainerDevice::slotDataFix ( const CDeviceDataFix _roDeviceDataFix)
privateslot

Slot to handle fix data (sent by device)

Definition at line 85 of file CVesselContainerDevice.cpp.

◆ setTTL()

void CVesselContainerDevice::setTTL ( int  _iTTL)
inline

Sets the (vessels) time-to-live (seconds)

Definition at line 107 of file CVesselContainerDevice.hpp.

◆ isDeviceConnected()

bool CVesselContainerDevice::isDeviceConnected ( ) const

Returns whether the actual device is connected.

Definition at line 96 of file CVesselContainerDevice.cpp.

◆ getTTL()

int CVesselContainerDevice::getTTL ( ) const
inline

Returns the (vessels) time-to-live.

Definition at line 114 of file CVesselContainerDevice.hpp.

◆ connectDevice()

bool CVesselContainerDevice::connectDevice ( )

Connects to the actual device.

Definition at line 105 of file CVesselContainerDevice.cpp.

◆ disconnectDevice()

void CVesselContainerDevice::disconnectDevice ( )

Dicconnects from the actual device.

Definition at line 120 of file CVesselContainerDevice.cpp.

◆ parseQVCT()

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.

◆ dumpQVCT()

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.

Member Data Documentation

◆ poDevice

CDevice* CVesselContainerDevice::poDevice
private

Corresponding device's pointer.

Definition at line 53 of file CVesselContainerDevice.hpp.

◆ iTTL

int CVesselContainerDevice::iTTL
private

(Vessels) Time-to-live (seconds)

See also
setTTL(), getTTL()

Definition at line 57 of file CVesselContainerDevice.hpp.


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