diff options
Diffstat (limited to 'src/webpluginfactory.h')
-rw-r--r-- | src/webpluginfactory.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/webpluginfactory.h b/src/webpluginfactory.h index c1e4c28f..c5eefa45 100644 --- a/src/webpluginfactory.h +++ b/src/webpluginfactory.h @@ -2,7 +2,8 @@ * * This file is a part of the rekonq project * -* Copyright (C) 2009 by Andrea Diamantini <adjam7 at gmail dot com> +* Copyright (C) 2009-2010 by Andrea Diamantini <adjam7 at gmail dot com> +* Copyright (C) 2010 by Matthieu Gicquel <matgic78 at gmail dot com> * * * This program is free software; you can redistribute it and/or @@ -10,9 +11,9 @@ * published by the Free Software Foundation; either version 2 of * the License or (at your option) version 3 or any later version * accepted by the membership of KDE e.V. (or its successor approved -* by the membership of KDE e.V.), which shall act as a proxy +* by the membership of KDE e.V.), which shall act as a proxy * defined in Section 14 of version 3 of the license. -* +* * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the @@ -28,6 +29,9 @@ #define WEB_PLUGIN_FACTORY_H +// Rekonq Includes +#include "rekonq_defines.h" + // KDE Includes #include <KWebPluginFactory> @@ -36,34 +40,30 @@ #include <QtGui/QWidget> -class WebPluginFactory : public KWebPluginFactory +class REKONQ_TESTS_EXPORT WebPluginFactory : public KWebPluginFactory { -Q_OBJECT + Q_OBJECT public: WebPluginFactory(QObject *parent); - ~WebPluginFactory(); virtual QObject *create(const QString &mimeType, const QUrl &url, const QStringList &argumentNames, const QStringList &argumentValues) const; - virtual QList<Plugin> plugins() const; - signals: - void signalLoadClickToFlash(bool) const; - + public slots: void setLoadClickToFlash(bool load); - + private: /** When true, force loading of next flash animation (don't show clicktoflash) We use signals/slots to set this property because QWebPluginFactory::create is const */ - bool loadClickToFlash; + bool _loadClickToFlash; }; #endif // WEB_PLUGIN_FACTORY_H |