Commit 8e07e4bb authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add an unique networkmanager in all sieve apps

parent 825f8213
......@@ -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
......
/*
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();
}
/*
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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment