src/plugins/lmp/plugins/brainslugz/brainslugz.h
/**********************************************************************
 * LeechCraft - modular cross-platform feature rich internet client.
 * Copyright (C) 2006-2014  Georg Rudoy
 *
 * Distributed under the Boost Software License, Version 1.0.
 * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
 **********************************************************************/

#pragma once

#include <QObject>
#include <QPointer>
#include <interfaces/iinfo.h>
#include <interfaces/ihavetabs.h>
#include <interfaces/iplugin2.h>
#include <interfaces/ijobholder.h>
#include <interfaces/lmp/ilmpplugin.h>

class QWidget;

namespace LC::LMP::BrainSlugz
{
	class CheckTab;
	class ProgressModelManager;

	class Plugin : public QObject
				 , public IInfo
				 , public IHaveTabs
				 , public IPlugin2
				 , public IJobHolder
				 , public ILMPPlugin
	{
		Q_OBJECT
		Q_INTERFACES (IInfo IHaveTabs IPlugin2 IJobHolder LC::LMP::ILMPPlugin)

		LC_PLUGIN_METADATA ("org.LeechCraft.LMP.BrainSlugz")

		TabClassInfo CheckTC_;

		ILMPProxy_ptr LmpProxy_;

		QPointer<CheckTab> OpenedTab_;

		ProgressModelManager *ProgressModelManager_;
	public:
		void Init (ICoreProxy_ptr) override;
		void SecondInit () override;
		void Release () override;
		QByteArray GetUniqueID () const override;
		QString GetName () const override;
		QString GetInfo () const override;
		QIcon GetIcon () const override;

		TabClasses_t GetTabClasses () const override;
		void TabOpenRequested (const QByteArray&) override;

		QSet<QByteArray> GetPluginClasses () const override;

		QAbstractItemModel* GetRepresentation () const override;

		void SetLMPProxy (ILMPProxy_ptr) override;
	};
}
