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

 medInria

 Copyright (c) INRIA 2013 - 2020. All rights reserved.
 See LICENSE.txt for details.
 
  This software is distributed WITHOUT ANY WARRANTY; without even
  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  PURPOSE.

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

#include <qtdcmDataSource.h>
#include <qtdcmDataSourcePlugin.h>

#include <dtkLog/dtkLog.h>

// /////////////////////////////////////////////////////////////////
// qtdcmDataSourcePlugin
// /////////////////////////////////////////////////////////////////

qtdcmDataSourcePlugin::qtdcmDataSourcePlugin ( QObject *parent ) : dtkPlugin ( parent )
{

}

qtdcmDataSourcePlugin::~qtdcmDataSourcePlugin()
{
}

bool qtdcmDataSourcePlugin::initialize()
{
    if ( !qtdcmDataSource::registered() ) { qWarning() << "Unable to register qtdcmDataSource type"; }

    return true;
}

bool qtdcmDataSourcePlugin::uninitialize()
{
    return true;
}

QString qtdcmDataSourcePlugin::name() const
{
    return "qtdcmDataSourcePlugin";
}

QString qtdcmDataSourcePlugin::description() const
{
    return "This plugin adds Dicom functionality to the browser area";
}

QStringList qtdcmDataSourcePlugin::authors() const
{
  return QStringList() << "Alexandre Abadie <Alexandre.Abadie@inria.fr>";
}

QString qtdcmDataSourcePlugin::contact() const
{
  return "Alexandre Abadie <Alexandre.Abadie@inria.fr>";
}

QStringList qtdcmDataSourcePlugin::contributors() const
{
  return QStringList() << "Olivier Commowick <Olivier.Commowick@inria.fr>";
}

QStringList qtdcmDataSourcePlugin::dependencies() const
{
  return QStringList() << "QtDcm v2.0";
}

QString qtdcmDataSourcePlugin::version() const
{
  return QTDCMDATASOURCEPLUGIN_VERSION;
}


QStringList qtdcmDataSourcePlugin::tags() const
{
    return QStringList() << "dicom" << "data" << "source";
}

QStringList qtdcmDataSourcePlugin::types() const
{
    return QStringList() << "qtdcmDataSource";
}
