26 #include <QWeakPointer> 36 class ctkPluginArchive;
37 class ctkPluginFrameworkContext;
38 class ctkPluginPrivate;
97 UNINSTALLED = 0x00000001,
111 INSTALLED = 0x00000002,
129 RESOLVED = 0x00000004,
147 STARTING = 0x00000008,
159 STOPPING = 0x00000010,
176 Q_DECLARE_FLAGS(States,
State)
192 START_TRANSIENT = 0x00000001,
207 START_ACTIVATION_POLICY = 0x00000002
216 Q_DECLARE_FLAGS(StartOptions, StartOption)
231 STOP_TRANSIENT = 0x00000001
239 Q_DECLARE_FLAGS(StopOptions, StopOption)
253 State getState()
const;
358 virtual void start(
const StartOptions&
options = START_ACTIVATION_POLICY);
432 virtual void stop(
const StopOptions&
options = 0);
512 void update(
const QUrl &updateLocation = QUrl());
573 virtual void uninstall();
615 long getPluginId()
const;
632 QString getLocation()
const;
677 QString getSymbolicName()
const;
700 virtual QStringList getResourceList(
const QString& path)
const;
741 virtual QStringList findResources(
const QString& path,
const QString& filePattern,
bool recurse)
const;
759 virtual QByteArray getResource(
const QString& path)
const;
799 friend class ctkPluginFrameworkLauncherPrivate;
800 friend class ctkPluginFrameworkPrivate;
801 friend class ctkPluginFrameworkContext;
802 friend class ctkPlugins;
803 friend class ctkServiceReferencePrivate;
811 void init(ctkPluginPrivate* dd);
812 void init(
const QWeakPointer<ctkPlugin>&
self, ctkPluginFrameworkContext* fw, QSharedPointer<ctkPluginArchive> ba);
836 CTK_PLUGINFW_EXPORT
ctkLogStream& operator<<(ctkLogStream& stream, const QSharedPointer<ctkPlugin>& plugin);
840 #endif // CTKPLUGIN_H
CTK_PLUGINFW_EXPORT QDebug operator<<(QDebug debug, ctkPlugin::State state)
Q_DECLARE_OPERATORS_FOR_FLAGS(ctkVTKDataSetModel::AttributeTypes)
Q_DECLARE_METATYPE(ctkDICOMPersonName)
static const QString PLUGIN_LOCALIZATION_DEFAULT_BASENAME