~ubuntu-branches/ubuntu/saucy/kopete/saucy-proposed

« back to all changes in this revision

Viewing changes to plugins/privacy/privacyplugin.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-06-21 02:22:39 UTC
  • Revision ID: package-import@ubuntu.com-20130621022239-63l3zc8p0nf26pt6
Tags: upstream-4.10.80
ImportĀ upstreamĀ versionĀ 4.10.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    Privacy Plugin - Filter messages 
 
3
 
 
4
    Copyright (c) 2006 by Andre Duffeck <duffeck@kde.org>
 
5
    Kopete    (c) 2002-2006 by the Kopete developers <kopete-devel@kde.org>
 
6
 
 
7
    *************************************************************************
 
8
    *                                                                       *
 
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.                                   *
 
13
    *                                                                       *
 
14
    *************************************************************************
 
15
*/
 
16
 
 
17
#ifndef PRIVACY_PLUGIN_H
 
18
#define PRIVACY_PLUGIN_H
 
19
 
 
20
#include <QObject>
 
21
#include <QMap>
 
22
 
 
23
#include "kopeteplugin.h"
 
24
#include <QVariantList>
 
25
 
 
26
namespace Kopete { 
 
27
        class Message;
 
28
        class ChatSession;
 
29
        class MessageEvent;
 
30
        class Contact;
 
31
}
 
32
class KopeteView;
 
33
class PrivacyMessageHandlerFactory;
 
34
class PrivacyGUIClient;
 
35
 
 
36
class PrivacyPlugin : public Kopete::Plugin
 
37
{
 
38
        Q_OBJECT
 
39
public:
 
40
        static PrivacyPlugin *plugin();
 
41
 
 
42
        PrivacyPlugin( QObject *parent, const QVariantList &args );
 
43
        ~PrivacyPlugin();
 
44
 
 
45
        void addContactsToWhiteList( QList<const Kopete::Contact *> list );
 
46
        void addContactsToBlackList( QList<const Kopete::Contact *> list );
 
47
 
 
48
private Q_SLOTS:
 
49
        void slotSettingsChanged();
 
50
        void slotIncomingMessage( Kopete::MessageEvent *event );
 
51
        void slotAddToWhiteList();
 
52
        void slotAddToBlackList();
 
53
 
 
54
        void slotViewCreated( KopeteView* );
 
55
        void slotChatSessionClosed( Kopete::ChatSession* );
 
56
private:
 
57
        static PrivacyPlugin *pluginStatic_;
 
58
        PrivacyMessageHandlerFactory *m_inboundHandler;
 
59
        QMap<Kopete::ChatSession*,PrivacyGUIClient*> m_guiClients;
 
60
};
 
61
 
 
62
#endif