ctkPluginPrivate Class Reference

#include <Libs/PluginFramework/ctkPluginPrivate_p.h>

Inheritance diagram for ctkPluginPrivate:
Inheritance graph
Collaboration diagram for ctkPluginPrivate:
Collaboration graph

List of all members.

Public Member Functions

 ctkPluginPrivate (ctkPlugin &qq, ctkPluginFrameworkContext *fw, long id, const QString &loc, const QString &sym, const ctkVersion &ver)
 ctkPluginPrivate (ctkPlugin &qq, ctkPluginFrameworkContext *fw, ctkPluginArchive *pa)
void finalizeActivation ()
ctkPlugin::State getUpdatedState ()
void setAutostartSetting (const ctkPlugin::StartOptions &setting)
virtual ~ctkPluginPrivate ()

Public Attributes

bool activating
QHash< QString, QString > cachedHeaders
QHash< QString, QString > cachedRawHeaders
bool deactivating
bool eagerActivation
ctkPluginFrameworkContext *const fwCtx
const long id
long lastModified
const QString location
QPluginLoader pluginLoader
QList< ctkRequirePlugin * > require
ctkPlugin::State state
QString symbolicName
ctkVersion version

Static Public Attributes

static const ctkPlugin::States RESOLVED_FLAGS = ctkPlugin::RESOLVED | ctkPlugin::STARTING | ctkPlugin::ACTIVE | ctkPlugin::STOPPING

Protected Attributes

ctkPlugin *const q_ptr

Private Member Functions

void checkManifestHeaders ()
void removePluginResources ()
void start0 ()

Detailed Description

Definition at line 37 of file ctkPluginPrivate_p.h.

Constructor & Destructor Documentation

ctkPluginPrivate::ctkPluginPrivate ( ctkPlugin qq,
ctkPluginFrameworkContext fw,
ctkPluginArchive pa 

Construct a new plugin based on a ctkPluginArchive.

fw ctkPluginFrameworkContext for this plugin.
ba ctkPlugin archive representing the shared library and cached data
checkContext AccessConrolContext to do permission checks against.
std::invalid_argument Faulty manifest for bundle

Definition at line 35 of file ctkPluginPrivate.cpp.

ctkPluginPrivate::ctkPluginPrivate ( ctkPlugin qq,
ctkPluginFrameworkContext fw,
long  id,
const QString &  loc,
const QString &  sym,
const ctkVersion ver 

Construct a new empty ctkPlugin.

Only called for the system plugin

fw Framework for this plugin.

Definition at line 66 of file ctkPluginPrivate.cpp.

ctkPluginPrivate::~ctkPluginPrivate (  )  [virtual]

Definition at line 77 of file ctkPluginPrivate.cpp.

Member Function Documentation

void ctkPluginPrivate::checkManifestHeaders (  )  [private]

Check manifest and cache certain manifest headers as variables.

Definition at line 122 of file ctkPluginPrivate.cpp.

void ctkPluginPrivate::finalizeActivation (  ) 

Performs the actual activation.

Definition at line 154 of file ctkPluginPrivate.cpp.

ctkPlugin::State ctkPluginPrivate::getUpdatedState (  ) 

Get updated plugin state. That means check if an installed plugin has been resolved.

ctkPlugin state

Definition at line 82 of file ctkPluginPrivate.cpp.

void ctkPluginPrivate::removePluginResources (  )  [private]

Remove a plugins registered listeners, registered services and used services.

Definition at line 247 of file ctkPluginPrivate.cpp.

void ctkPluginPrivate::setAutostartSetting ( const ctkPlugin::StartOptions &  setting  ) 

Save the autostart setting to the persistent plugin storage.

setting The autostart options to save.

Definition at line 107 of file ctkPluginPrivate.cpp.

void ctkPluginPrivate::start0 (  )  [private]

Definition at line 209 of file ctkPluginPrivate.cpp.

Member Data Documentation

True during the finalization of an activation.

Definition at line 168 of file ctkPluginPrivate_p.h.

ctkPlugin archive

Definition at line 129 of file ctkPluginPrivate_p.h.

QHash<QString, QString> ctkPluginPrivate::cachedHeaders

Stores the default locale entries when uninstalled

Definition at line 154 of file ctkPluginPrivate_p.h.

QHash<QString, QString> ctkPluginPrivate::cachedRawHeaders

Stores the raw manifest headers

Definition at line 159 of file ctkPluginPrivate_p.h.

True during the state change from active to resolved.

Definition at line 171 of file ctkPluginPrivate_p.h.

True when this plugin has its activation policy set to "eager"

Definition at line 165 of file ctkPluginPrivate_p.h.

Definition at line 99 of file ctkPluginPrivate_p.h.

ctkPlugin identifier

Definition at line 104 of file ctkPluginPrivate_p.h.

Time when the plugin was last modified

Definition at line 149 of file ctkPluginPrivate_p.h.

ctkPlugin location identifier

Definition at line 109 of file ctkPluginPrivate_p.h.

ctkPluginActivator for the plugin

Definition at line 139 of file ctkPluginPrivate_p.h.

ctkPluginContext for the plugin

Definition at line 134 of file ctkPluginPrivate_p.h.

The Qt plugin loader for the plugin

Definition at line 144 of file ctkPluginPrivate_p.h.

ctkPlugin* const ctkPluginPrivate::q_ptr [protected]

Definition at line 41 of file ctkPluginPrivate_p.h.

Saved exception of resolve failure List of ctkRequirePlugin entries.

Definition at line 177 of file ctkPluginPrivate_p.h.

const ctkPlugin::States ctkPluginPrivate::RESOLVED_FLAGS = ctkPlugin::RESOLVED | ctkPlugin::STARTING | ctkPlugin::ACTIVE | ctkPlugin::STOPPING [static]

Union of flags allowing plugin class access

Definition at line 97 of file ctkPluginPrivate_p.h.

State of the plugin

Definition at line 124 of file ctkPluginPrivate_p.h.

ctkPlugin symbolic name

Definition at line 114 of file ctkPluginPrivate_p.h.

ctkPlugin version

Definition at line 119 of file ctkPluginPrivate_p.h.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 21 May 2010 for CTK by  doxygen 1.6.1