BusConsolePlugin Class Reference

#include <busconsoleplugin.h>

Inheritance diagram for BusConsolePlugin:

QObject CoreInterface DisplayInterface MessageBusInterface

List of all members.


Detailed Description

Definition at line 14 of file busconsoleplugin.h.


Public Member Functions

void CoreInit (const BCore *core)
void SaveSettings ()
void LoadSettings ()
void Module (const QString name, const QStringList params)
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 ()
bool loadBus (const int ID)
QString BusName ()
void BitBus (const int FromID, const int bit)
void ByteBus (const int FromID, const int byte)
void StringBus (const int FromID, const QString str)
void remote_data (int ID, QString data)
void remote_channel (QString sender, QString data)
void Input (QString name, QString data)
QStringList commands () const
QString activated (const QString &command)
QDockWidgetgetDock (const QString &command)
QWidgetgetConfig ()

Public Attributes

QMap< QString,
BBoB_Module * > 
Modules
BCorebcore
int MyID

Private Slots

void DlogIdChanged (int)

Private Attributes

BusConsoleDialogBusConsoleDlog

Member Function Documentation

void BusConsolePlugin::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 41 of file busconsoleplugin.cpp.

References bcore, BusConsoleDlog, and LoadSettings().

Here is the call graph for this function:

void BusConsolePlugin::SaveSettings (  )  [virtual]

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

Implements CoreInterface.

Definition at line 55 of file busconsoleplugin.cpp.

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

Here is the call graph for this function:

void BusConsolePlugin::LoadSettings (  ) 

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

Definition at line 74 of file busconsoleplugin.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 BusConsolePlugin::Module ( const QString  name,
const QStringList  params 
) [virtual]

Implements CoreInterface.

Definition at line 5 of file busconsoleplugin.cpp.

References QMap::contains(), and Modules.

Referenced by getDock().

Here is the call graph for this function:

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

Implements CoreInterface.

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

References QMap::contains(), and Modules.

Here is the call graph for this function:

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

Implements CoreInterface.

Definition at line 59 of file busconsoleplugin-module.cpp.

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

Referenced by getDock().

Here is the call graph for this function:

QStringList BusConsolePlugin::ModuleList (  )  const [virtual]

Implements CoreInterface.

Definition at line 54 of file busconsoleplugin-module.cpp.

References QMap::keys(), and Modules.

Here is the call graph for this function:

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

Implements CoreInterface.

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

References QMap::contains(), and Modules.

Here is the call graph for this function:

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

Implements CoreInterface.

Definition at line 31 of file busconsoleplugin-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 > BusConsolePlugin::ModuleOutputs ( const QString  name  )  const [virtual]

Implements CoreInterface.

Definition at line 43 of file busconsoleplugin-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 BusConsolePlugin::saveChannels (  ) 

Definition at line 12 of file busconsoleplugin-module.cpp.

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

Here is the call graph for this function:

bool BusConsolePlugin::loadBus ( const int  ID  )  [virtual]

Initialize BusID.

Implements MessageBusInterface.

Definition at line 128 of file busconsoleplugin.cpp.

References MyID, and QByteArray::setNum().

Here is the call graph for this function:

QString BusConsolePlugin::BusName (  )  [virtual]

Returns the name of this bus.

Implements MessageBusInterface.

Definition at line 139 of file busconsoleplugin.cpp.

void BusConsolePlugin::BitBus ( const int  FromID,
const int  bit 
) [virtual]

Receives bus data.

Implements MessageBusInterface.

Definition at line 146 of file busconsoleplugin.cpp.

References Modules, remote_data(), and QByteArray::setNum().

Referenced by getDock(), and Input().

Here is the call graph for this function:

void BusConsolePlugin::ByteBus ( const int  FromID,
const int  byte 
) [virtual]

Receives bus data.

Implements MessageBusInterface.

Definition at line 157 of file busconsoleplugin.cpp.

References Modules, remote_data(), and QByteArray::setNum().

Referenced by getDock(), and Input().

Here is the call graph for this function:

void BusConsolePlugin::StringBus ( const int  FromID,
const QString  str 
) [virtual]

Receives bus data.

Implements MessageBusInterface.

Definition at line 167 of file busconsoleplugin.cpp.

References Modules, and remote_data().

Referenced by getDock(), and Input().

Here is the call graph for this function:

void BusConsolePlugin::remote_data ( int  ID,
QString  data 
)

Receives remote command string and process.

Definition at line 176 of file busconsoleplugin.cpp.

References bcore, BusConsoleDlog, BCore::BusName(), BusConsoleDialog::SetData(), BusConsoleDialog::SetID(), and QByteArray::setNum().

Referenced by BitBus(), ByteBus(), and StringBus().

Here is the call graph for this function:

void BusConsolePlugin::remote_channel ( QString  sender,
QString  data 
)

Receives remote channel string and process.

Definition at line 186 of file busconsoleplugin.cpp.

References BusConsoleDlog, BusConsoleDialog::SetData(), and BusConsoleDialog::SetID().

Referenced by Input().

void BusConsolePlugin::Input ( QString  name,
QString  data 
)

Definition at line 23 of file busconsoleplugin.cpp.

References BitBus(), ByteBus(), MyID, remote_channel(), StringBus(), and QString::toInt().

Here is the call graph for this function:

QStringList BusConsolePlugin::commands (  )  const [virtual]

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

Implements DisplayInterface.

Definition at line 85 of file busconsoleplugin.cpp.

References QObject::tr().

Referenced by getDock(), and LoadSettings().

Here is the call graph for this function:

QString BusConsolePlugin::activated ( const QString command  ) 

QDockWidget * BusConsolePlugin::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 94 of file busconsoleplugin.cpp.

References BCore::addDock(), bcore, BitBus(), BusConsoleDlog, BCore::BusName(), ByteBus(), commands(), DlogIdChanged(), BusConsoleDialog::getDestID(), Module(), ModulePointer(), MyID, BusConsoleDialog::SetIDname(), QDockWidget::setWidget(), and StringBus().

Referenced by LoadSettings().

Here is the call graph for this function:

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

Implements DisplayInterface.

Definition at line 62 of file busconsoleplugin.h.

void BusConsolePlugin::DlogIdChanged ( int  ID  )  [private, slot]

Gets the name of a Bus ID and sets the name in the dialog.

Definition at line 194 of file busconsoleplugin.cpp.

References bcore, BusConsoleDlog, BCore::BusName(), and BusConsoleDialog::SetIDname().

Referenced by getDock().


Member Data Documentation

BusConsoleDialog* BusConsolePlugin::BusConsoleDlog [private]

Definition at line 21 of file busconsoleplugin.h.

Referenced by CoreInit(), DlogIdChanged(), getDock(), remote_channel(), remote_data(), and SaveSettings().

QMap<QString, BBoB_Module*> BusConsolePlugin::Modules

Definition at line 37 of file busconsoleplugin.h.

Referenced by BitBus(), ByteBus(), ChannelPointer(), Module(), ModuleInputs(), ModuleList(), ModuleOutputs(), ModuleParams(), ModulePointer(), saveChannels(), SaveSettings(), and StringBus().

BCore* BusConsolePlugin::bcore

Definition at line 40 of file busconsoleplugin.h.

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

int BusConsolePlugin::MyID

Definition at line 56 of file busconsoleplugin.h.

Referenced by getDock(), Input(), and loadBus().


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