SoundPlugin Class Reference

#include <soundplugin.h>

Inheritance diagram for SoundPlugin:

QObject CoreInterface DisplayInterface MessageBusInterface

List of all members.


Detailed Description

Definition at line 13 of file soundplugin.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)
const QString remote_protocol ()
void remote_data (QString)
QStringList commands () const
QString activated (const QString &command)
QDockWidgetgetDock (const QString &command)
QWidgetgetConfig ()

Public Attributes

QMap< QString,
BBoB_Module * > 
Modules
BCorebcore
int MyID

Private Member Functions

bool soundIsAvailable ()

Private Attributes

SoundPlayerplayer
SoundDialogSoundDlog

Member Function Documentation

bool SoundPlugin::soundIsAvailable (  )  [private]

Definition at line 6 of file soundplugin.cpp.

References QSound::isAvailable().

Here is the call graph for this function:

void SoundPlugin::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 7 of file soundplugin-core.cpp.

References bcore, LoadSettings(), Module(), and SoundDlog.

Here is the call graph for this function:

void SoundPlugin::SaveSettings (  )  [virtual]

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

Implements CoreInterface.

Definition at line 26 of file soundplugin-core.cpp.

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

Here is the call graph for this function:

void SoundPlugin::LoadSettings (  ) 

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

Definition at line 41 of file soundplugin-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 SoundPlugin::Module ( const QString  name,
const QStringList  params 
) [virtual]

Implements CoreInterface.

Definition at line 48 of file soundplugin-core.cpp.

References QMap::contains(), and Modules.

Referenced by CoreInit().

Here is the call graph for this function:

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

Implements CoreInterface.

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

References QMap::contains(), and Modules.

Here is the call graph for this function:

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

Implements CoreInterface.

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

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

Here is the call graph for this function:

QStringList SoundPlugin::ModuleList (  )  const [virtual]

Implements CoreInterface.

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

References QMap::keys(), and Modules.

Here is the call graph for this function:

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

Implements CoreInterface.

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

References QMap::contains(), and Modules.

Here is the call graph for this function:

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

Implements CoreInterface.

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

Implements CoreInterface.

Definition at line 42 of file soundplugin-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 SoundPlugin::saveChannels (  ) 

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

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

Here is the call graph for this function:

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

Initialize BusID.

Implements MessageBusInterface.

Definition at line 26 of file soundplugin-messagebus.cpp.

References MyID, and QByteArray::setNum().

Here is the call graph for this function:

QString SoundPlugin::BusName (  )  [virtual]

Returns the name of this bus.

Implements MessageBusInterface.

Definition at line 37 of file soundplugin-messagebus.cpp.

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

Receives bus data.

Implements MessageBusInterface.

Definition at line 44 of file soundplugin-messagebus.cpp.

References QByteArray::setNum().

Here is the call graph for this function:

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

Receives bus data.

Implements MessageBusInterface.

Definition at line 54 of file soundplugin-messagebus.cpp.

References QByteArray::setNum().

Here is the call graph for this function:

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

Receives bus data.

Implements MessageBusInterface.

Definition at line 64 of file soundplugin-messagebus.cpp.

References remote_data().

Here is the call graph for this function:

const QString SoundPlugin::remote_protocol (  )  [inline]

Definition at line 55 of file soundplugin.h.

Referenced by remote_data().

void SoundPlugin::remote_data ( QString  data  ) 

Receives remote command string and process.

Definition at line 6 of file soundplugin-messagebus.cpp.

References SoundPlayer::add(), SoundPlayer::play(), player, remote_protocol(), QString::remove(), QString::section(), QString::startsWith(), and QString::toAscii().

Referenced by StringBus().

Here is the call graph for this function:

QStringList SoundPlugin::commands (  )  const [virtual]

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

Implements DisplayInterface.

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

References QObject::tr().

Referenced by LoadSettings().

Here is the call graph for this function:

QString SoundPlugin::activated ( const QString command  ) 

QDockWidget * SoundPlugin::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 soundplugin-display.cpp.

References BCore::addDock(), bcore, MyID, player, QDockWidget::setWidget(), and SoundDlog.

Referenced by LoadSettings().

Here is the call graph for this function:

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

Implements DisplayInterface.

Definition at line 62 of file soundplugin.h.


Member Data Documentation

SoundPlayer* SoundPlugin::player [private]

Definition at line 20 of file soundplugin.h.

Referenced by getDock(), and remote_data().

SoundDialog* SoundPlugin::SoundDlog [private]

Definition at line 21 of file soundplugin.h.

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

QMap<QString, BBoB_Module*> SoundPlugin::Modules

Definition at line 39 of file soundplugin.h.

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

BCore* SoundPlugin::bcore

Definition at line 42 of file soundplugin.h.

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

int SoundPlugin::MyID

Definition at line 52 of file soundplugin.h.

Referenced by getDock(), and loadBus().


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