• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kopete/libkopete

  • sources
  • kde-4.14
  • kdenetwork
  • kopete
  • libkopete
kopeteblacklister.h
Go to the documentation of this file.
1 /*
2  kopeteblacklister.h - Kopete BlackLister
3 
4  Copyright (c) 2004 by Roie Kerstein <sf_kersteinroie@bezeqint.net>
5 
6  *************************************************************************
7  * *
8  * This library is free software; you can redistribute it and/or *
9  * modify it under the terms of the GNU Lesser General Public *
10  * License as published by the Free Software Foundation; either *
11  * version 2 of the License, or (at your option) any later version. *
12  * *
13  *************************************************************************
14 */
15 
16 #ifndef KOPETEBLACKLISTER_H
17 #define KOPETEBLACKLISTER_H
18 
19 #include <QtCore/QObject>
20 
21 namespace Kopete
22 {
23 
24 class Contact;
25 
45 class BlackLister : public QObject
46 {
47  Q_OBJECT
48 
49 public:
57  BlackLister( const QString &protocolId, const QString &accountId, QObject *parent = 0 );
58  ~BlackLister();
59 
63  bool isBlocked( Contact *contact );
64 
68  bool isBlocked( const QString &contactId );
69 
70 public slots:
77  void addContact( const QString &contactId );
78 
82  void addContact( Contact *contact );
83 
91  void removeContact( Contact *contact );
92 
96  void removeContact( const QString &contactId );
97 
98 signals:
105  void contactAdded( const QString &contactId );
106 
113  void contactRemoved( const QString &contactId );
114 
115 private:
116  void saveToDisk();
117 
118  class Private;
119  Private * const d;
120 };
121 
122 }
123 
124 #endif
Kopete::BlackLister::removeContact
void removeContact(Contact *contact)
Remove a contact from the blacklist.
Definition: kopeteblacklister.cpp:81
QObject
Kopete::BlackLister::isBlocked
bool isBlocked(Contact *contact)
Definition: kopeteblacklister.cpp:59
QString
Kopete::Contact
Definition: kopetecontact.h:58
Kopete::BlackLister::contactAdded
void contactAdded(const QString &contactId)
A new contact has been added to the list.
Kopete::BlackLister::addContact
void addContact(const QString &contactId)
Add a contact to the blacklist.
Definition: kopeteblacklister.cpp:64
Kopete::BlackLister::contactRemoved
void contactRemoved(const QString &contactId)
A contact has been removed from the list.
Kopete::BlackLister
Manages the list of blacklisted contacts for an account.
Definition: kopeteblacklister.h:45
Kopete::BlackLister::BlackLister
BlackLister(const QString &protocolId, const QString &accountId, QObject *parent=0)
Create an instance, and read the blacklist from disk if it exists.
Definition: kopeteblacklister.cpp:38
Kopete::BlackLister::~BlackLister
~BlackLister()
Definition: kopeteblacklister.cpp:48
QObject::parent
QObject * parent() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/libkopete

Skip menu "kopete/libkopete"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal