From c89dd5414e6d9849f81b0f1c9d3751e2e0c75916 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Thu, 17 Oct 2019 08:55:09 +0200 Subject: [PATCH] Add a manager --- src/CMakeLists.txt | 1 + src/undosend/undosendmanager.cpp | 31 ++++++++++++++++++++++++++++ src/undosend/undosendmanager.h | 35 ++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 src/undosend/undosendmanager.cpp create mode 100644 src/undosend/undosendmanager.h diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 63192a7e6..972ece2f2 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -178,6 +178,7 @@ set(kmailprivate_sieveimapinstanceinterface_LIB_SRCS set(kmailprivate_undosend_LIB_SRCS undosend/undosendcombobox.cpp undosend/undosendinfowidget.cpp + undosend/undosendmanager.cpp ) set(kmail_common_SRCS) diff --git a/src/undosend/undosendmanager.cpp b/src/undosend/undosendmanager.cpp new file mode 100644 index 000000000..6b4b3dfb8 --- /dev/null +++ b/src/undosend/undosendmanager.cpp @@ -0,0 +1,31 @@ +/* + Copyright (C) 2019 Montel Laurent + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + 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; see the file COPYING. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "undosendmanager.h" + +UndoSendManager::UndoSendManager(QObject *parent) + : QObject(parent) +{ + +} + +UndoSendManager::~UndoSendManager() +{ + +} diff --git a/src/undosend/undosendmanager.h b/src/undosend/undosendmanager.h new file mode 100644 index 000000000..ffd0a806c --- /dev/null +++ b/src/undosend/undosendmanager.h @@ -0,0 +1,35 @@ +/* + Copyright (C) 2019 Montel Laurent + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + 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; see the file COPYING. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + + +#ifndef UNDOSENDMANAGER_H +#define UNDOSENDMANAGER_H + +#include + +class UndoSendManager : public QObject +{ + Q_OBJECT +public: + explicit UndoSendManager(QObject *parent = nullptr); + ~UndoSendManager(); + +}; + +#endif // UNDOSENDMANAGER_H