MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes
MAKLogger::DtConnectionLight Class Reference

Connection light widget which will show connectivity state via difference colors. More...

+ Inheritance diagram for MAKLogger::DtConnectionLight:
+ Collaboration diagram for MAKLogger::DtConnectionLight:

Public Slots

void postModelUpdate (DtLgrGuiModel &)
 Model.

Signals

void displayConnectionInfo ()
void toggleConnection ()

Public Member Functions

 DtConnectionLight (DtLgrGuiModel &model, bool drawIcons, QWidget *parent)
virtual ~DtConnectionLight ()
bool connected () const
 Get whether the light shows it is connected (to network)
void setConnected (bool connected)
 Slots for controlling the connected state.
bool activity () const
 Get whether the light shows it has network activity.
void setActivity (bool active)
 Slots for controlling the activated state.
void setListening (bool listen)
 Slot for controlling listen state.
bool isListening () const
 Get whether listen is active.
void setListenOnIdle (bool listen)
 Slot for controlling if listen on idle is enabled.
bool listenOnIdle () const
 Get whether listen on idle is enabled.

Protected Member Functions

virtual void paintEvent (QPaintEvent *)
virtual void contextMenuEvent (QContextMenuEvent *)
virtual void mouseDoubleClickEvent (QMouseEvent *)
virtual void drawIcons ()
virtual void drawLight ()

Protected Attributes

bool myConnected
bool myActivity
bool myListening
bool myListenOnIdle
bool myDrawIcons
QIcon myConnectionIcon
QIcon myListenIcon
QColor myDisconnectedColor
QColor myConnectedColor
QColor myActiveColor

Detailed Description

Connection light widget which will show connectivity state via difference colors.

The light will either be connected or disconnected. A secondary state while the light is connected can be active or not, which indicates activities (typically receiving information via the connection).

Constructor & Destructor Documentation

MAKLogger::DtConnectionLight::DtConnectionLight ( DtLgrGuiModel model,
bool  drawIcons,
QWidget parent 
)
virtual MAKLogger::DtConnectionLight::~DtConnectionLight ( )
virtual

Member Function Documentation

bool MAKLogger::DtConnectionLight::activity ( ) const

Get whether the light shows it has network activity.

bool MAKLogger::DtConnectionLight::connected ( ) const

Get whether the light shows it is connected (to network)

virtual void MAKLogger::DtConnectionLight::contextMenuEvent ( QContextMenuEvent *  )
protectedvirtual
void MAKLogger::DtConnectionLight::displayConnectionInfo ( )
signal
virtual void MAKLogger::DtConnectionLight::drawIcons ( )
protectedvirtual
virtual void MAKLogger::DtConnectionLight::drawLight ( )
protectedvirtual
bool MAKLogger::DtConnectionLight::isListening ( ) const

Get whether listen is active.

bool MAKLogger::DtConnectionLight::listenOnIdle ( ) const

Get whether listen on idle is enabled.

virtual void MAKLogger::DtConnectionLight::mouseDoubleClickEvent ( QMouseEvent *  )
protectedvirtual
virtual void MAKLogger::DtConnectionLight::paintEvent ( QPaintEvent *  )
protectedvirtual
void MAKLogger::DtConnectionLight::postModelUpdate ( DtLgrGuiModel )
slot

Model.

void MAKLogger::DtConnectionLight::setActivity ( bool  active)

Slots for controlling the activated state.

void MAKLogger::DtConnectionLight::setConnected ( bool  connected)

Slots for controlling the connected state.

void MAKLogger::DtConnectionLight::setListening ( bool  listen)

Slot for controlling listen state.

void MAKLogger::DtConnectionLight::setListenOnIdle ( bool  listen)

Slot for controlling if listen on idle is enabled.

void MAKLogger::DtConnectionLight::toggleConnection ( )
signal

Member Data Documentation

QColor MAKLogger::DtConnectionLight::myActiveColor
protected
bool MAKLogger::DtConnectionLight::myActivity
protected
bool MAKLogger::DtConnectionLight::myConnected
protected
QColor MAKLogger::DtConnectionLight::myConnectedColor
protected
QIcon MAKLogger::DtConnectionLight::myConnectionIcon
protected
QColor MAKLogger::DtConnectionLight::myDisconnectedColor
protected
bool MAKLogger::DtConnectionLight::myDrawIcons
protected
QIcon MAKLogger::DtConnectionLight::myListenIcon
protected
bool MAKLogger::DtConnectionLight::myListening
protected
bool MAKLogger::DtConnectionLight::myListenOnIdle
protected

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

Document ID: Generated on Thu Apr 7 20:50:59 EDT 2016 from SVN revision 163818
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)