File: importexportmailutil.h

package info (click to toggle)
pim-data-exporter 4%3A22.12.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 7,780 kB
  • sloc: cpp: 14,067; xml: 197; makefile: 6; sh: 3
file content (25 lines) | stat: -rw-r--r-- 673 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
   SPDX-FileCopyrightText: 2019-2022 Laurent Montel <montel@kde.org>

   SPDX-License-Identifier: GPL-2.0-or-later
*/

#pragma once

#include "pimdataexportercore_private_export.h"
#include <KConfigGroup>
namespace ImportExportMailUtil
{
PIMDATAEXPORTER_TESTS_EXPORT void cleanupFolderSettings(KConfigGroup &oldGroup);

struct AttributeInfo {
    QByteArray displayAttribute;
    QByteArray expireAttribute;
    QByteArray favoriteAttribute;
    QByteArray folderAttribute;
    Q_REQUIRED_RESULT bool isValid() const
    {
        return !displayAttribute.isEmpty() || !expireAttribute.isEmpty() || !favoriteAttribute.isEmpty() || !folderAttribute.isEmpty();
    }
};
}