/*===================================================================

The Medical Imaging Interaction Toolkit (MITK)

Copyright (c) German Cancer Research Center,
Division of Medical Image Computing.
All rights reserved.

This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty of MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE.

See LICENSE.txt or http://www.mitk.org for details.

===================================================================*/

#ifndef mitkPluginActivator_h
#define mitkPluginActivator_h

#include <ctkPluginActivator.h>

namespace mitk
{
  /*!
   * @brief Activator class for the @ref PET SUV calculation plugin.
   * @details This small helper class is necessary for the integration as a CTK plug-in.
   */
  class PluginActivator : public QObject, public ctkPluginActivator
  {
    Q_OBJECT
    Q_PLUGIN_METADATA(IID "org_mitk_gui_qt_pet_suvcalculation")
    Q_INTERFACES(ctkPluginActivator)

  public:
    /*!
     * @brief Registers the plug-in. Gets called by the framework when the plug-in is
     * first loaded.
     * @param context	The corresponding CTK plug-in context in which the plug-in is loaded.
     */
    void start(ctkPluginContext *context);

    /*!
     * @brief Deregisters the plug-in. Gets called by the framework when the plug-in
     * is unloaded.
     * @param context	The corresponding CTK plug-in context in which the plug-in was loaded.
     */
    void stop(ctkPluginContext *context);
  };
} // namespace mitk

#endif
