/*============================================================================= Library: CTK Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. =============================================================================*/ #ifndef CTKPLUGINFRAMEWORK_H #define CTKPLUGINFRAMEWORK_H #include "ctkPlugin.h" #include "ctkPluginFrameworkExport.h" class ctkPluginFrameworkContext; class ctkPluginFrameworkPrivate; /** * A %ctkPluginFramework instance. A %ctkPluginFramework is also known as a System %Plugin. * *
* %ctkPluginFramework instances are created using a ctkPluginFrameworkFactory. The methods * of this class can be used to manage and control the created plugin framework * instance. * * @threadsafe */ class CTK_PLUGINFW_EXPORT ctkPluginFramework : public ctkPlugin { Q_DECLARE_PRIVATE(ctkPluginFramework) Q_DISABLE_COPY(ctkPluginFramework) public: /** * Initialize this %ctkPluginFramework. After calling this method, this %ctkPluginFramework * must: *
* This %ctkPluginFramework will not actually be started until {@link #start() start} * is called. * *
* This method does nothing if called when this %ctkPluginFramework is in the * {@link #STARTING}, {@link #ACTIVE} or {@link #STOPPING} states. * * @throws ctkPluginException If this %ctkPluginFramework could not be initialized. */ void init(); /** * Start this %ctkPluginFramework. * *
* The following steps are taken to start this %ctkPluginFramework: *