• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • libkonq
 

libkonq

  • libkonq
konq_pixmapprovider.h
1 /* This file is part of the KDE project
2  Copyright (C) 2000 Carsten Pfeiffer <pfeiffer@kde.org>
3 
4  This program is free software; you can redistribute it and/or
5  modify it under the terms of the GNU General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; see the file COPYING. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef KONQ_PIXMAPPROVIDER_H
21 #define KONQ_PIXMAPPROVIDER_H
22 
23 #include <tqmap.h>
24 
25 #include <kpixmapprovider.h>
26 #include "konq_faviconmgr.h"
27 
28 #include <libkonq_export.h>
29 
30 class TDEConfig;
31 
32 class LIBKONQ_EXPORT KonqPixmapProvider : public KonqFavIconMgr, virtual public KPixmapProvider
33 {
34 public:
35  static KonqPixmapProvider * self();
36 
37  virtual ~KonqPixmapProvider();
38 
42  virtual TQPixmap pixmapFor( const TQString& url, int size = 0 );
43 
47  void load( TDEConfig * kc, const TQString& key );
52  void save( TDEConfig *, const TQString& key, const TQStringList& items );
53 
57  void clear();
58 
63  TQString iconNameFor( const TQString& url );
64 
65 protected:
66  KonqPixmapProvider( TQObject *parent=0, const char *name=0 );
67 
71  virtual void notifyChange( bool isHost, TQString hostOrURL, TQString iconName );
72 
73  TQPixmap loadIcon( const TQString& url, const TQString& icon, int size );
74 
75 private:
76  TQMap<TQString,TQString> iconMap;
77  static KonqPixmapProvider * s_self;
78 };
79 
80 
81 #endif // KONQ_PIXMAPPROVIDER_H
KonqFavIconMgr::notifyChange
virtual ASYNC notifyChange(bool, TQString, TQString)=0
an icon changed, updates the combo box
KonqFavIconMgr
Maintains a list of custom icons per URL.
Definition: konq_faviconmgr.h:31

libkonq

Skip menu "libkonq"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

libkonq

Skip menu "libkonq"
  • kate
  • libkonq
  • twin
  •   lib
Generated for libkonq by doxygen 1.8.13
This website is maintained by Timothy Pearson.