Home · All Namespaces · All Classes · Main Classes
Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends

DcpAppletPlugin Class Reference

This class loads the binary plugin (if any) based on its metadata. More...

#include <dcpappletplugin.h>

Inheritance diagram for DcpAppletPlugin:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DcpAppletPlugin (DcpAppletMetadata *metadata)
 creates an applet from the metadata and loads the plugin
 DcpAppletPlugin (DcpAppletMetadata *metadata, bool tryLoad)
 creates an applet from the metadata
virtual ~DcpAppletPlugin ()
DcpAppletIfapplet () const
bool isAppletLoaded () const
DcpAppletMetadatametadata () const
const QString errorMsg () const
int interfaceVersion () const

Static Public Member Functions

static void setDefaultLoadHints (int hints)

Protected Member Functions

virtual void load ()
virtual bool loadPluginFile (const QString &binaryPath)
virtual bool loadDslFile (const QString &dslPath)

Friends

class Ut_DcpAppletPlugin

Detailed Description

This class loads the binary plugin (if any) based on its metadata.


Constructor & Destructor Documentation

DcpAppletPlugin::DcpAppletPlugin ( DcpAppletMetadata metadata  )  [explicit]

creates an applet from the metadata and loads the plugin

Equivalent with DcpAppletPlugin(metadata, true).

DcpAppletPlugin::DcpAppletPlugin ( DcpAppletMetadata metadata,
bool  tryLoad 
)

creates an applet from the metadata

Depending on the value of tryLoad this constructor tries to load the plugin's library as well.

DcpAppletPlugin::~DcpAppletPlugin (  )  [virtual]

Member Function Documentation

DcpAppletIf * DcpAppletPlugin::applet (  )  const
Returns:
The applet interface of the applet loader.

Returns the applet interface, the interface object created by the applet if the applet loaded successfully. Returns NULL if the applet was not loaded. Please note that this method might return NULL!

const QString DcpAppletPlugin::errorMsg (  )  const
Returns:
the error message string describes the problem why the applet was not loaded. Returns the empty string if the applet was loaded successfully.
int DcpAppletPlugin::interfaceVersion (  )  const
bool DcpAppletPlugin::isAppletLoaded (  )  const
void DcpAppletPlugin::load (  )  [protected, virtual]
bool DcpAppletPlugin::loadDslFile ( const QString &  dslPath  )  [protected, virtual]
bool DcpAppletPlugin::loadPluginFile ( const QString &  binaryPath  )  [protected, virtual]
DcpAppletMetadata * DcpAppletPlugin::metadata (  )  const
Returns:
the metadata of the applet
void DcpAppletPlugin::setDefaultLoadHints ( int  hints  )  [static]

Friends And Related Function Documentation

friend class Ut_DcpAppletPlugin [friend]

The documentation for this class was generated from the following files:

Copyright © 2009 Nokia Corporation Generated on Tue Jul 5 2011 15:01:31
Doxygen 1.7.1
Meego control panel