LeechCraft Azoth  0.6.70-15082-g543737046d
Modular multiprotocol IM plugin for LeechCraft
ihaveblacklists.h
Go to the documentation of this file.
1 /**********************************************************************
2  * LeechCraft - modular cross-platform feature rich internet client.
3  * Copyright (C) 2006-2014 Georg Rudoy
4  *
5  * Distributed under the Boost Software License, Version 1.0.
6  * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7  **********************************************************************/
8 
9 #pragma once
10 
11 #include <QtPlugin>
12 
13 namespace LC
14 {
15 namespace Azoth
16 {
17  class ICLEntry;
18 
21  class IHaveBlacklists
22  {
23  protected:
24  virtual ~IHaveBlacklists () = default;
25  public:
30  virtual bool SupportsBlacklists () const = 0;
31 
39  virtual void SuggestToBlacklist (const QList<ICLEntry*>& entries) = 0;
40  };
41 }
42 }
43 
44 Q_DECLARE_INTERFACE (LC::Azoth::IHaveBlacklists,
45  "org.LeechCraft.Azoth.IHaveBlacklists/1.0")
LC::Azoth::IHaveBlacklists::SuggestToBlacklist
virtual void SuggestToBlacklist(const QList< ICLEntry * > &entries)=0
Suggests adding the given entries to the blacklist.
LC::Azoth::IHaveBlacklists
Interface for accounts that may have blacklists.
Definition: ihaveblacklists.h:33
QList
Definition: iaccountactionsprovider.h:16
LC::Azoth::IHaveBlacklists::~IHaveBlacklists
virtual ~IHaveBlacklists()=default
LC
Definition: activityinfo.h:13
LC::Azoth::IHaveBlacklists::SupportsBlacklists
virtual bool SupportsBlacklists() const =0
Checks whether this exact account supports blacklists.