libkdepim

KPIM::PluginLoaderBase Class Reference

Inheritance diagram for KPIM::PluginLoaderBase:

KPIM::PluginLoader< T, T_config > List of all members.

Detailed Description

Definition at line 48 of file pluginloaderbase.h.


Public Member Functions

QStringList types () const
const PluginMetaDatainfoForName (const QString &type) const
virtual void scan ()=0

Protected Member Functions

 PluginLoaderBase ()
virtual ~PluginLoaderBase ()
void doScan (const char *path)
void * mainFunc (const QString &type, const char *main_func) const

Member Function Documentation

QStringList KPIM::PluginLoaderBase::types (  )  const

Returns a list of all available plugin objects (of kind T).

Definition at line 52 of file pluginloaderbase.cpp.

const PluginMetaData * KPIM::PluginLoaderBase::infoForName ( const QString &  type  )  const

Returns the PluginMetaData structure for a given type.

Definition at line 60 of file pluginloaderbase.cpp.

virtual void KPIM::PluginLoaderBase::scan (  )  [pure virtual]

Overload this method in subclasses to call doScan with the right path argument.

Implemented in KPIM::PluginLoader< T, T_config >.

void KPIM::PluginLoaderBase::doScan ( const char *  path  )  [protected]

Rescans the plugin directory to find any newly installed plugins.

Extend this method in subclasses to add any builtins. Subclasses must call this explicitely. It's not called for them in the constructor.

Definition at line 65 of file pluginloaderbase.cpp.

void * KPIM::PluginLoaderBase::mainFunc ( const QString &  type,
const char *  main_func 
) const [protected]

Returns a pointer to symbol main_func in the library that implements the plugin of type type.

Definition at line 115 of file pluginloaderbase.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys