networkurlinterceptormanager.h 1.54 KB
Newer Older
Laurent Montel's avatar
Laurent Montel committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
/*
  Copyright (c) 2016 Montel Laurent <montel@kde.org>

  This program is free software; you can redistribute it and/or modify it
  under the terms of the GNU General Public License, version 2, as
  published by the Free Software Foundation.

  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 GNU
  General Public License for more details.

  You should have received a copy of the GNU General Public License along
  with this program; if not, write to the Free Software Foundation, Inc.,
  51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
*/

#ifndef MAILNETWORKURLINTERCEPTORMANAGER_H
#define MAILNETWORKURLINTERCEPTORMANAGER_H

#include <QObject>
Laurent Montel's avatar
Laurent Montel committed
22
#include <messageviewer/networkpluginurlinterceptor.h>
Laurent Montel's avatar
Laurent Montel committed
23
#include "messageviewer_export.h"
Laurent Montel's avatar
Laurent Montel committed
24
#include <QVector>
Laurent Montel's avatar
Laurent Montel committed
25 26 27

namespace MessageViewer
{
Laurent Montel's avatar
Rename  
Laurent Montel committed
28 29
class NetworkUrlInterceptorManagerPrivate;
class MESSAGEVIEWER_EXPORT NetworkUrlInterceptorManager : public QObject
Laurent Montel's avatar
Laurent Montel committed
30 31 32
{
    Q_OBJECT
public:
Laurent Montel's avatar
Laurent Montel committed
33
    explicit NetworkUrlInterceptorManager(QWebEngineView *webEngine, KActionCollection *ac, QObject *parent = Q_NULLPTR);
Laurent Montel's avatar
Rename  
Laurent Montel committed
34
    ~NetworkUrlInterceptorManager();
Laurent Montel's avatar
Laurent Montel committed
35

Laurent Montel's avatar
Rename  
Laurent Montel committed
36
    QVector<NetworkPluginUrlInterceptorInterface *> interfaceList() const;
Laurent Montel's avatar
Laurent Montel committed
37
    QList<QAction *> actions() const;
Laurent Montel's avatar
Laurent Montel committed
38
    QVector<NetworkPluginUrlInterceptorConfigureWidgetSetting> configureInterceptorList(QWidget *parent) const;
Laurent Montel's avatar
Laurent Montel committed
39
private:
Laurent Montel's avatar
Rename  
Laurent Montel committed
40
    NetworkUrlInterceptorManagerPrivate *const d;
Laurent Montel's avatar
Laurent Montel committed
41 42 43
};
}
#endif // MAILNETWORKURLINTERCEPTORMANAGER_H