LeechCraft Azoth 0.6.70-16373-g319c272718
Modular multiprotocol IM plugin for LeechCraft
Loading...
Searching...
No Matches
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
13namespace LC
14{
15namespace Azoth
16{
17 class ICLEntry;
18
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
44Q_DECLARE_INTERFACE (LC::Azoth::IHaveBlacklists,
45 "org.LeechCraft.Azoth.IHaveBlacklists/1.0")
Represents a single entry in contact list.
Definition iclentry.h:121
Interface for accounts that may have blacklists.
virtual ~IHaveBlacklists()=default
virtual bool SupportsBlacklists() const =0
Checks whether this exact account supports blacklists.
virtual void SuggestToBlacklist(const QList< ICLEntry * > &entries)=0
Suggests adding the given entries to the blacklist.