Commit 807e288c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Implement save filter

parent 33722a01
Pipeline #63058 canceled with stage
......@@ -5,6 +5,8 @@
*/
#include "filtersavedmanager.h"
#include "filter.h"
#include <KSharedConfig>
using namespace MessageList::Core;
FilterSavedManager::FilterSavedManager(QObject *parent)
: QObject(parent)
......@@ -14,3 +16,8 @@ FilterSavedManager::FilterSavedManager(QObject *parent)
FilterSavedManager::~FilterSavedManager()
{
}
void FilterSavedManager::saveFilter(MessageList::Core::Filter *filter, const QString &filtername)
{
filter->save(KSharedConfig::openConfig(), filtername);
}
......@@ -10,12 +10,15 @@ namespace MessageList
{
namespace Core
{
class Filter;
class FilterSavedManager : public QObject
{
Q_OBJECT
public:
explicit FilterSavedManager(QObject *parent = nullptr);
~FilterSavedManager() override;
void saveFilter(MessageList::Core::Filter *filter, const QString &filtername);
};
}
}
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