Commit 375cafab authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Start to implement custom file name

parent 75449e9a
......@@ -150,6 +150,8 @@ set(libmailcommon_snippets_SRCS
snippets/snippetattachmentwidget.cpp
snippets/snippetselectattachmentwidget.cpp
snippets/snippetselectattachmentdialog.cpp
snippets/snippetcustomfileattachmentnamewidget.cpp
snippets/snippetcustomfileattachmentnamedialog.cpp
)
set(libmailcommon_tag_SRCS
......
......@@ -22,3 +22,13 @@ ecm_add_test(snippetselectattachmentdialogtest.cpp
NAME_PREFIX "mailcommon-snippets-"
LINK_LIBRARIES Qt5::Test Qt5::Gui KF5::MailCommon
)
ecm_add_test(snippetcustomfileattachmentnamedialogtest.cpp
NAME_PREFIX "mailcommon-snippets-"
LINK_LIBRARIES Qt5::Test Qt5::Gui KF5::MailCommon
)
ecm_add_test(snippetcustomfileattachmentnamewidgettest.cpp
NAME_PREFIX "mailcommon-snippets-"
LINK_LIBRARIES Qt5::Test Qt5::Gui KF5::MailCommon
)
/*
Copyright (C) 2019 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 "snippetcustomfileattachmentnamedialogtest.h"
#include <QTest>
QTEST_MAIN(SnippetCustomFileAttachmentNameDialogTest)
SnippetCustomFileAttachmentNameDialogTest::SnippetCustomFileAttachmentNameDialogTest(QObject *parent)
: QObject(parent)
{
}
/*
Copyright (C) 2019 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 SNIPPETCUSTOMFILEATTACHMENTNAMEDIALOGTEST_H
#define SNIPPETCUSTOMFILEATTACHMENTNAMEDIALOGTEST_H
#include <QObject>
class SnippetCustomFileAttachmentNameDialogTest : public QObject
{
Q_OBJECT
public:
explicit SnippetCustomFileAttachmentNameDialogTest(QObject *parent = nullptr);
~SnippetCustomFileAttachmentNameDialogTest() = default;
};
#endif // SNIPPETCUSTOMFILEATTACHMENTNAMEDIALOGTEST_H
/*
Copyright (C) 2019 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 "snippetcustomfileattachmentnamewidgettest.h"
#include <QTest>
QTEST_MAIN(SnippetCustomFileAttachmentNameWidgetTest)
SnippetCustomFileAttachmentNameWidgetTest::SnippetCustomFileAttachmentNameWidgetTest(QObject *parent)
: QObject(parent)
{
}
/*
Copyright (C) 2019 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 SNIPPETCUSTOMFILEATTACHMENTNAMEWIDGETTEST_H
#define SNIPPETCUSTOMFILEATTACHMENTNAMEWIDGETTEST_H
#include <QObject>
class SnippetCustomFileAttachmentNameWidgetTest : public QObject
{
Q_OBJECT
public:
explicit SnippetCustomFileAttachmentNameWidgetTest(QObject *parent = nullptr);
~SnippetCustomFileAttachmentNameWidgetTest() = default;
};
#endif // SNIPPETCUSTOMFILEATTACHMENTNAMEWIDGETTEST_H
/*
Copyright (C) 2019 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 "snippetcustomfileattachmentnamedialog.h"
using namespace MailCommon;
SnippetCustomFileAttachmentNameDialog::SnippetCustomFileAttachmentNameDialog(QWidget *parent)
: QDialog(parent)
{
}
SnippetCustomFileAttachmentNameDialog::~SnippetCustomFileAttachmentNameDialog()
{
}
/*
Copyright (C) 2019 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 SNIPPETCUSTOMFILEATTACHMENTNAMEDIALOG_H
#define SNIPPETCUSTOMFILEATTACHMENTNAMEDIALOG_H
#include <QObject>
#include <QDialog>
#include "mailcommon_private_export.h"
class QLineEdit;
namespace MailCommon {
class MAILCOMMON_TESTS_EXPORT SnippetCustomFileAttachmentNameDialog : public QDialog
{
Q_OBJECT
public:
explicit SnippetCustomFileAttachmentNameDialog(QWidget *parent = nullptr);
~SnippetCustomFileAttachmentNameDialog();
};
}
#endif // SNIPPETCUSTOMFILEATTACHMENTNAMEDIALOG_H
/*
Copyright (C) 2019 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 "snippetcustomfileattachmentnamewidget.h"
using namespace MailCommon;
SnippetCustomFileAttachmentNameWidget::SnippetCustomFileAttachmentNameWidget(QWidget *parent)
: QWidget(parent)
{
}
SnippetCustomFileAttachmentNameWidget::~SnippetCustomFileAttachmentNameWidget()
{
}
/*
Copyright (C) 2019 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 SNIPPETCUSTOMFILEATTACHMENTNAMEWIDGET_H
#define SNIPPETCUSTOMFILEATTACHMENTNAMEWIDGET_H
#include <QWidget>
#include "mailcommon_private_export.h"
class QLineEdit;
namespace MailCommon {
class MAILCOMMON_TESTS_EXPORT SnippetCustomFileAttachmentNameWidget : public QWidget
{
Q_OBJECT
public:
explicit SnippetCustomFileAttachmentNameWidget(QWidget *parent = nullptr);
~SnippetCustomFileAttachmentNameWidget();
};
}
#endif // SNIPPETCUSTOMFILEATTACHMENTNAMEWIDGET_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