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

KHTML

khtml_global.h

Go to the documentation of this file.
00001 /* This file is part of the KDE project
00002  *
00003  * Copyright (C) 2000 Simon Hausmann <hausmann@kde.org>
00004  * Copyright (C) 2007 David Faure <faure@kde.org>
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Library General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Library General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Library General Public License
00017  * along with this library; see the file COPYING.LIB.  If not, write to
00018  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019  * Boston, MA 02110-1301, USA.
00020  */
00021 
00022 #ifndef KHTML_GLOBAL_H
00023 #define KHTML_GLOBAL_H
00024 
00025 #include <khtml_export.h>
00026 
00027 #include <kparts/historyprovider.h>
00028 #include <kurl.h>
00029 
00030 class KComponentData;
00031 class KIconLoader;
00032 class KAboutData;
00033 class KHTMLSettings;
00034 class KHTMLPart;
00035 
00036 namespace KParts
00037 {
00038   class HistoryProvider;
00039 }
00040 namespace DOM
00041 {
00042   class DocumentImpl;
00043 }
00044 
00049 class KHTML_EXPORT KHTMLGlobal
00050 {
00051     friend class KHTMLViewPrivate;
00052 
00053 public:
00054     KHTMLGlobal();
00055     ~KHTMLGlobal();
00056 
00057     static void registerPart( KHTMLPart *part );
00058     static void deregisterPart( KHTMLPart *part );
00059 
00060     static void registerDocumentImpl( DOM::DocumentImpl *doc );
00061     static void deregisterDocumentImpl( DOM::DocumentImpl *doc );
00062 
00063     static const KComponentData &componentData();
00064     static KIconLoader *iconLoader();
00065 
00066     static KHTMLSettings *defaultHTMLSettings();
00067 
00068     // list of visited URLs
00069     static KParts::HistoryProvider *vLinks() {
00070         return KParts::HistoryProvider::self();
00071     }
00072 
00073     // Called when khtml part is unloaded
00074     static void finalCheck();
00075 
00076 private:
00077     static void ref();
00078     static void deref();
00079 private:
00080     static unsigned long s_refcnt;
00081     static KHTMLGlobal *s_self;
00082     static KComponentData *s_componentData;
00083     static KIconLoader *s_iconLoader;
00084     static KAboutData *s_about;
00085     static KHTMLSettings *s_settings;
00086 };
00087 
00088 #endif
00089 

KHTML

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal