Commit 55511484 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Start to extract widget

parent befa0604
Pipeline #35264 passed with stage
in 61 minutes and 32 seconds
cmake_minimum_required(VERSION 3.5)
set(PIM_VERSION "5.15.45")
set(PIM_VERSION "5.15.46")
project(mailcommon VERSION ${PIM_VERSION})
......
......@@ -101,6 +101,7 @@ set(libmailcommon_collection_SRCS
collectionpage/collectionexpiryjob.cpp
collectionpage/collectiontemplateswidget.cpp
collectionpage/collectionviewwidget.cpp
collectionpage/collectiongeneralwidget.cpp
)
set(libmailcommon_folder_SRCS
......@@ -402,6 +403,7 @@ ecm_generate_headers(MailCommon_Camelcasecollectionpage_HEADERS
CollectionExpiryWidget
CollectionTemplatesWidget
CollectionViewWidget
CollectionGeneralWidget
REQUIRED_HEADERS MailCommon_collectionpage_HEADERS
PREFIX MailCommon
RELATIVE collectionpage
......
/*
SPDX-FileCopyrightText: 2020 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "collectiongeneralwidget.h"
using namespace MailCommon;
CollectionGeneralWidget::CollectionGeneralWidget(QWidget *parent)
: QWidget(parent)
{
}
CollectionGeneralWidget::~CollectionGeneralWidget()
{
}
void CollectionGeneralWidget::save(Akonadi::Collection &col)
{
}
void CollectionGeneralWidget::load(const Akonadi::Collection &col)
{
}
/*
SPDX-FileCopyrightText: 2020 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef COLLECTIONGENERALWIDGET_H
#define COLLECTIONGENERALWIDGET_H
#include <QWidget>
#include "mailcommon_export.h"
#include <AkonadiCore/Collection>
class QCheckBox;
namespace MailCommon {
class MAILCOMMON_EXPORT CollectionGeneralWidget : public QWidget
{
Q_OBJECT
public:
explicit CollectionGeneralWidget(QWidget *parent = nullptr);
~CollectionGeneralWidget();
void save(Akonadi::Collection &);
void load(const Akonadi::Collection &col);
private:
QCheckBox *mNotifyOnNewMailCheckBox = nullptr;
QCheckBox *mKeepRepliesInSameFolderCheckBox = nullptr;
QCheckBox *mHideInSelectionDialogCheckBox = nullptr;
QCheckBox *mUseDefaultIdentityCheckBox = nullptr;
};
}
#endif // COLLECTIONGENERALWIDGET_H
......@@ -55,7 +55,7 @@ CollectionTemplatesWidget::~CollectionTemplatesWidget()
}
void CollectionTemplatesWidget::save(const Akonadi::Collection &)
void CollectionTemplatesWidget::save(Akonadi::Collection &)
{
if (mChanged && !mCollectionId.isEmpty()) {
TemplateParser::Templates t(mCollectionId);
......
......@@ -26,7 +26,7 @@ class MAILCOMMON_EXPORT CollectionTemplatesWidget : public QWidget
public:
explicit CollectionTemplatesWidget(QWidget *parent = nullptr);
~CollectionTemplatesWidget();
void save(const Akonadi::Collection &);
void save(Akonadi::Collection &);
void load(const Akonadi::Collection &col);
private:
void slotCopyGlobal();
......
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