/**********************************************************************
 * 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)
 **********************************************************************/

#ifndef PLUGINS_AZOTH_PLUGINS_METACONTACTS_METAACCOUNT_H
#define PLUGINS_AZOTH_PLUGINS_METACONTACTS_METAACCOUNT_H
#include <QObject>
#include <interfaces/azoth/iaccount.h>

namespace LC
{
namespace Azoth
{
namespace Metacontacts
{
	class MetaProtocol;

	class MetaAccount : public QObject
					  , public IAccount
	{
		Q_OBJECT
		Q_INTERFACES (LC::Azoth::IAccount)

		MetaProtocol *Parent_;
	public:
		MetaAccount (MetaProtocol*);

		QObject* GetQObject ();
		QObject* GetParentProtocol () const;
		AccountFeatures GetAccountFeatures () const;
		QList<ICLEntry*> GetCLEntries ();
		QString GetAccountName () const;
		QString GetOurNick () const;
		void RenameAccount (const QString&);
		QByteArray GetAccountID () const;
		QList<QAction*> GetActions () const;
		void OpenConfigurationDialog ();
		EntryStatus GetState () const;
		void ChangeState (const EntryStatus&);
		void Authorize (QObject*);
		void DenyAuth (QObject*);
		void RequestAuth (const QString&, const QString&,
				const QString&, const QStringList&);
		void RemoveEntry (QObject*);
		QObject* GetTransferManager () const;
	};
}
}
}

#endif
