Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PIM Messagelib
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PIM
PIM Messagelib
Commits
493205cd
Commit
493205cd
authored
Feb 19, 2016
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add singleton for plugin interface
parent
ee3941fe
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
170 additions
and
0 deletions
+170
-0
messageviewer/src/CMakeLists.txt
messageviewer/src/CMakeLists.txt
+1
-0
messageviewer/src/viewer/webengine/mailnetworkpluginulrinterceptorinterface.cpp
...er/webengine/mailnetworkpluginulrinterceptorinterface.cpp
+31
-0
messageviewer/src/viewer/webengine/mailnetworkpluginulrinterceptorinterface.h
...ewer/webengine/mailnetworkpluginulrinterceptorinterface.h
+35
-0
messageviewer/src/viewer/webengine/mailnetworkulrinterceptorpluginmanager.cpp
...ewer/webengine/mailnetworkulrinterceptorpluginmanager.cpp
+65
-0
messageviewer/src/viewer/webengine/mailnetworkulrinterceptorpluginmanager.h
...viewer/webengine/mailnetworkulrinterceptorpluginmanager.h
+38
-0
No files found.
messageviewer/src/CMakeLists.txt
View file @
493205cd
...
...
@@ -82,6 +82,7 @@ if (QTWEBENGINE_EXPERIMENTAL_OPTION)
viewer/webengine/mailwebhittestresult.cpp
viewer/webengine/mailnetworkulrinterceptor.cpp
viewer/webengine/mailnetworkpluginulrinterceptorinterface.cpp
viewer/webengine/mailnetworkulrinterceptorpluginmanager.cpp
${
libmessageviewer_mailviewer_SRCS
}
findbar/findbarwebengineview.cpp
)
...
...
messageviewer/src/viewer/webengine/mailnetworkpluginulrinterceptorinterface.cpp
0 → 100644
View file @
493205cd
/*
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
*/
#include "mailnetworkpluginulrinterceptorinterface.h"
using
namespace
MessageViewer
;
MailNetworkPluginUlrInterceptorInterface
::
MailNetworkPluginUlrInterceptorInterface
(
QObject
*
parent
)
:
QObject
(
parent
)
{
}
MailNetworkPluginUlrInterceptorInterface
::~
MailNetworkPluginUlrInterceptorInterface
()
{
}
messageviewer/src/viewer/webengine/mailnetworkpluginulrinterceptorinterface.h
0 → 100644
View file @
493205cd
/*
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 MAILNETWORKPLUGINULRINTERCEPTORINTERFACE_H
#define MAILNETWORKPLUGINULRINTERCEPTORINTERFACE_H
#include <QObject>
class
QWebEngineUrlRequestInfo
;
namespace
MessageViewer
{
class
MailNetworkPluginUlrInterceptorInterface
:
public
QObject
{
Q_OBJECT
public:
explicit
MailNetworkPluginUlrInterceptorInterface
(
QObject
*
parent
=
Q_NULLPTR
);
~
MailNetworkPluginUlrInterceptorInterface
();
virtual
void
interceptRequest
(
QWebEngineUrlRequestInfo
&
info
)
=
0
;
};
}
#endif // MAILNETWORKPLUGINULRINTERCEPTORINTERFACE_H
messageviewer/src/viewer/webengine/mailnetworkulrinterceptorpluginmanager.cpp
0 → 100644
View file @
493205cd
/*
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
*/
#include "mailnetworkulrinterceptorpluginmanager.h"
using
namespace
MessageViewer
;
class
MailNetworkUlrInterceptorPluginManagerInstancePrivate
{
public:
MailNetworkUlrInterceptorPluginManagerInstancePrivate
()
:
mailNetworkUrlInterceptorPluginManager
(
new
MailNetworkUlrInterceptorPluginManager
)
{
}
~
MailNetworkUlrInterceptorPluginManagerInstancePrivate
()
{
delete
mailNetworkUrlInterceptorPluginManager
;
}
MailNetworkUlrInterceptorPluginManager
*
mailNetworkUrlInterceptorPluginManager
;
};
Q_GLOBAL_STATIC
(
MailNetworkUlrInterceptorPluginManagerInstancePrivate
,
sInstance
)
class
MessageViewer
::
MailNetworkUlrInterceptorPluginManagerPrivate
{
public:
MailNetworkUlrInterceptorPluginManagerPrivate
()
{
}
};
MailNetworkUlrInterceptorPluginManager
*
MailNetworkUlrInterceptorPluginManager
::
self
()
{
return
sInstance
->
mailNetworkUrlInterceptorPluginManager
;
}
MailNetworkUlrInterceptorPluginManager
::
MailNetworkUlrInterceptorPluginManager
(
QObject
*
parent
)
:
QObject
(
parent
),
d
(
new
MailNetworkUlrInterceptorPluginManagerPrivate
)
{
}
MailNetworkUlrInterceptorPluginManager
::~
MailNetworkUlrInterceptorPluginManager
()
{
delete
d
;
}
messageviewer/src/viewer/webengine/mailnetworkulrinterceptorpluginmanager.h
0 → 100644
View file @
493205cd
/*
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 MAILNETWORKULRINTERCEPTORPLUGINMANAGER_H
#define MAILNETWORKULRINTERCEPTORPLUGINMANAGER_H
#include <QObject>
namespace
MessageViewer
{
class
MailNetworkUlrInterceptorPluginManagerPrivate
;
class
MailNetworkUlrInterceptorPluginManager
:
public
QObject
{
Q_OBJECT
public:
static
MailNetworkUlrInterceptorPluginManager
*
self
();
explicit
MailNetworkUlrInterceptorPluginManager
(
QObject
*
parent
=
Q_NULLPTR
);
~
MailNetworkUlrInterceptorPluginManager
();
private:
MailNetworkUlrInterceptorPluginManagerPrivate
*
const
d
;
};
}
#endif // MAILNETWORKULRINTERCEPTORPLUGINMANAGER_H
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment