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

Opie::Core::OPluginLoader Class Reference

The class to load your QCOM+ plugins. More...

#include </home/clem/local/src/opie/libopie2/opiecore/opluginloader.h>

Inheritance diagram for Opie::Core::OPluginLoader:

Inheritance graph
[legend]
Collaboration diagram for Opie::Core::OPluginLoader:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OPluginLoader (const QString &name, bool sorted=false)
 Simple c'tor.
virtual ~OPluginLoader ()
template<class IFace>
IFace * load (const OPluginItem &item, const QUuid &)

Detailed Description

The class to load your QCOM+ plugins.

This class takes care of activation and even the order if you need it. It is normally good to place a .directory file into your plugin directory if you need order of activation.

You'll create the OPluginLoader and then use it to load the filtered plugins.

There is also a GUI for the configuration and a Manager to write the mentioned .directory file

On crash the safe mode is activated for the next run. You can then decide if you want to load plugins or come up with the Configuration on next start yourself then.

Since:
1.2

Definition at line 137 of file opluginloader.h.


Constructor & Destructor Documentation

Opie::Core::OPluginLoader::OPluginLoader const QString name,
bool  sorted = false
 

Simple c'tor.

Simple C'tor same as the one of the base class. Additional this class can cast for you if you nee it.

Parameters:
name The name of your plugin class
sorted If plugins are sorted
See also:
OGenericPluginLoader

Definition at line 665 of file opluginloader.cpp.

Opie::Core::OPluginLoader::~OPluginLoader  )  [virtual]
 

d'tor

See also:
OGenericPluginLoader::~OGenericPluginLoader

Definition at line 674 of file opluginloader.cpp.


Member Function Documentation

template<class IFace>
IFace * Opie::Core::OPluginLoader::load const OPluginItem item,
const QUuid uid
[virtual]
 

This is a template method allowing you to safely cast your load function

 MyTypePlugin *plug = load->load<MyTypePlugin>( item, IID_MyPlugin );

Reimplemented from Opie::Core::OGenericPluginLoader.

Definition at line 198 of file opluginloader.h.

References Opie::Core::OGenericPluginLoader::load().

Referenced by DateBookHoliday::init(), Today::loadPluginWidgets(), main(), DateBookSettings::setPluginList(), and TodayConfig::writeConfig().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 18:00:48 2005 for OPIE by  doxygen 1.4.2