SerialPlugin Class Reference

#include <serialplugin.h>

Inheritance diagram for SerialPlugin:

QObject CoreInterface DisplayInterface

List of all members.


Detailed Description

Definition at line 18 of file serialplugin.h.


Public Member Functions

QStringList commands () const
QDockWidgetgetDock (const QString &commands)
QWidgetgetConfig ()
BBoB_ChannelChannelPointer (QString mod, QString input) const
BBoB_ModuleModulePointer (const QString mod) const
QStringList ModuleList () const
QMap< QString, QStringModuleParams (const QString name) const
QMap< QString, QStringModuleInputs (const QString name) const
QMap< QString, QStringModuleOutputs (const QString name) const
void saveChannels ()
void CoreInit (const BCore *core)
void SaveSettings ()
void LoadSettings ()
void Module (const QString name, const QStringList params)

Public Attributes

QMap< QString,
BBoB_Module * > 
Modules
BCorebcore

Private Attributes

SerialDialogSerialDlog
SerialWidgetport

Member Function Documentation

QStringList SerialPlugin::commands (  )  const [virtual]

List of menu commands - Text shown in menu and in dock titlebar.

Implements DisplayInterface.

Definition at line 7 of file serialplugin-display.cpp.

References QObject::tr().

Referenced by LoadSettings().

Here is the call graph for this function:

QDockWidget * SerialPlugin::getDock ( const QString command  )  [virtual]

Displayable widget - Creates Dialog and connects signals/slots. Then creates QDockWidget so dock options can be set, then it's passed to BCore which can pass to the MainWindow.

Implements DisplayInterface.

Definition at line 16 of file serialplugin-display.cpp.

References BCore::addDock(), bcore, Ui_SerialDialog::ButtonCR, Ui_SerialDialog::ButtonTransmit, Ui_SerialDialog::ComName, Ui_SerialDialog::ComSlider, Ui_SerialDialog::ComSpeed, QObject::connect(), SerialWidget::CR, port, Ui_SerialDialog::RecvText, Ui_SerialDialog::SendText, SerialWidget::SendText, SerialDlog, SerialWidget::setPort(), SerialWidget::setSpeed(), QDockWidget::setWidget(), Ui_SerialDialog::SpeedSlider, and SerialWidget::tryAllComs().

Referenced by LoadSettings().

Here is the call graph for this function:

QWidget* SerialPlugin::getConfig (  )  [inline, virtual]

Implements DisplayInterface.

Definition at line 32 of file serialplugin.h.

BBoB_Channel * SerialPlugin::ChannelPointer ( QString  mod,
QString  input 
) const [virtual]

Implements CoreInterface.

Definition at line 3 of file serialplugin-module.cpp.

References QMap::contains(), and Modules.

Here is the call graph for this function:

BBoB_Module * SerialPlugin::ModulePointer ( const QString  mod  )  const [virtual]

Implements CoreInterface.

Definition at line 58 of file serialplugin-module.cpp.

References QMap::contains(), Modules, and QMap::value().

Here is the call graph for this function:

QStringList SerialPlugin::ModuleList (  )  const [virtual]

Implements CoreInterface.

Definition at line 53 of file serialplugin-module.cpp.

References QMap::keys(), and Modules.

Here is the call graph for this function:

QMap< QString, QString > SerialPlugin::ModuleParams ( const QString  name  )  const [virtual]

Implements CoreInterface.

Definition at line 21 of file serialplugin-module.cpp.

References QMap::contains(), and Modules.

Here is the call graph for this function:

QMap< QString, QString > SerialPlugin::ModuleInputs ( const QString  name  )  const [virtual]

Implements CoreInterface.

Definition at line 31 of file serialplugin-module.cpp.

References Channel_Dir_In, BBoB_Channel::dir, BBoB_Channel::getMimetype(), Modules, and BBoB_Channel::name.

Here is the call graph for this function:

QMap< QString, QString > SerialPlugin::ModuleOutputs ( const QString  name  )  const [virtual]

Implements CoreInterface.

Definition at line 42 of file serialplugin-module.cpp.

References Channel_Dir_Out, BBoB_Channel::dir, BBoB_Channel::getMimetype(), Modules, and BBoB_Channel::name.

Here is the call graph for this function:

void SerialPlugin::saveChannels (  ) 

Definition at line 13 of file serialplugin-module.cpp.

References QList::at(), bcore, QMap::keys(), Modules, BCore::settings, and QList::size().

Here is the call graph for this function:

void SerialPlugin::CoreInit ( const BCore core  )  [virtual]

Called by BCore Initialize - Sets variables, loads classes for message bus, and loads saved settings.

Implements CoreInterface.

Definition at line 6 of file serialplugin-core.cpp.

References bcore, LoadSettings(), and SerialDlog.

Here is the call graph for this function:

void SerialPlugin::SaveSettings (  )  [virtual]

Implements CoreInterface.

Definition at line 18 of file serialplugin-core.cpp.

References bcore, BCore::isDockVisible(), SerialDlog, BCore::settings, and BBoB_Settings::setValue().

Here is the call graph for this function:

void SerialPlugin::LoadSettings (  ) 

Loads state of all dialogs and any other settings this plugin needs.

Definition at line 33 of file serialplugin-core.cpp.

References bcore, commands(), getDock(), BBoB_Settings::getValue(), BCore::settings, and QVariant::toBool().

Referenced by CoreInit().

Here is the call graph for this function:

void SerialPlugin::Module ( const QString  name,
const QStringList  params 
) [virtual]

Implements CoreInterface.

Definition at line 40 of file serialplugin-core.cpp.

References QMap::contains(), and Modules.

Here is the call graph for this function:


Member Data Documentation

SerialDialog* SerialPlugin::SerialDlog [private]

Definition at line 25 of file serialplugin.h.

Referenced by CoreInit(), getDock(), and SaveSettings().

SerialWidget* SerialPlugin::port [private]

Definition at line 26 of file serialplugin.h.

Referenced by getDock().

QMap<QString, BBoB_Module*> SerialPlugin::Modules

Definition at line 41 of file serialplugin.h.

Referenced by ChannelPointer(), Module(), ModuleInputs(), ModuleList(), ModuleOutputs(), ModuleParams(), ModulePointer(), and saveChannels().

BCore* SerialPlugin::bcore

Definition at line 44 of file serialplugin.h.

Referenced by CoreInit(), getDock(), LoadSettings(), saveChannels(), and SaveSettings().


The documentation for this class was generated from the following files:
Generated on Sun Oct 28 22:51:45 2007 for BBoB by  doxygen 1.5.3