File indexing completed on 2025-01-05 04:49:19
0001 /* 0002 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QWidget> 0010 0011 class QCheckBox; 0012 class VCardExportSelectionWidget : public QWidget 0013 { 0014 Q_OBJECT 0015 public: 0016 explicit VCardExportSelectionWidget(QWidget *parent = nullptr); 0017 ~VCardExportSelectionWidget() override; 0018 enum ExportField { 0019 None = 0, 0020 Private = 1, 0021 Business = 2, 0022 Other = 4, 0023 Encryption = 8, 0024 Picture = 16, 0025 DiplayName = 32, 0026 }; 0027 Q_ENUMS(ExportField) 0028 Q_DECLARE_FLAGS(ExportFields, ExportField) 0029 0030 ExportFields exportType() const; 0031 0032 private: 0033 void readSettings(); 0034 void writeSettings(); 0035 QCheckBox *mPrivateBox = nullptr; 0036 QCheckBox *mBusinessBox = nullptr; 0037 QCheckBox *mOtherBox = nullptr; 0038 QCheckBox *mEncryptionKeys = nullptr; 0039 QCheckBox *mPictureBox = nullptr; 0040 QCheckBox *mDisplayNameBox = nullptr; 0041 };