/* $Id: NodeChannelsPlugin.h 3563 2013-03-06 03:33:01Z IMPOMEZIA $
 * IMPOMEZIA Simple Chat
 * Copyright © 2008-2013 IMPOMEZIA <schat@impomezia.com>
 *
 *   This program is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef NODECHANNELSPLUGIN_H_
#define NODECHANNELSPLUGIN_H_

#include "CoreApi.h"
#include "NodeApi.h"

class NodeChannelsPlugin : public QObject, CoreApi, NodeApi
{
  Q_OBJECT
  Q_INTERFACES(CoreApi NodeApi)

# if QT_VERSION >= 0x050000
  Q_PLUGIN_METADATA(IID "me.schat.server.NodeChannels" FILE "NodeChannels.json")
# endif

public:
  QVariantMap header() const
  {
    QVariantMap out        = CoreApi::header();
    out[CORE_API_ID]       = "NodeChannels";
    out[CORE_API_NAME]     = "Node Channels";
    out[CORE_API_VERSION]  = "0.3.1";
    out[CORE_API_TYPE]     = "server";
    out[CORE_API_SITE]     = "http://wiki.schat.me/Plugin/NodeChannels";
    out[CORE_API_DESC]     = "Node Channels";

    return out;
  }

  NodePlugin *create();
};

#endif /* NODECHANNELSPLUGIN_H_ */
