networkurlinterceptormanager.h 1.37 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 25 26

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

Laurent Montel's avatar
Rename  
Laurent Montel committed
35
    QVector<NetworkPluginUrlInterceptorInterface *> interfaceList() const;
Laurent Montel's avatar
Laurent Montel committed
36
private:
Laurent Montel's avatar
Rename  
Laurent Montel committed
37
    NetworkUrlInterceptorManagerPrivate *const d;
Laurent Montel's avatar
Laurent Montel committed
38 39 40
};
}
#endif // MAILNETWORKURLINTERCEPTORMANAGER_H