Commit f675d22a authored by Laurent Montel's avatar Laurent Montel 😁

Start to add support for select imap folder

parent 53039485
......@@ -41,6 +41,7 @@ set(ksieveui_vacation_LIB_SRCS
vacation/vacationcheckjob.cpp
vacation/multiimapvacationmanager.cpp
vacation/vacationmanager.cpp
vacation/vacationmailactionwidget.cpp
vacation/legacy/vacationutils.cpp
vacation/legacy/vacationscriptextractor.cpp
)
......
......@@ -32,3 +32,4 @@ endmacro()
add_vacation_test(vacationutils)
add_vacation_test(vacationeditwidget)
add_vacation_test(vacationdialog)
add_vacation_test(vacationmailactionwidget)
/*
Copyright (C) 2017 Laurent Montel <montel@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "vacationmailactionwidgettest.h"
#include <QTest>
QTEST_MAIN(VacationMailActionWidgetTest)
VacationMailActionWidgetTest::VacationMailActionWidgetTest(QObject *parent)
: QObject(parent)
{
}
/*
Copyright (C) 2017 Laurent Montel <montel@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef VACATIONMAILACTIONWIDGETTEST_H
#define VACATIONMAILACTIONWIDGETTEST_H
#include <QObject>
class VacationMailActionWidgetTest : public QObject
{
Q_OBJECT
public:
explicit VacationMailActionWidgetTest(QObject *parent = nullptr);
~VacationMailActionWidgetTest() = default;
};
#endif // VACATIONMAILACTIONWIDGETTEST_H
......@@ -175,6 +175,7 @@ VacationEditWidget::VacationEditWidget(QWidget *parent)
mMailAction->setObjectName(QStringLiteral("mMailAction"));
connect(mMailAction, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &VacationEditWidget::mailActionChanged);
//Add imap select folder plugin here.
mMailActionRecipient = new QLineEdit(this);
mMailActionRecipient->setObjectName(QStringLiteral("mMailActionRecipient"));
mMailActionRecipient->setClearButtonEnabled(true);
......
/*
Copyright (C) 2017 Laurent Montel <montel@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "vacationmailactionwidget.h"
using namespace KSieveUi;
VacationMailActionWidget::VacationMailActionWidget(QWidget *parent)
: QWidget(parent)
{
}
VacationMailActionWidget::~VacationMailActionWidget()
{
}
/*
Copyright (C) 2017 Laurent Montel <montel@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef VACATIONMAILACTIONWIDGET_H
#define VACATIONMAILACTIONWIDGET_H
#include <QWidget>
namespace KSieveUi {
class VacationMailActionWidget : public QWidget
{
Q_OBJECT
public:
explicit VacationMailActionWidget(QWidget *parent = nullptr);
~VacationMailActionWidget();
};
}
#endif // VACATIONMAILACTIONWIDGET_H
Markdown is supported
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