summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-02 13:01:11 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-02 13:01:11 (GMT)
commit8e07e4bb83c560ca6c39e73c93075eb79111c0e1 (patch)
tree2283511db569b2219944f6aae28c6dc0b8e87b24
parent825f8213566efd6fbe34fdb377a66bf12693c9d0 (diff)
Add an unique networkmanager in all sieve apps
-rw-r--r--src/ksieveui/CMakeLists.txt1
-rw-r--r--src/ksieveui/sievenetworkmanager.cpp32
-rw-r--r--src/ksieveui/sievenetworkmanager.h31
3 files changed, 64 insertions, 0 deletions
diff --git a/src/ksieveui/CMakeLists.txt b/src/ksieveui/CMakeLists.txt
index 037a2fa..3de79d6 100644
--- a/src/ksieveui/CMakeLists.txt
+++ b/src/ksieveui/CMakeLists.txt
@@ -183,6 +183,7 @@ set(ksieveui_managescriptjob_LIB_SRCS
set(ksieveui_LIB_SRCS
managesievescriptsdialog.cpp
+ sievenetworkmanager.cpp
widgets/custommanagesievewidget.cpp
widgets/sievetreewidgetitem.cpp
widgets/managesievetreeview.cpp
diff --git a/src/ksieveui/sievenetworkmanager.cpp b/src/ksieveui/sievenetworkmanager.cpp
new file mode 100644
index 0000000..b1c3d92
--- /dev/null
+++ b/src/ksieveui/sievenetworkmanager.cpp
@@ -0,0 +1,32 @@
+/*
+ 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 "sievenetworkmanager.h"
+
+Q_GLOBAL_STATIC(SieveNetworkManager, s_pSieveNetworkManagerSelf)
+
+SieveNetworkManager::SieveNetworkManager(QObject *parent)
+ : QObject(parent)
+{
+
+}
+
+
+SieveNetworkManager *SieveNetworkManager::self()
+{
+ return s_pSieveNetworkManagerSelf();
+}
diff --git a/src/ksieveui/sievenetworkmanager.h b/src/ksieveui/sievenetworkmanager.h
new file mode 100644
index 0000000..664f70f
--- /dev/null
+++ b/src/ksieveui/sievenetworkmanager.h
@@ -0,0 +1,31 @@
+/*
+ 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 SIEVENETWORKMANAGER_H
+#define SIEVENETWORKMANAGER_H
+
+#include <QObject>
+
+class SieveNetworkManager : public QObject
+{
+ Q_OBJECT
+public:
+ SieveNetworkManager(QObject *parent = Q_NULLPTR);
+ static SieveNetworkManager *self();
+};
+
+#endif // SIEVENETWORKMANAGER_H