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

libkonq

  • libkonq
  • favicons
favicons.h
1 /* This file is part of the KDE Project
2  Copyright (c) 2001 Malte Starostik <malte@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 
19 #ifndef _FAVICONS_H_
20 #define _FAVICONS_H_
21 
22 #include <kdedmodule.h>
23 #include <kurl.h>
24 
25 namespace TDEIO { class Job; }
26 
45 class FaviconsModule : public KDEDModule
46 {
47  Q_OBJECT
48  K_DCOP
49 public:
50  FaviconsModule(const TQCString &obj);
51  virtual ~FaviconsModule();
52 
53 k_dcop:
63  TQString iconForURL(const KURL &url);
73  ASYNC setIconForURL(const KURL &url, const KURL &iconURL);
81  ASYNC downloadHostIcon(const KURL &url);
82 
83 k_dcop_signals:
84  void iconChanged(bool isHost, TQString hostOrURL, TQString iconName);
85  void infoMessage(KURL iconURL, TQString msg);
86 
87 private:
88  void startDownload(const TQString &, bool, const KURL &);
89  TQString simplifyURL(const KURL &);
90  TQString iconNameFromURL(const KURL &);
91  bool isIconOld(const TQString &);
92 
93 private slots:
94  void slotData(TDEIO::Job *, const TQByteArray &);
95  void slotResult(TDEIO::Job *);
96  void slotInfoMessage(TDEIO::Job *, const TQString &);
97  void slotKill();
98 
99 private:
100  struct FaviconsModulePrivate *d;
101 };
102 
103 #endif

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.1.2
This website is maintained by Timothy Pearson.