2
Privacy Plugin - Filter messages
4
Copyright (c) 2006 by Andre Duffeck <duffeck@kde.org>
5
Kopete (c) 2002-2006 by the Kopete developers <kopete-devel@kde.org>
7
*************************************************************************
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
14
*************************************************************************
17
#ifndef PRIVACY_PLUGIN_H
18
#define PRIVACY_PLUGIN_H
23
#include "kopeteplugin.h"
24
#include <QVariantList>
33
class PrivacyMessageHandlerFactory;
34
class PrivacyGUIClient;
36
class PrivacyPlugin : public Kopete::Plugin
40
static PrivacyPlugin *plugin();
42
PrivacyPlugin( QObject *parent, const QVariantList &args );
45
void addContactsToWhiteList( QList<const Kopete::Contact *> list );
46
void addContactsToBlackList( QList<const Kopete::Contact *> list );
49
void slotSettingsChanged();
50
void slotIncomingMessage( Kopete::MessageEvent *event );
51
void slotAddToWhiteList();
52
void slotAddToBlackList();
54
void slotViewCreated( KopeteView* );
55
void slotChatSessionClosed( Kopete::ChatSession* );
57
static PrivacyPlugin *pluginStatic_;
58
PrivacyMessageHandlerFactory *m_inboundHandler;
59
QMap<Kopete::ChatSession*,PrivacyGUIClient*> m_guiClients;