|
@@ -43,7 +43,7 @@ ctkPluginPrivate::ctkPluginPrivate(
|
|
|
: q_ptr(&qq), fwCtx(fw), id(pa->getPluginId()),
|
|
: q_ptr(&qq), fwCtx(fw), id(pa->getPluginId()),
|
|
|
location(pa->getPluginLocation().toString()), state(ctkPlugin::INSTALLED),
|
|
location(pa->getPluginLocation().toString()), state(ctkPlugin::INSTALLED),
|
|
|
archive(pa), pluginContext(0), pluginActivator(0), pluginLoader(pa->getLibLocation()),
|
|
archive(pa), pluginContext(0), pluginActivator(0), pluginLoader(pa->getLibLocation()),
|
|
|
- lastModified(0), eagerActivation(false), activating(false), deactivating(false)
|
|
|
|
|
|
|
+ eagerActivation(false), activating(false), deactivating(false)
|
|
|
{
|
|
{
|
|
|
//TODO
|
|
//TODO
|
|
|
//checkCertificates(pa);
|
|
//checkCertificates(pa);
|
|
@@ -72,8 +72,8 @@ ctkPluginPrivate::ctkPluginPrivate(ctkPlugin& qq,
|
|
|
long id, const QString& loc, const QString& sym, const ctkVersion& ver)
|
|
long id, const QString& loc, const QString& sym, const ctkVersion& ver)
|
|
|
: q_ptr(&qq), fwCtx(fw), id(id), location(loc), symbolicName(sym), version(ver),
|
|
: q_ptr(&qq), fwCtx(fw), id(id), location(loc), symbolicName(sym), version(ver),
|
|
|
state(ctkPlugin::INSTALLED), archive(0), pluginContext(0),
|
|
state(ctkPlugin::INSTALLED), archive(0), pluginContext(0),
|
|
|
- pluginActivator(0), lastModified(0),
|
|
|
|
|
- eagerActivation(false), activating(false), deactivating(false)
|
|
|
|
|
|
|
+ pluginActivator(0), eagerActivation(false), activating(false),
|
|
|
|
|
+ deactivating(false)
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
}
|
|
}
|
|
@@ -140,6 +140,15 @@ void ctkPluginPrivate::ignoreAutostartSetting()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+void ctkPluginPrivate::modified()
|
|
|
|
|
+{
|
|
|
|
|
+ lastModified = QDateTime::currentDateTime();
|
|
|
|
|
+ if (archive)
|
|
|
|
|
+ {
|
|
|
|
|
+ archive->setLastModified(lastModified);
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
void ctkPluginPrivate::checkManifestHeaders()
|
|
void ctkPluginPrivate::checkManifestHeaders()
|
|
|
{
|
|
{
|
|
|
symbolicName = archive->getAttribute(ctkPluginConstants::PLUGIN_SYMBOLICNAME);
|
|
symbolicName = archive->getAttribute(ctkPluginConstants::PLUGIN_SYMBOLICNAME);
|