/******************************************************************************

  This source file is part of the Avogadro project.

  Copyright 2012 Kitware, Inc.

  This source code is released under the New BSD License, (the "License").

  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.

******************************************************************************/

#include <QtCore/QtPlugin>

@PluginIncludes@

namespace Avogadro {
namespace QtPlugins {

class @PluginName@Factory : public QObject, public QtGui::@PluginType@Factory
{
  Q_OBJECT
  Q_PLUGIN_METADATA(IID "org.openchemistry.avogadro.@PluginType@Factory")
  Q_INTERFACES(Avogadro::QtGui::@PluginType@Factory)

public:
  explicit @PluginName@Factory(QObject *parent_ = 0) : QObject(parent_) {}

  QtGui::@PluginType@ * createInstance()
  {
    @PluginClass@ *object = new @PluginClass@(parent());
    object->setObjectName("@PluginName@");
    return object;
  }

  QString identifier() const { return "@PluginName@"; }

  QString description() const { return "@PluginDescription@"; }

};

}
}

#include "@PluginName@Plugin.moc"
