summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2015-09-07 21:58:01 +0200
committerMontel Laurent <[email protected]>2015-09-07 21:58:01 +0200
commit7d680b459b9e1725854b321bcc8e667976124012 (patch)
tree65a39a1586ac7254a9ce3c7fc85d0dc615616d9a
parent6057bf02b34f5a9dd285418c91db212041d89f40 (diff)
Add interface class
-rw-r--r--messageviewer/CMakeLists.txt1
-rw-r--r--messageviewer/header/briefheaderstyleplugin/CMakeLists.txt3
-rw-r--r--messageviewer/header/briefheaderstyleplugin/briefheaderstyleinterface.cpp31
-rw-r--r--messageviewer/header/briefheaderstyleplugin/briefheaderstyleinterface.h37
-rw-r--r--messageviewer/header/customheaderstyleplugin/CMakeLists.txt1
-rw-r--r--messageviewer/header/customheaderstyleplugin/customheaderstyleinterface.cpp31
-rw-r--r--messageviewer/header/customheaderstyleplugin/customheaderstyleinterface.h37
-rw-r--r--messageviewer/header/enterpriseheaderstyleplugin/CMakeLists.txt3
-rw-r--r--messageviewer/header/enterpriseheaderstyleplugin/enterpriseheaderstyleinterface.cpp31
-rw-r--r--messageviewer/header/enterpriseheaderstyleplugin/enterpriseheaderstyleinterface.h37
-rw-r--r--messageviewer/header/fancyheaderstyleplugin/CMakeLists.txt3
-rw-r--r--messageviewer/header/fancyheaderstyleplugin/fancyheaderstyleinterface.cpp31
-rw-r--r--messageviewer/header/fancyheaderstyleplugin/fancyheaderstyleinterface.h37
-rw-r--r--messageviewer/header/grantleeheaderstyleplugin/CMakeLists.txt1
-rw-r--r--messageviewer/header/grantleeheaderstyleplugin/grantleeheaderstyleinterface.cpp31
-rw-r--r--messageviewer/header/grantleeheaderstyleplugin/grantleeheaderstyleinterface.h37
-rw-r--r--messageviewer/header/headerstyleinterface.cpp34
-rw-r--r--messageviewer/header/headerstyleinterface.h41
18 files changed, 424 insertions, 3 deletions
diff --git a/messageviewer/CMakeLists.txt b/messageviewer/CMakeLists.txt
index 0ae5a24..05b2c59 100644
--- a/messageviewer/CMakeLists.txt
+++ b/messageviewer/CMakeLists.txt
@@ -146,6 +146,7 @@ set(libmessageviewer_header_SRCS
header/kxface.cpp
header/headerstyleplugin.cpp
header/headerstylepluginmanager.cpp
+ header/headerstyleinterface.cpp
)
set(libmessageviewer_scamdetection_SRCS
diff --git a/messageviewer/header/briefheaderstyleplugin/CMakeLists.txt b/messageviewer/header/briefheaderstyleplugin/CMakeLists.txt
index 1d74ded..af7e963 100644
--- a/messageviewer/header/briefheaderstyleplugin/CMakeLists.txt
+++ b/messageviewer/header/briefheaderstyleplugin/CMakeLists.txt
@@ -1,5 +1,6 @@
set(messageviewer_briefheaderstyleplugin_SRCS
- briefheaderstyleplugin.cpp
+ briefheaderstyleplugin.cpp
+ briefheaderstyleinterface.cpp
)
add_library(messageviewer_briefheaderstyleplugin MODULE ${messageviewer_briefheaderstyleplugin_SRCS})
diff --git a/messageviewer/header/briefheaderstyleplugin/briefheaderstyleinterface.cpp b/messageviewer/header/briefheaderstyleplugin/briefheaderstyleinterface.cpp
new file mode 100644
index 0000000..63caf56
--- /dev/null
+++ b/messageviewer/header/briefheaderstyleplugin/briefheaderstyleinterface.cpp
@@ -0,0 +1,31 @@
+/*
+ Copyright (c) 2015 Montel Laurent <[email protected]>
+
+ 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 "briefheaderstyleinterface.h"
+
+using namespace MessageViewer;
+BriefHeaderStyleInterface::BriefHeaderStyleInterface(MessageViewer::HeaderStyle *headerStyle, MessageViewer::HeaderStrategy *headerStrategy,QObject *parent)
+ : MessageViewer::HeaderStyleInterface(headerStyle, headerStrategy, parent)
+{
+
+}
+
+BriefHeaderStyleInterface::~BriefHeaderStyleInterface()
+{
+
+}
+
diff --git a/messageviewer/header/briefheaderstyleplugin/briefheaderstyleinterface.h b/messageviewer/header/briefheaderstyleplugin/briefheaderstyleinterface.h
new file mode 100644
index 0000000..45c647e
--- /dev/null
+++ b/messageviewer/header/briefheaderstyleplugin/briefheaderstyleinterface.h
@@ -0,0 +1,37 @@
+/*
+ Copyright (c) 2015 Montel Laurent <[email protected]>
+
+ 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 BRIEFHEADERSTYLEINTERFACE_H
+#define BRIEFHEADERSTYLEINTERFACE_H
+
+#include <header/headerstyleinterface.h>
+
+
+namespace MessageViewer {
+
+class BriefHeaderStyleInterface : public MessageViewer::HeaderStyleInterface
+{
+ Q_OBJECT
+public:
+ explicit BriefHeaderStyleInterface(MessageViewer::HeaderStyle *headerStyle, MessageViewer::HeaderStrategy *headerStrategy, QObject *parent = Q_NULLPTR);
+ ~BriefHeaderStyleInterface();
+
+};
+
+}
+
+#endif // BRIEFHEADERSTYLEINTERFACE_H
diff --git a/messageviewer/header/customheaderstyleplugin/CMakeLists.txt b/messageviewer/header/customheaderstyleplugin/CMakeLists.txt
index 5417ec5..46304bf 100644
--- a/messageviewer/header/customheaderstyleplugin/CMakeLists.txt
+++ b/messageviewer/header/customheaderstyleplugin/CMakeLists.txt
@@ -1,5 +1,6 @@
set(messageviewer_customheaderstyleplugin_SRCS
customheaderstyleplugin.cpp
+ customheaderstyleinterface.cpp
)
add_library(messageviewer_customheaderstyleplugin MODULE ${messageviewer_customheaderstyleplugin_SRCS})
diff --git a/messageviewer/header/customheaderstyleplugin/customheaderstyleinterface.cpp b/messageviewer/header/customheaderstyleplugin/customheaderstyleinterface.cpp
new file mode 100644
index 0000000..59f30ba
--- /dev/null
+++ b/messageviewer/header/customheaderstyleplugin/customheaderstyleinterface.cpp
@@ -0,0 +1,31 @@
+/*
+ Copyright (c) 2015 Montel Laurent <[email protected]>
+
+ 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 "customheaderstyleinterface.h"
+
+using namespace MessageViewer;
+CustomHeaderStyleInterface::CustomHeaderStyleInterface(MessageViewer::HeaderStyle *headerStyle, MessageViewer::HeaderStrategy *headerStrategy,QObject *parent)
+ : MessageViewer::HeaderStyleInterface(headerStyle, headerStrategy, parent)
+{
+
+}
+
+CustomHeaderStyleInterface::~CustomHeaderStyleInterface()
+{
+
+}
+
diff --git a/messageviewer/header/customheaderstyleplugin/customheaderstyleinterface.h b/messageviewer/header/customheaderstyleplugin/customheaderstyleinterface.h
new file mode 100644
index 0000000..12f1625
--- /dev/null
+++ b/messageviewer/header/customheaderstyleplugin/customheaderstyleinterface.h
@@ -0,0 +1,37 @@
+/*
+ Copyright (c) 2015 Montel Laurent <[email protected]>
+
+ 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 CUSTOMHEADERSTYLEINTERFACE_H
+#define CUSTOMHEADERSTYLEINTERFACE_H
+
+#include <header/headerstyleinterface.h>
+
+
+namespace MessageViewer {
+
+class CustomHeaderStyleInterface : public MessageViewer::HeaderStyleInterface
+{
+ Q_OBJECT
+public:
+ explicit CustomHeaderStyleInterface(MessageViewer::HeaderStyle *headerStyle, MessageViewer::HeaderStrategy *headerStrategy, QObject *parent = Q_NULLPTR);
+ ~CustomHeaderStyleInterface();
+
+};
+
+}
+
+#endif // CUSTOMHEADERSTYLEINTERFACE_H
diff --git a/messageviewer/header/enterpriseheaderstyleplugin/CMakeLists.txt b/messageviewer/header/enterpriseheaderstyleplugin/CMakeLists.txt
index 14055c3..7fefc0e 100644
--- a/messageviewer/header/enterpriseheaderstyleplugin/CMakeLists.txt
+++ b/messageviewer/header/enterpriseheaderstyleplugin/CMakeLists.txt
@@ -1,5 +1,6 @@
set(messageviewer_enterpriseheaderstyleplugin_SRCS
- enterpriseheaderstyleplugin.cpp
+ enterpriseheaderstyleplugin.cpp
+ enterpriseheaderstyleinterface.cpp
)
add_library(messageviewer_enterpriseheaderstyleplugin MODULE ${messageviewer_enterpriseheaderstyleplugin_SRCS})
diff --git a/messageviewer/header/enterpriseheaderstyleplugin/enterpriseheaderstyleinterface.cpp b/messageviewer/header/enterpriseheaderstyleplugin/enterpriseheaderstyleinterface.cpp
new file mode 100644
index 0000000..55ff70e
--- /dev/null
+++ b/messageviewer/header/enterpriseheaderstyleplugin/enterpriseheaderstyleinterface.cpp
@@ -0,0 +1,31 @@
+/*
+ Copyright (c) 2015 Montel Laurent <[email protected]>
+
+ 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 "enterpriseheaderstyleinterface.h"
+
+using namespace MessageViewer;
+EnterpriseHeaderStyleInterface::EnterpriseHeaderStyleInterface(MessageViewer::HeaderStyle *headerStyle, MessageViewer::HeaderStrategy *headerStrategy,QObject *parent)
+ : MessageViewer::HeaderStyleInterface(headerStyle, headerStrategy, parent)
+{
+
+}
+
+EnterpriseHeaderStyleInterface::~EnterpriseHeaderStyleInterface()
+{
+
+}
+
diff --git a/messageviewer/header/enterpriseheaderstyleplugin/enterpriseheaderstyleinterface.h b/messageviewer/header/enterpriseheaderstyleplugin/enterpriseheaderstyleinterface.h
new file mode 100644
index 0000000..d1f912b
--- /dev/null
+++ b/messageviewer/header/enterpriseheaderstyleplugin/enterpriseheaderstyleinterface.h
@@ -0,0 +1,37 @@
+/*
+ Copyright (c) 2015 Montel Laurent <[email protected]>
+
+ 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 ENTERPRISEHEADERSTYLEINTERFACE_H
+#define ENTERPRISEHEADERSTYLEINTERFACE_H
+
+#include <header/headerstyleinterface.h>
+
+
+namespace MessageViewer {
+
+class EnterpriseHeaderStyleInterface : public MessageViewer::HeaderStyleInterface
+{
+ Q_OBJECT
+public:
+ explicit EnterpriseHeaderStyleInterface(MessageViewer::HeaderStyle *headerStyle, MessageViewer::HeaderStrategy *headerStrategy, QObject *parent = Q_NULLPTR);
+ ~EnterpriseHeaderStyleInterface();
+
+};
+
+}
+
+#endif // ENTERPRISEHEADERSTYLEINTERFACE_H
diff --git a/messageviewer/header/fancyheaderstyleplugin/CMakeLists.txt b/messageviewer/header/fancyheaderstyleplugin/CMakeLists.txt
index 4011bdd..3f76377 100644
--- a/messageviewer/header/fancyheaderstyleplugin/CMakeLists.txt
+++ b/messageviewer/header/fancyheaderstyleplugin/CMakeLists.txt
@@ -1,5 +1,6 @@
set(messageviewer_fancyheaderstyleplugin_SRCS
- fancyheaderstyleplugin.cpp
+ fancyheaderstyleplugin.cpp
+ fancyheaderstyleinterface.cpp
)
add_library(messageviewer_fancyheaderstyleplugin MODULE ${messageviewer_fancyheaderstyleplugin_SRCS})
diff --git a/messageviewer/header/fancyheaderstyleplugin/fancyheaderstyleinterface.cpp b/messageviewer/header/fancyheaderstyleplugin/fancyheaderstyleinterface.cpp
new file mode 100644
index 0000000..0ff93c7
--- /dev/null
+++ b/messageviewer/header/fancyheaderstyleplugin/fancyheaderstyleinterface.cpp
@@ -0,0 +1,31 @@
+/*
+ Copyright (c) 2015 Montel Laurent <[email protected]>
+
+ 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 "fancyheaderstyleinterface.h"
+
+using namespace MessageViewer;
+FancyHeaderStyleInterface::FancyHeaderStyleInterface(MessageViewer::HeaderStyle *headerStyle, MessageViewer::HeaderStrategy *headerStrategy,QObject *parent)
+ : MessageViewer::HeaderStyleInterface(headerStyle, headerStrategy, parent)
+{
+
+}
+
+FancyHeaderStyleInterface::~FancyHeaderStyleInterface()
+{
+
+}
+
diff --git a/messageviewer/header/fancyheaderstyleplugin/fancyheaderstyleinterface.h b/messageviewer/header/fancyheaderstyleplugin/fancyheaderstyleinterface.h
new file mode 100644
index 0000000..55b1c46
--- /dev/null
+++ b/messageviewer/header/fancyheaderstyleplugin/fancyheaderstyleinterface.h
@@ -0,0 +1,37 @@
+/*
+ Copyright (c) 2015 Montel Laurent <[email protected]>
+
+ 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 FANCYHEADERSTYLEINTERFACE_H
+#define FANCYHEADERSTYLEINTERFACE_H
+
+#include <header/headerstyleinterface.h>
+
+
+namespace MessageViewer {
+
+class FancyHeaderStyleInterface : public MessageViewer::HeaderStyleInterface
+{
+ Q_OBJECT
+public:
+ explicit FancyHeaderStyleInterface(MessageViewer::HeaderStyle *headerStyle, MessageViewer::HeaderStrategy *headerStrategy, QObject *parent = Q_NULLPTR);
+ ~FancyHeaderStyleInterface();
+
+};
+
+}
+
+#endif // FANCYHEADERSTYLEINTERFACE_H
diff --git a/messageviewer/header/grantleeheaderstyleplugin/CMakeLists.txt b/messageviewer/header/grantleeheaderstyleplugin/CMakeLists.txt
index 9b590fd..7d9ff77 100644
--- a/messageviewer/header/grantleeheaderstyleplugin/CMakeLists.txt
+++ b/messageviewer/header/grantleeheaderstyleplugin/CMakeLists.txt
@@ -1,5 +1,6 @@
set(messageviewer_grantleeheaderstyleplugin_SRCS
grantleeheaderstyleplugin.cpp
+ grantleeheaderstyleinterface.cpp
)
add_library(messageviewer_grantleeheaderstyleplugin MODULE ${messageviewer_grantleeheaderstyleplugin_SRCS})
diff --git a/messageviewer/header/grantleeheaderstyleplugin/grantleeheaderstyleinterface.cpp b/messageviewer/header/grantleeheaderstyleplugin/grantleeheaderstyleinterface.cpp
new file mode 100644
index 0000000..576bd02
--- /dev/null
+++ b/messageviewer/header/grantleeheaderstyleplugin/grantleeheaderstyleinterface.cpp
@@ -0,0 +1,31 @@
+/*
+ Copyright (c) 2015 Montel Laurent <[email protected]>
+
+ 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 "grantleeheaderstyleinterface.h"
+
+using namespace MessageViewer;
+GrantleeHeaderStyleInterface::GrantleeHeaderStyleInterface(MessageViewer::HeaderStyle *headerStyle, MessageViewer::HeaderStrategy *headerStrategy,QObject *parent)
+ : MessageViewer::HeaderStyleInterface(headerStyle, headerStrategy, parent)
+{
+
+}
+
+GrantleeHeaderStyleInterface::~GrantleeHeaderStyleInterface()
+{
+
+}
+
diff --git a/messageviewer/header/grantleeheaderstyleplugin/grantleeheaderstyleinterface.h b/messageviewer/header/grantleeheaderstyleplugin/grantleeheaderstyleinterface.h
new file mode 100644
index 0000000..c7a004e
--- /dev/null
+++ b/messageviewer/header/grantleeheaderstyleplugin/grantleeheaderstyleinterface.h
@@ -0,0 +1,37 @@
+/*
+ Copyright (c) 2015 Montel Laurent <[email protected]>
+
+ 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 GRANTLEEHEADERSTYLEINTERFACE_H
+#define GRANTLEEHEADERSTYLEINTERFACE_H
+
+#include <header/headerstyleinterface.h>
+
+
+namespace MessageViewer {
+
+class GrantleeHeaderStyleInterface : public MessageViewer::HeaderStyleInterface
+{
+ Q_OBJECT
+public:
+ explicit GrantleeHeaderStyleInterface(MessageViewer::HeaderStyle *headerStyle, MessageViewer::HeaderStrategy *headerStrategy, QObject *parent = Q_NULLPTR);
+ ~GrantleeHeaderStyleInterface();
+
+};
+
+}
+
+#endif // GRANTLEEHEADERSTYLEINTERFACE_H
diff --git a/messageviewer/header/headerstyleinterface.cpp b/messageviewer/header/headerstyleinterface.cpp
new file mode 100644
index 0000000..f347105
--- /dev/null
+++ b/messageviewer/header/headerstyleinterface.cpp
@@ -0,0 +1,34 @@
+/*
+ Copyright (c) 2015 Montel Laurent <[email protected]>
+
+ 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 "headerstyle.h"
+#include "headerstyleinterface.h"
+using namespace MessageViewer;
+
+HeaderStyleInterface::HeaderStyleInterface(MessageViewer::HeaderStyle *headerStyle, MessageViewer::HeaderStrategy *headerStrategy, QObject *parent)
+ : QObject(parent),
+ mHeaderStyle(headerStyle),
+ mHeaderStrategy(headerStrategy)
+{
+
+}
+
+HeaderStyleInterface::~HeaderStyleInterface()
+{
+
+}
+
diff --git a/messageviewer/header/headerstyleinterface.h b/messageviewer/header/headerstyleinterface.h
new file mode 100644
index 0000000..b466038
--- /dev/null
+++ b/messageviewer/header/headerstyleinterface.h
@@ -0,0 +1,41 @@
+/*
+ Copyright (c) 2015 Montel Laurent <[email protected]>
+
+ 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 HEADERSTYLEINTERFACE_H
+#define HEADERSTYLEINTERFACE_H
+
+#include <QObject>
+#include "messageviewer_export.h"
+class KToggleAction;
+namespace MessageViewer
+{
+class HeaderStyle;
+class HeaderStrategy;
+class MESSAGEVIEWER_EXPORT HeaderStyleInterface : public QObject
+{
+ Q_OBJECT
+public:
+ explicit HeaderStyleInterface(MessageViewer::HeaderStyle *headerStyle, MessageViewer::HeaderStrategy *headerStrategy, QObject *parent = Q_NULLPTR);
+ virtual ~HeaderStyleInterface();
+ virtual KToggleAction *action() const = 0;
+
+protected:
+ HeaderStyle *mHeaderStyle;
+ HeaderStrategy *mHeaderStrategy;
+};
+}
+#endif // HEADERSTYLEINTERFACE_H