Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MetaFactory Class Reference

#include </home/clem/local/src/opie/noncore/apps/opie-console/metafactory.h>

Collaboration diagram for MetaFactory:

Collaboration graph
[legend]
List of all members.

Public Types

typedef ProfileDialogWidget *(* configWidget )(const QString &, QWidget *parent)
typedef IOLayer *(* iolayer )(const Profile &)
typedef FileTransferLayer *(* filelayer )(IOLayer *)
typedef ReceiveLayer *(* receivelayer )(IOLayer *)

Public Member Functions

 MetaFactory ()
 ~MetaFactory ()
void addConnectionWidgetFactory (const QCString &internalName, const QString &uiString, configWidget)
void addTerminalWidgetFactory (const QCString &internalName, const QString &name, configWidget)
void addKeyboardWidgetFactory (const QCString &internalName, const QString &name, configWidget)
void addIOLayerFactory (const QCString &, const QString &, iolayer)
void addFileTransferLayer (const QCString &name, const QString &, filelayer)
void addReceiveLayer (const QCString &name, const QString &, receivelayer)
QStringList ioLayers () const
QStringList connectionWidgets () const
QStringList terminalWidgets () const
QStringList fileTransferLayers () const
QStringList receiveLayers () const
IOLayernewIOLayer (const QString &, const Profile &)
ProfileDialogWidgetnewConnectionPlugin (const QString &, QWidget *)
ProfileDialogWidgetnewTerminalPlugin (const QString &, QWidget *)
ProfileDialogWidgetnewKeyboardPlugin (const QString &, QWidget *)
FileTransferLayernewFileTransfer (const QString &, IOLayer *)
ReceiveLayernewReceive (const QString &, IOLayer *)
QCString internal (const QString &) const
QString external (const QCString &) const

Private Attributes

QMap< QString, QCStringm_strings
QMap< QString, configWidgetm_conFact
QMap< QString, configWidgetm_termFact
QMap< QString, configWidgetm_keyFact
QMap< QString, iolayerm_layerFact
QMap< QString, filelayerm_fileFact
QMap< QString, receivelayerm_receiveFact

Member Typedef Documentation

typedef ProfileDialogWidget*(* MetaFactory::configWidget)(const QString &, QWidget *parent)
 

Definition at line 23 of file metafactory.h.

typedef FileTransferLayer*(* MetaFactory::filelayer)(IOLayer *)
 

Definition at line 25 of file metafactory.h.

typedef IOLayer*(* MetaFactory::iolayer)(const Profile &)
 

Definition at line 24 of file metafactory.h.

typedef ReceiveLayer*(* MetaFactory::receivelayer)(IOLayer *)
 

Definition at line 26 of file metafactory.h.


Constructor & Destructor Documentation

MetaFactory::MetaFactory  ) 
 

Definition at line 3 of file metafactory.cpp.

MetaFactory::~MetaFactory  ) 
 

Definition at line 5 of file metafactory.cpp.


Member Function Documentation

void MetaFactory::addConnectionWidgetFactory const QCString internalName,
const QString uiString,
configWidget 
 

add a ProfileDialogWidget to the factory name is the name shown to the user

Definition at line 8 of file metafactory.cpp.

References QMap< Key, T >::insert(), m_conFact, and m_strings.

Referenced by Default::Default().

void MetaFactory::addFileTransferLayer const QCString name,
const QString ,
filelayer 
 

adds a FileTransfer Layer

Definition at line 33 of file metafactory.cpp.

References QMap< Key, T >::insert(), m_fileFact, and m_strings.

Referenced by Default::Default().

void MetaFactory::addIOLayerFactory const QCString ,
const QString ,
iolayer 
 

adds an IOLayer factory

Definition at line 27 of file metafactory.cpp.

References QMap< Key, T >::insert(), m_layerFact, and m_strings.

Referenced by Default::Default().

void MetaFactory::addKeyboardWidgetFactory const QCString internalName,
const QString name,
configWidget 
 

Definition at line 20 of file metafactory.cpp.

References QMap< Key, T >::insert(), m_keyFact, and m_strings.

Referenced by Default::Default().

void MetaFactory::addReceiveLayer const QCString name,
const QString ,
receivelayer 
 

Definition at line 39 of file metafactory.cpp.

References QMap< Key, T >::insert(), m_receiveFact, and m_strings.

Referenced by Default::Default().

void MetaFactory::addTerminalWidgetFactory const QCString internalName,
const QString name,
configWidget 
 

Definition at line 14 of file metafactory.cpp.

References QMap< Key, T >::insert(), m_strings, and m_termFact.

Referenced by Default::Default().

QStringList MetaFactory::connectionWidgets  )  const
 

Definition at line 53 of file metafactory.cpp.

References QMap< Key, T >::begin(), QMap< Key, T >::end(), list, and m_conFact.

Referenced by ProfileEditorDialog::initUI().

QString MetaFactory::external const QCString  )  const
 

Definition at line 157 of file metafactory.cpp.

References QMap< Key, T >::begin(), QMap< Key, T >::end(), m_strings, and QString::null.

Referenced by ProfileManager::fromProfile(), ProfileEditorDialog::initUI(), and ProfileEditorDialog::slotConActivated().

QStringList MetaFactory::fileTransferLayers  )  const
 

Definition at line 69 of file metafactory.cpp.

References QMap< Key, T >::begin(), QMap< Key, T >::end(), list, and m_fileFact.

QCString MetaFactory::internal const QString  )  const
 

Definition at line 154 of file metafactory.cpp.

References m_strings.

Referenced by ProfileEditorDialog::accept().

QStringList MetaFactory::ioLayers  )  const
 

Definition at line 45 of file metafactory.cpp.

References QMap< Key, T >::begin(), QMap< Key, T >::end(), list, and m_layerFact.

ProfileDialogWidget * MetaFactory::newConnectionPlugin const QString ,
QWidget * 
 

Definition at line 101 of file metafactory.cpp.

References QMap< Key, T >::end(), QMap< Key, T >::find(), l, m_conFact, and wid.

Referenced by ProfileEditorDialog::slotConActivated().

FileTransferLayer * MetaFactory::newFileTransfer const QString ,
IOLayer
 

Definition at line 136 of file metafactory.cpp.

References QMap< Key, T >::end(), QMap< Key, T >::find(), l, and m_fileFact.

IOLayer * MetaFactory::newIOLayer const QString ,
const Profile
 

the generation...

Definition at line 86 of file metafactory.cpp.

References QMap< Key, T >::end(), QMap< Key, T >::find(), l, and m_layerFact.

Referenced by ProfileManager::fromProfile().

ProfileDialogWidget * MetaFactory::newKeyboardPlugin const QString ,
QWidget * 
 

Definition at line 123 of file metafactory.cpp.

References QMap< Key, T >::end(), QMap< Key, T >::find(), QString::isEmpty(), l, m_keyFact, and wid.

Referenced by ProfileEditorDialog::slotKeyActivated().

ReceiveLayer * MetaFactory::newReceive const QString ,
IOLayer
 

Definition at line 145 of file metafactory.cpp.

References QMap< Key, T >::end(), QMap< Key, T >::find(), l, and m_receiveFact.

ProfileDialogWidget * MetaFactory::newTerminalPlugin const QString ,
QWidget * 
 

Definition at line 111 of file metafactory.cpp.

References QMap< Key, T >::end(), QMap< Key, T >::find(), QString::isEmpty(), l, m_termFact, and wid.

Referenced by ProfileEditorDialog::slotTermActivated().

QStringList MetaFactory::receiveLayers  )  const
 

Definition at line 77 of file metafactory.cpp.

References QMap< Key, T >::begin(), QMap< Key, T >::end(), list, and m_receiveFact.

QStringList MetaFactory::terminalWidgets  )  const
 

Terminal Configuration widgets

Definition at line 61 of file metafactory.cpp.

References QMap< Key, T >::begin(), QMap< Key, T >::end(), list, and m_termFact.

Referenced by ProfileEditorDialog::initUI().


Member Data Documentation

QMap<QString, configWidget> MetaFactory::m_conFact [private]
 

Definition at line 100 of file metafactory.h.

Referenced by addConnectionWidgetFactory(), connectionWidgets(), and newConnectionPlugin().

QMap<QString, filelayer> MetaFactory::m_fileFact [private]
 

Definition at line 104 of file metafactory.h.

Referenced by addFileTransferLayer(), fileTransferLayers(), and newFileTransfer().

QMap<QString, configWidget> MetaFactory::m_keyFact [private]
 

Definition at line 102 of file metafactory.h.

Referenced by addKeyboardWidgetFactory(), and newKeyboardPlugin().

QMap<QString, iolayer> MetaFactory::m_layerFact [private]
 

Definition at line 103 of file metafactory.h.

Referenced by addIOLayerFactory(), ioLayers(), and newIOLayer().

QMap<QString, receivelayer> MetaFactory::m_receiveFact [private]
 

Definition at line 105 of file metafactory.h.

Referenced by addReceiveLayer(), newReceive(), and receiveLayers().

QMap<QString, QCString> MetaFactory::m_strings [private]
 

Definition at line 99 of file metafactory.h.

Referenced by addConnectionWidgetFactory(), addFileTransferLayer(), addIOLayerFactory(), addKeyboardWidgetFactory(), addReceiveLayer(), addTerminalWidgetFactory(), external(), and internal().

QMap<QString, configWidget> MetaFactory::m_termFact [private]
 

Definition at line 101 of file metafactory.h.

Referenced by addTerminalWidgetFactory(), newTerminalPlugin(), and terminalWidgets().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:40:10 2005 for OPIE by  doxygen 1.4.2