Commit 2c12ac73 authored by Laurent Montel's avatar Laurent Montel 😁

Save settings

parent 58bd11fa
Pipeline #35427 failed with stage
in 76 minutes and 37 seconds
......@@ -25,7 +25,7 @@ FolderConfigureSettingsGeneralWidget::~FolderConfigureSettingsGeneralWidget()
{
}
void FolderConfigureSettingsGeneralWidget::save(const Akonadi::Collection::List &cols)
void FolderConfigureSettingsGeneralWidget::save(Akonadi::Collection &col)
{
//TODO
mCollectionGeneralWidget->save(col);
}
......@@ -19,7 +19,7 @@ class LIBFOLDERCONFIGURESETTINGS_TESTS_EXPORT FolderConfigureSettingsGeneralWidg
public:
explicit FolderConfigureSettingsGeneralWidget(QWidget *parent = nullptr);
~FolderConfigureSettingsGeneralWidget();
void save(const Akonadi::Collection::List &cols);
void save(Akonadi::Collection &col);
private:
MailCommon::CollectionGeneralWidget *mCollectionGeneralWidget = nullptr;
};
......
......@@ -51,9 +51,11 @@ FolderConfigureSettingsPageWidget::~FolderConfigureSettingsPageWidget()
void FolderConfigureSettingsPageWidget::save(const Akonadi::Collection::List &cols)
{
//TODO
mFolderConfigureSettingsGeneralWidget->save(cols);
//mCollectionExpiryWidget->save();
mFolderConfigureSettingsViewWidget->save();
mCollectionTemplateWidget->save(cols);
for (Akonadi::Collection col : cols) {
//TODO
mFolderConfigureSettingsGeneralWidget->save(col);
//TODO mCollectionExpiryWidget->save();
mFolderConfigureSettingsViewWidget->save(col);
mCollectionTemplateWidget->save(col);
}
}
......@@ -23,6 +23,7 @@ FolderConfigureSettingsTemplateWidget::~FolderConfigureSettingsTemplateWidget()
{
}
void FolderConfigureSettingsTemplateWidget::save(const Akonadi::Collection::List &cols)
void FolderConfigureSettingsTemplateWidget::save(Akonadi::Collection &col)
{
mCollectionTemplateWidget->save(col);
}
......@@ -18,7 +18,7 @@ class FolderConfigureSettingsTemplateWidget : public QWidget
public:
explicit FolderConfigureSettingsTemplateWidget(QWidget *parent = nullptr);
~FolderConfigureSettingsTemplateWidget();
void save(const Akonadi::Collection::List &cols);
void save(Akonadi::Collection &col);
private:
MailCommon::CollectionTemplatesWidget *mCollectionTemplateWidget = nullptr;
};
......
......@@ -22,6 +22,7 @@ FolderConfigureSettingsViewWidget::~FolderConfigureSettingsViewWidget()
{
}
void FolderConfigureSettingsViewWidget::save()
void FolderConfigureSettingsViewWidget::save(Akonadi::Collection &col)
{
mCollectionViewWidget->save(col);
}
......@@ -8,6 +8,7 @@
#define FOLDERCONFIGURESETTINGSVIEWWIDGET_H
#include <QWidget>
#include <AkonadiCore/Collection>
namespace MailCommon {
class CollectionViewWidget;
}
......@@ -17,7 +18,7 @@ class FolderConfigureSettingsViewWidget : public QWidget
public:
explicit FolderConfigureSettingsViewWidget(QWidget *parent = nullptr);
~FolderConfigureSettingsViewWidget();
void save();
void save(Akonadi::Collection &col);
private:
MailCommon::CollectionViewWidget *mCollectionViewWidget = nullptr;
};
......
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