dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
IP Telemetry Plugin

IP Connection Plugin impliment telemetry over TCP/IP and UDP/IP. More...

Namespaces

 Core
 The Core namespace contains all classes that make up the Core plugin which constitute the basic functionality of the GCS.
 
 Ui
 

Classes

class  IPConnectionConfiguration
 
struct  IPConnectionConfiguration::Host
 
class  IPConnectionOptionsPage
 
class  IPConnectionOptionsDelegate
 
class  IPConnectionOptionsModel
 
class  IPConnection
 
class  IPConnectionPlugin
 

Enumerations

enum  IPConnectionConfiguration::Protocol { IPConnectionConfiguration::ProtocolTcp, IPConnectionConfiguration::ProtocolUdp }
 
enum  IPConnectionOptionsPage::Columns { IPConnectionOptionsPage::ColumnProtocol = 0, IPConnectionOptionsPage::ColumnHostname, IPConnectionOptionsPage::ColumnPort, IPConnectionOptionsPage::ColumnCount }
 

Functions

 IPConnectionConfiguration::IPConnectionConfiguration (QString classId, QSettings *qSettings=nullptr, QObject *parent=nullptr)
 
virtual IPConnectionConfiguration::~IPConnectionConfiguration ()
 
void IPConnectionConfiguration::saveConfig () const
 
void IPConnectionConfiguration::readConfig ()
 
IUAVGadgetConfiguration * IPConnectionConfiguration::clone ()
 
bool IPConnectionConfiguration::Host::operator== (const Host &rhs) const
 
QVector< Host > & IPConnectionConfiguration::hosts ()
 
void IPConnectionConfiguration::setHosts (QVector< Host > &hosts)
 
 IPConnectionOptionsPage::IPConnectionOptionsPage (IPConnectionConfiguration *config, QObject *parent=nullptr)
 
virtual IPConnectionOptionsPage::~IPConnectionOptionsPage ()
 
QString IPConnectionOptionsPage::id () const
 
QString IPConnectionOptionsPage::trName () const
 
QString IPConnectionOptionsPage::category () const
 
QString IPConnectionOptionsPage::trCategory () const
 
QWidget * IPConnectionOptionsPage::createPage (QWidget *parent)
 
void IPConnectionOptionsPage::apply ()
 
void IPConnectionOptionsPage::finish ()
 
 IPConnectionOptionsDelegate::IPConnectionOptionsDelegate (QObject *parent=nullptr)
 
QWidget * IPConnectionOptionsDelegate::createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
void IPConnectionOptionsDelegate::setEditorData (QWidget *editor, const QModelIndex &index) const override
 
void IPConnectionOptionsDelegate::setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
 
void IPConnectionOptionsDelegate::updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
 IPConnectionOptionsModel::IPConnectionOptionsModel (QObject *parent=nullptr)
 
int IPConnectionOptionsModel::rowCount (const QModelIndex &parent=QModelIndex()) const
 
int IPConnectionOptionsModel::columnCount (const QModelIndex &parent=QModelIndex()) const
 
QVariant IPConnectionOptionsModel::data (const QModelIndex &index, int role=Qt::EditRole) const
 
QVariant IPConnectionOptionsModel::headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 
Qt::ItemFlags IPConnectionOptionsModel::flags (const QModelIndex &index) const
 
bool IPConnectionOptionsModel::setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
 
bool IPConnectionOptionsModel::insertRows (int position, int rows, const QModelIndex &index=QModelIndex())
 
bool IPConnectionOptionsModel::removeRows (int position, int rows, const QModelIndex &index=QModelIndex())
 
QVector
< IPConnectionConfiguration::Host > & 
IPConnectionOptionsModel::hosts ()
 
 IPConnection::IPConnection ()
 
virtual IPConnection::~IPConnection ()
 
virtual QList< Core::IDevice * > IPConnection::availableDevices ()
 
virtual QIODevice * IPConnection::openDevice (Core::IDevice *deviceName)
 
virtual void IPConnection::closeDevice (const QString &deviceName)
 
virtual QString IPConnection::connectionName ()
 
virtual QString IPConnection::shortName ()
 
IPConnectionOptionsPageIPConnection::optionsPage () const
 

Variables

Protocol IPConnectionConfiguration::Host::protocol = ProtocolTcp
 
QString IPConnectionConfiguration::Host::hostname = "localhost"
 
int IPConnectionConfiguration::Host::port = 9000
 
IPConnectionconnection = nullptr
 

Signals

void IPConnectionOptionsPage::availableDevChanged ()
 

Protected Slots

void IPConnection::onEnumerationChanged ()
 

Detailed Description

IP Connection Plugin impliment telemetry over TCP/IP and UDP/IP.

Enumeration Type Documentation

Enumerator
ColumnProtocol 
ColumnHostname 
ColumnPort 
ColumnCount 

Definition at line 66 of file ipconnectionoptionspage.h.

Enumerator
ProtocolTcp 
ProtocolUdp 

Definition at line 51 of file ipconnectionconfiguration.h.

Function Documentation

void IPConnectionOptionsPage::apply ( )
virtual

Implements Core::IOptionsPage.

Definition at line 80 of file ipconnectionoptionspage.cpp.

QList< IDevice * > IPConnection::availableDevices ( )
virtual

Return the list of devices found on the system

Implements Core::IConnection.

Definition at line 77 of file ipconnectionplugin.cpp.

QString IPConnectionOptionsPage::category ( ) const
inlinevirtual

Reimplemented from Core::IOptionsPage.

Definition at line 59 of file ipconnectionoptionspage.h.

IUAVGadgetConfiguration * IPConnectionConfiguration::clone ( )
virtual

Implements Core::IUAVGadgetConfiguration.

Definition at line 43 of file ipconnectionconfiguration.cpp.

void IPConnection::closeDevice ( const QString &  deviceName)
virtual

Reimplemented from Core::IConnection.

Definition at line 167 of file ipconnectionplugin.cpp.

int IPConnectionOptionsModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const

Definition at line 206 of file ipconnectionoptionspage.cpp.

QString IPConnection::connectionName ( )
virtual

Connection type name "USB HID"

Implements Core::IConnection.

Definition at line 176 of file ipconnectionplugin.cpp.

QWidget * IPConnectionOptionsDelegate::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

Definition at line 101 of file ipconnectionoptionspage.cpp.

QWidget * IPConnectionOptionsPage::createPage ( QWidget *  parent)
virtual

Implements Core::IOptionsPage.

Definition at line 46 of file ipconnectionoptionspage.cpp.

QVariant IPConnectionOptionsModel::data ( const QModelIndex &  index,
int  role = Qt::EditRole 
) const

Definition at line 213 of file ipconnectionoptionspage.cpp.

void IPConnectionOptionsPage::finish ( )
virtual

Implements Core::IOptionsPage.

Definition at line 96 of file ipconnectionoptionspage.cpp.

Qt::ItemFlags IPConnectionOptionsModel::flags ( const QModelIndex &  index) const

Definition at line 260 of file ipconnectionoptionspage.cpp.

QVariant IPConnectionOptionsModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const

Definition at line 239 of file ipconnectionoptionspage.cpp.

QVector<Host>& IPConnectionConfiguration::hosts ( )
inline

Definition at line 68 of file ipconnectionconfiguration.h.

QVector<IPConnectionConfiguration::Host>& IPConnectionOptionsModel::hosts ( )
inline

Definition at line 116 of file ipconnectionoptionspage.h.

QString IPConnectionOptionsPage::id ( ) const
inlinevirtual

Reimplemented from Core::IOptionsPage.

Definition at line 57 of file ipconnectionoptionspage.h.

bool IPConnectionOptionsModel::insertRows ( int  position,
int  rows,
const QModelIndex &  index = QModelIndex() 
)

Definition at line 290 of file ipconnectionoptionspage.cpp.

IPConnection::IPConnection ( )

Definition at line 48 of file ipconnectionplugin.cpp.

IPConnectionConfiguration::IPConnectionConfiguration ( QString  classId,
QSettings *  qSettings = nullptr,
QObject *  parent = nullptr 
)
explicit

Definition at line 30 of file ipconnectionconfiguration.cpp.

IPConnectionOptionsDelegate::IPConnectionOptionsDelegate ( QObject *  parent = nullptr)
inlineexplicit

Definition at line 83 of file ipconnectionoptionspage.h.

IPConnectionOptionsModel::IPConnectionOptionsModel ( QObject *  parent = nullptr)
inlineexplicit

Definition at line 102 of file ipconnectionoptionspage.h.

IPConnectionOptionsPage::IPConnectionOptionsPage ( IPConnectionConfiguration config,
QObject *  parent = nullptr 
)
explicit

Definition at line 36 of file ipconnectionoptionspage.cpp.

QIODevice * IPConnection::openDevice ( Core::IDevice device)
virtual

Open a device, and return a QIODevice interface from it It should be a dynamically created object as it will be deleted by the connection manager.

Implements Core::IConnection.

Definition at line 117 of file ipconnectionplugin.cpp.

bool IPConnectionConfiguration::Host::operator== ( const Host rhs) const
inline

Definition at line 62 of file ipconnectionconfiguration.h.

IPConnectionOptionsPage* IPConnection::optionsPage ( ) const
inline

Definition at line 67 of file ipconnectionplugin.h.

void IPConnectionConfiguration::readConfig ( )

Definition at line 71 of file ipconnectionconfiguration.cpp.

bool IPConnectionOptionsModel::removeRows ( int  position,
int  rows,
const QModelIndex &  index = QModelIndex() 
)

Definition at line 303 of file ipconnectionoptionspage.cpp.

int IPConnectionOptionsModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const

Definition at line 199 of file ipconnectionoptionspage.cpp.

void IPConnectionConfiguration::saveConfig ( ) const
virtual

Saves a configuration.

Reimplemented from Core::IUAVGadgetConfiguration.

Definition at line 54 of file ipconnectionconfiguration.cpp.

bool IPConnectionOptionsModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)

Definition at line 267 of file ipconnectionoptionspage.cpp.

void IPConnectionOptionsDelegate::setEditorData ( QWidget *  editor,
const QModelIndex &  index 
) const
override

Definition at line 133 of file ipconnectionoptionspage.cpp.

void IPConnectionConfiguration::setHosts ( QVector< Host > &  hosts)
inline

Definition at line 69 of file ipconnectionconfiguration.h.

void IPConnectionOptionsDelegate::setModelData ( QWidget *  editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const
override

Definition at line 161 of file ipconnectionoptionspage.cpp.

QString IPConnection::shortName ( )
virtual

Short name to display in a combo box

Reimplemented from Core::IConnection.

Definition at line 181 of file ipconnectionplugin.cpp.

QString IPConnectionOptionsPage::trCategory ( ) const
inlinevirtual

Reimplemented from Core::IOptionsPage.

Definition at line 60 of file ipconnectionoptionspage.h.

QString IPConnectionOptionsPage::trName ( ) const
inlinevirtual

Reimplemented from Core::IOptionsPage.

Definition at line 58 of file ipconnectionoptionspage.h.

void IPConnectionOptionsDelegate::updateEditorGeometry ( QWidget *  editor,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

Definition at line 191 of file ipconnectionoptionspage.cpp.

IPConnection::~IPConnection ( )
virtual

Definition at line 64 of file ipconnectionplugin.cpp.

IPConnectionConfiguration::~IPConnectionConfiguration ( )
virtual

Definition at line 39 of file ipconnectionconfiguration.cpp.

IPConnectionOptionsPage::~IPConnectionOptionsPage ( )
virtual

Definition at line 42 of file ipconnectionoptionspage.cpp.

Variable Documentation

IPConnection* connection = nullptr

Definition at line 46 of file ipconnectionplugin.cpp.

QString IPConnectionConfiguration::Host::hostname = "localhost"

Definition at line 59 of file ipconnectionconfiguration.h.

int IPConnectionConfiguration::Host::port = 9000

Definition at line 60 of file ipconnectionconfiguration.h.

Protocol IPConnectionConfiguration::Host::protocol = ProtocolTcp

Definition at line 58 of file ipconnectionconfiguration.h.

Signals

void IPConnectionOptionsPage::availableDevChanged ( )
signal

Protected Slots

void IPConnection::onEnumerationChanged ( )
protectedslot

Definition at line 72 of file ipconnectionplugin.cpp.