• 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
25namespace TDEIO { class Job; }
26
45class FaviconsModule : public KDEDModule
46{
47 TQ_OBJECT
48 K_DCOP
49public:
50 FaviconsModule(const TQCString &obj);
51 virtual ~FaviconsModule();
52
53k_dcop:
63 TQString iconForURL(const KURL &url);
73 ASYNC setIconForURL(const KURL &url, const KURL &iconURL);
81 ASYNC downloadHostIcon(const KURL &url);
82
83k_dcop_signals:
84 void iconChanged(bool isHost, TQString hostOrURL, TQString iconName);
85 void infoMessage(KURL iconURL, TQString msg);
86
87private:
88 void startDownload(const TQString &, bool, const KURL &);
89 TQString simplifyURL(const KURL &);
90 TQString iconNameFromURL(const KURL &);
91 bool isIconOld(const TQString &);
92
93private slots:
94 void slotData(TDEIO::Job *, const TQByteArray &);
95 void slotResult(TDEIO::Job *);
96 void slotInfoMessage(TDEIO::Job *, const TQString &);
97 void slotKill();
98
99private:
100 struct FaviconsModulePrivate *d;
101};
102
103#endif
FaviconsModule
KDED Module to handle shortcut icons ("favicons") FaviconsModule implements a KDED Module that handle...
Definition: favicons.h:46
FaviconsModule::setIconForURL
ASYNC setIconForURL(const KURL &url, const KURL &iconURL)
Assiciates an icon with the given URL.
Definition: favicons.cpp:156
FaviconsModule::iconForURL
TQString iconForURL(const KURL &url)
Looks up an icon name for a given URL.
Definition: favicons.cpp:92
FaviconsModule::downloadHostIcon
ASYNC downloadHostIcon(const KURL &url)
Downloads the icon for a given host if it was not downloaded before or the download was too long ago.
Definition: favicons.cpp:173

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