kopete/libkopete
kopeteblacklister.h
Go to the documentation of this file.00001 /* 00002 kopeteblacklister.h - Kopete BlackLister 00003 00004 Copyright (c) 2004 by Roie Kerstein <sf_kersteinroie@bezeqint.net> 00005 00006 ************************************************************************* 00007 * * 00008 * This library is free software; you can redistribute it and/or * 00009 * modify it under the terms of the GNU Lesser General Public * 00010 * License as published by the Free Software Foundation; either * 00011 * version 2 of the License, or (at your option) any later version. * 00012 * * 00013 ************************************************************************* 00014 */ 00015 00016 #ifndef KOPETEBLACKLISTER_H 00017 #define KOPETEBLACKLISTER_H 00018 00019 #include <QtCore/QObject> 00020 00021 namespace Kopete 00022 { 00023 00024 class Contact; 00025 00045 class BlackLister : public QObject 00046 { 00047 Q_OBJECT 00048 00049 public: 00057 BlackLister( const QString &protocolId, const QString &accountId, QObject *parent = 0 ); 00058 ~BlackLister(); 00059 00063 bool isBlocked( Contact *contact ); 00064 00068 bool isBlocked( const QString &contactId ); 00069 00070 public slots: 00077 void addContact( const QString &contactId ); 00078 00082 void addContact( Contact *contact ); 00083 00091 void removeContact( Contact *contact ); 00092 00096 void removeContact( const QString &contactId ); 00097 00098 signals: 00105 void contactAdded( const QString &contactId ); 00106 00113 void contactRemoved( const QString &contactId ); 00114 00115 private: 00116 void saveToDisk(); 00117 00118 class Private; 00119 Private *d; 00120 }; 00121 00122 } 00123 00124 #endif
KDE 4.2 API Reference