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

KDEWebKit

kwebpluginfactory.h
Go to the documentation of this file.
00001 /*
00002  * This file is part of the KDE project.
00003  *
00004  * Copyright (C) 2008 Michael Howell <mhowell123@gmail.com>
00005  * Copyright (C) 2009 Dawit Alemayehu <adawit@kde.org>
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Library General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2 of the License, or (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Library General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Library General Public License
00018  * along with this library; see the file COPYING.LIB.  If not, write to
00019  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00020  * Boston, MA 02110-1301, USA.
00021  *
00022  */
00023 #ifndef KWEBPLUGINFACTORY_H
00024 #define KWEBPLUGINFACTORY_H
00025 
00026 #include <kdewebkit_export.h>
00027 
00028 #include <QtWebKit/QWebPluginFactory>
00029 
00030 namespace KParts {
00031     class ReadOnlyPart;
00032 }
00033 
00045 class KDEWEBKIT_EXPORT KWebPluginFactory : public QWebPluginFactory
00046 {
00047     Q_OBJECT
00048 public:
00052     KWebPluginFactory(QObject *parent);
00053 
00057     ~KWebPluginFactory();
00058 
00067     virtual QObject *create(const QString &mimeType,
00068                             const QUrl &url,
00069                             const QStringList &argumentNames,
00070                             const QStringList &argumentValues) const;
00071 
00080     virtual QList<Plugin> plugins() const;
00081 
00082 protected:
00096     void extractGuessedMimeType(const QUrl& url, QString* mimeType) const;
00097 
00108     bool excludedMimeType(const QString& mimeType) const;
00109 
00128     KParts::ReadOnlyPart* createPartInstanceFrom(const QString& mimeType,
00129                                                  const QStringList &argumentNames,
00130                                                  const QStringList &argumentValues,
00131                                                  QWidget* parentWidget = 0,
00132                                                  QObject* parent = 0) const;
00133 private:
00134     class KWebPluginFactoryPrivate;
00135     KWebPluginFactoryPrivate* const d;
00136 };
00137 
00138 #endif // KWEBPLUGINFACTORY_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu May 10 2012 20:58:22 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEWebKit

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

kdelibs-4.8.3 API Reference

Skip menu "kdelibs-4.8.3 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • 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
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