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

akregator

  • sources
  • kde-4.14
  • kdepim
  • akregator
  • src
feediconmanager.h
Go to the documentation of this file.
1 /*
2  This file is part of Akregator.
3 
4  Copyright (C) 2004 Sashmit Bhaduri <smt@vfemail.net>
5  2005 Frank Osterfeld <osterfeld@kde.org>
6 
7  This program is free software; you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation; either version 2 of the License, or
10  (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 
21  As a special exception, permission is given to link this program
22  with any edition of Qt, and distribute the resulting executable,
23  without including the source code for Qt in the source distribution.
24 */
25 
26 #ifndef AKREGATOR_FEEDICONMANAGER_H
27 #define AKREGATOR_FEEDICONMANAGER_H
28 
29 #include "akregator_export.h"
30 #include <QObject>
31 
32 class KUrl;
33 
34 class QIcon;
35 class QString;
36 
37 namespace Akregator {
38 
39 
40 class AKREGATOR_EXPORT FaviconListener
41 {
42 public:
43  virtual ~FaviconListener();
44 
45  virtual void setFavicon( const QIcon& icon ) = 0;
46 };
47 
48 class AKREGATOR_EXPORT FeedIconManager : public QObject
49 {
50  Q_OBJECT
51  Q_CLASSINFO("D-Bus Interface", "org.kde.akregator.feediconmanager")
52 
53  public:
54  static FeedIconManager* self();
55 
56  ~FeedIconManager();
57 
58  void addListener( const KUrl& url, FaviconListener* listener );
59  void removeListener( FaviconListener* listener );
60 
61  private Q_SLOTS:
62  Q_SCRIPTABLE void slotIconChanged(bool, const QString&, const QString&);
63 
64  private:
65  FeedIconManager();
66 
67  class Private;
68  friend class ::Akregator::FeedIconManager::Private;
69  Private* const d;
70 
71  Q_PRIVATE_SLOT( d, void loadIcon( QString ) )
72 };
73 
74 } // namespace Akregator
75 
76 #endif // AKREGATOR_FEEDICONMANAGER_H
AKREGATOR_EXPORT
#define AKREGATOR_EXPORT
Definition: akregator_export.h:35
QObject
QString
akregator_export.h
Akregator::FaviconListener
Definition: feediconmanager.h:40
QIcon
Akregator::FeedIconManager
Definition: feediconmanager.h:48
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akregator

Skip menu "akregator"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

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