diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index 7f45acfeba5ed..3101819a7011a 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -23,6 +23,9 @@ endif() configure_file(${CMAKE_SOURCE_DIR}/theme.qrc.in ${CMAKE_SOURCE_DIR}/theme.qrc) set(theme_dir ${CMAKE_SOURCE_DIR}/theme) +#NMC customization: needed to find the ui file in a different location than the header file +set(CMAKE_AUTOUIC_SEARCH_PATHS "${CMAKE_SOURCE_DIR}/src/gui") + set(client_UI_SRCS accountsettings.ui conflictdialog.ui @@ -259,6 +262,10 @@ set(client_SRCS integration/fileactionsmodel.cpp ) +file(GLOB NMC_FILES "nmcgui/*") +set(NMC_SRCS ${NMC_FILES}) +list(APPEND client_SRCS ${NMC_SRCS}) + if (NOT DISABLE_ACCOUNT_MIGRATION) list(APPEND client_SRCS legacyaccountselectiondialog.h diff --git a/src/gui/generalsettings.h b/src/gui/generalsettings.h index b62a7b3c07476..96761f25c0559 100644 --- a/src/gui/generalsettings.h +++ b/src/gui/generalsettings.h @@ -34,6 +34,12 @@ class GeneralSettings : public QWidget ~GeneralSettings() override; [[nodiscard]] QSize sizeHint() const override; +protected: + Ui::GeneralSettings *getUi() const + { + return _ui; + } + public slots: void slotStyleChanged(); #if defined(BUILD_UPDATER) diff --git a/src/gui/ignorelisteditor.ui b/src/gui/ignorelisteditor.ui index 3ebdf524938c0..7c4a50f04c02a 100644 --- a/src/gui/ignorelisteditor.ui +++ b/src/gui/ignorelisteditor.ui @@ -17,7 +17,7 @@ - Global Ignore Settings + @@ -33,7 +33,7 @@ - Files Ignored by Patterns + diff --git a/src/gui/nmcgui/nmcgeneralsettings.cpp b/src/gui/nmcgui/nmcgeneralsettings.cpp new file mode 100644 index 0000000000000..3a96e0b3c28d0 --- /dev/null +++ b/src/gui/nmcgui/nmcgeneralsettings.cpp @@ -0,0 +1,265 @@ +/* + * Copyright (C) by Mauro Mura + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + */ + +#include "nmcgeneralsettings.h" +#include "generalsettings.h" +#include "nmclibsync/nmcconfigfile.h" +#include "ui_generalsettings.h" +#include "theme.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#ifdef Q_OS_WIN +#define BACKGROUND_PALETTE "alternate-base" +#else +#define BACKGROUND_PALETTE "light" +#endif + +namespace OCC { + +NMCGeneralSettings::NMCGeneralSettings(QWidget *parent) + : GeneralSettings(parent) +{ + setDefaultSettings(); + setNMCLayout(); +} + +void NMCGeneralSettings::setDefaultSettings() +{ + getUi()->monoIconsCheckBox->setVisible(false); + getUi()->chatNotificationsCheckBox->setVisible(false); + getUi()->callNotificationsCheckBox->setVisible(false); + getUi()->quotaWarningNotificationsCheckBox->setVisible(false); + + getUi()->advancedGroupBox->setVisible(false); + getUi()->aboutAndUpdatesGroupBox->setVisible(false); +} + +void NMCGeneralSettings::setNMCLayout() +{ + // General settings + auto *generalSettingsLabel = new QLabel(QCoreApplication::translate("", "GENERAL_SETTINGS"), this); + generalSettingsLabel->setStyleSheet(QStringLiteral("font-size: 12px; font-weight: bold;")); + + getUi()->generalGroupBoxTitle->hide(); + getUi()->generalGroupBox->layout()->removeWidget(getUi()->generalGroupBoxTitle); + getUi()->generalGroupBox->layout()->removeWidget(getUi()->chatNotificationsCheckBox); + getUi()->generalGroupBox->layout()->removeWidget(getUi()->serverNotificationsCheckBox); + getUi()->generalGroupBox->layout()->removeWidget(getUi()->autostartCheckBox); + getUi()->generalGroupBox->layout()->removeWidget(getUi()->quotaWarningNotificationsCheckBox); + + getUi()->generalGroupBox->setTitle({}); + getUi()->generalGroupBox->setObjectName(QStringLiteral("nmcGeneralSettingsBox")); + getUi()->generalGroupBox->setAttribute(Qt::WA_StyledBackground, true); + getUi()->generalGroupBox->setStyleSheet(QStringLiteral( + "#nmcGeneralSettingsBox {" + " background: palette(" BACKGROUND_PALETTE ");" + " border-radius: 4px;" + " border: none;" + "}" + )); + + auto *generalLayout = static_cast(getUi()->generalGroupBox->layout()); + generalLayout->addWidget(generalSettingsLabel, 0, 0); + generalLayout->addWidget(getUi()->autostartCheckBox, 1, 0); + generalLayout->addWidget(getUi()->serverNotificationsCheckBox, 2, 0); + generalLayout->setContentsMargins(16, 16, 16, 16); + generalLayout->setSpacing(8); + + getUi()->autostartCheckBox->setFocusPolicy(Qt::NoFocus); + getUi()->serverNotificationsCheckBox->setFocusPolicy(Qt::NoFocus); + + // Advanced settings + auto *advancedSettingsLabel = new QLabel(QCoreApplication::translate("", "ADVANCED_SETTINGS"), this); + advancedSettingsLabel->setStyleSheet(QStringLiteral("font-size: 12px; font-weight: bold;")); + + auto *advancedSettingsBox = new QGroupBox(this); + advancedSettingsBox->setObjectName(QStringLiteral("nmcAdvancedSettingsBox")); + advancedSettingsBox->setAttribute(Qt::WA_StyledBackground, true); + advancedSettingsBox->setTitle({}); + advancedSettingsBox->setLayout(new QVBoxLayout); + advancedSettingsBox->layout()->setContentsMargins(16, 16, 16, 16); + advancedSettingsBox->layout()->setSpacing(8); + advancedSettingsBox->setStyleSheet(QStringLiteral( + "#nmcAdvancedSettingsBox {" + " background: palette(" BACKGROUND_PALETTE ");" + " border-radius: 4px;" + " border: none;" + "}" + )); + + getUi()->horizontalLayout_10->removeWidget(getUi()->showInExplorerNavigationPaneCheckBox); + getUi()->horizontalLayout_trash->removeWidget(getUi()->moveFilesToTrashCheckBox); + getUi()->horizontalLayout_4->removeWidget(getUi()->ignoredFilesButton); + + getUi()->horizontalLayout_3->removeWidget(getUi()->newFolderLimitCheckBox); + getUi()->horizontalLayout_3->removeWidget(getUi()->newFolderLimitSpinBox); + getUi()->horizontalLayout_3->removeWidget(getUi()->label); + + auto *newFolderLimitWidget = new QWidget(advancedSettingsBox); + newFolderLimitWidget->setContentsMargins(0, 0, 0, 0); + auto *newFolderLimitLayout = new QHBoxLayout(newFolderLimitWidget); + newFolderLimitLayout->setContentsMargins(0, 0, 0, 0); + newFolderLimitLayout->setSpacing(8); + + newFolderLimitLayout->addWidget(getUi()->newFolderLimitCheckBox); + newFolderLimitLayout->addWidget(getUi()->newFolderLimitSpinBox); + newFolderLimitLayout->addWidget(getUi()->label); + newFolderLimitLayout->addStretch(); + + getUi()->newFolderLimitCheckBox->setVisible(true); + getUi()->newFolderLimitSpinBox->setVisible(true); + getUi()->label->setVisible(true); + + getUi()->newFolderLimitCheckBox->setFocusPolicy(Qt::NoFocus); + getUi()->newFolderLimitSpinBox->setFocusPolicy(Qt::ClickFocus); + getUi()->newFolderLimitSpinBox->setKeyboardTracking(true); + getUi()->newFolderLimitSpinBox->setEnabled(getUi()->newFolderLimitCheckBox->isChecked()); + + connect(getUi()->newFolderLimitCheckBox, &QAbstractButton::toggled, + getUi()->newFolderLimitSpinBox, &QWidget::setEnabled); + + newFolderLimitWidget->setVisible(true); + + getUi()->ignoredFilesButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); + getUi()->ignoredFilesButton->setFocusPolicy(Qt::NoFocus); + getUi()->ignoredFilesButton->setStyleSheet(QStringLiteral( + "QPushButton {" + " min-height: 32px;" + " min-width: 200px;" + " border: 1px solid black;" + " color: black;" + " background-color: #ededed;" + " font-size: 13px;" + " border-radius: 4px;" + "}" + "QPushButton:hover {" + " background-color: white;" + "}" + )); + + advancedSettingsBox->layout()->addWidget(advancedSettingsLabel); + advancedSettingsBox->layout()->addWidget(newFolderLimitWidget); + advancedSettingsBox->layout()->addWidget(getUi()->showInExplorerNavigationPaneCheckBox); + advancedSettingsBox->layout()->addWidget(getUi()->moveFilesToTrashCheckBox); + advancedSettingsBox->layout()->addItem(new QSpacerItem(1, 8, QSizePolicy::Fixed, QSizePolicy::Fixed)); + advancedSettingsBox->layout()->addWidget(getUi()->ignoredFilesButton); + + getUi()->showInExplorerNavigationPaneCheckBox->setFocusPolicy(Qt::NoFocus); + getUi()->moveFilesToTrashCheckBox->setFocusPolicy(Qt::NoFocus); + + getUi()->gridLayout_3->addWidget(advancedSettingsBox, 2, 0); + + // Updates & Info + auto *updatesLabel = new QLabel(QCoreApplication::translate("", "UPDATES_SETTINGS"), this); + updatesLabel->setStyleSheet(QStringLiteral("font-size: 12px; font-weight: bold;")); + + auto *dataProtectionBox = new QGroupBox(this); + dataProtectionBox->setObjectName(QStringLiteral("nmcUpdatesInfoBox")); + dataProtectionBox->setAttribute(Qt::WA_StyledBackground, true); + dataProtectionBox->setTitle({}); + dataProtectionBox->setLayout(new QVBoxLayout); + dataProtectionBox->layout()->setContentsMargins(16, 16, 16, 16); + dataProtectionBox->layout()->setSpacing(8); + dataProtectionBox->setStyleSheet(QStringLiteral( + "#nmcUpdatesInfoBox {" + " background: palette(" BACKGROUND_PALETTE ");" + " border-radius: 4px;" + " border: none;" + "}" + )); + + auto *dataAnalysisCheckBox = new QCheckBox(this); + dataAnalysisCheckBox->setText(QCoreApplication::translate("", "DATA_ANALYSIS")); + dataAnalysisCheckBox->setFocusPolicy(Qt::NoFocus); + + getUi()->autoCheckForUpdatesCheckBox->setFocusPolicy(Qt::NoFocus); + + dataProtectionBox->layout()->addWidget(updatesLabel); + dataProtectionBox->layout()->addWidget(getUi()->autoCheckForUpdatesCheckBox); + dataProtectionBox->layout()->addWidget(dataAnalysisCheckBox); + + connect(dataAnalysisCheckBox, &QAbstractButton::toggled, this, [](bool toggle) { + NMCConfigFile cfgFile; + cfgFile.setTransferUsageData(toggle, QString()); + }); + + NMCConfigFile cfgFile; + dataAnalysisCheckBox->setChecked(cfgFile.transferUsageData()); + + dataProtectionBox->layout()->addItem(new QSpacerItem(1, 8, QSizePolicy::Fixed, QSizePolicy::Fixed)); + + auto *dataAnalysisImpressum = new QLabel(this); + dataAnalysisImpressum->setText(QStringLiteral("%1") + .arg(QCoreApplication::translate("", "IMPRESSUM"))); + dataAnalysisImpressum->setTextFormat(Qt::RichText); + dataAnalysisImpressum->setTextInteractionFlags(Qt::TextBrowserInteraction); + dataAnalysisImpressum->setOpenExternalLinks(true); + dataAnalysisImpressum->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); + dataAnalysisImpressum->setStyleSheet(QStringLiteral("font-size: 13px")); + dataProtectionBox->layout()->addWidget(dataAnalysisImpressum); + + auto *dataAnalysisData = new QLabel(this); + dataAnalysisData->setText(QStringLiteral("%1") + .arg(QCoreApplication::translate("", "DATA_PROTECTION"))); + dataAnalysisData->setTextFormat(Qt::RichText); + dataAnalysisData->setTextInteractionFlags(Qt::TextBrowserInteraction); + dataAnalysisData->setOpenExternalLinks(true); + dataAnalysisData->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); + dataAnalysisData->setStyleSheet(QStringLiteral("font-size: 13px")); + dataProtectionBox->layout()->addWidget(dataAnalysisData); + + auto *dataAnalysisOpenSource = new QLabel(this); + dataAnalysisOpenSource->setText(QStringLiteral("%1") + .arg(QCoreApplication::translate("", "LICENCE"))); + dataAnalysisOpenSource->setTextFormat(Qt::RichText); + dataAnalysisOpenSource->setTextInteractionFlags(Qt::TextBrowserInteraction); + dataAnalysisOpenSource->setOpenExternalLinks(true); + dataAnalysisOpenSource->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); + dataAnalysisOpenSource->setStyleSheet(QStringLiteral("font-size: 13px")); + dataProtectionBox->layout()->addWidget(dataAnalysisOpenSource); + + auto *dataAnalysisFurtherInfo = new QLabel(this); + dataAnalysisFurtherInfo->setText(QStringLiteral("%1") + .arg(QCoreApplication::translate("", "FURTHER_INFO"))); + dataAnalysisFurtherInfo->setTextFormat(Qt::RichText); + dataAnalysisFurtherInfo->setTextInteractionFlags(Qt::TextBrowserInteraction); + dataAnalysisFurtherInfo->setOpenExternalLinks(true); + dataAnalysisFurtherInfo->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); + dataAnalysisFurtherInfo->setStyleSheet(QStringLiteral("font-size: 13px")); + dataProtectionBox->layout()->addWidget(dataAnalysisFurtherInfo); + + dataProtectionBox->layout()->addItem(new QSpacerItem(1, 8, QSizePolicy::Fixed, QSizePolicy::Fixed)); + + auto *currentVersion = new QLabel(this); + currentVersion->setText(Theme::instance()->about()); + currentVersion->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); + dataProtectionBox->layout()->addWidget(currentVersion); + + getUi()->gridLayout_3->addWidget(dataProtectionBox, 3, 0); + + auto *vExpandSpacer = new QSpacerItem(1, 1, QSizePolicy::Fixed, QSizePolicy::Expanding); + getUi()->gridLayout_3->layout()->addItem(vExpandSpacer); +} + +} // namespace OCC diff --git a/src/gui/nmcgui/nmcgeneralsettings.h b/src/gui/nmcgui/nmcgeneralsettings.h new file mode 100644 index 0000000000000..d3386fc8c983d --- /dev/null +++ b/src/gui/nmcgui/nmcgeneralsettings.h @@ -0,0 +1,66 @@ +/* + * Copyright (C) by Mauro Mura + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + */ + +#ifndef MIRALL_GENERALSETTINGSMAGENTA_H +#define MIRALL_GENERALSETTINGSMAGENTA_H + +#include "generalsettings.h" + +namespace OCC { + +/** + * @brief The NMCGeneralSettings class + * + * This class represents the Magenta-specific implementation of general settings + * for a graphical user interface. It inherits from the base class GeneralSettings. + * + * @ingroup gui + */ +class NMCGeneralSettings : public GeneralSettings +{ + Q_OBJECT + +public: + /** + * @brief Constructor for NMCGeneralSettings + * + * Creates an instance of NMCGeneralSettings with the specified parent widget. + * + * @param parent The parent widget (default is nullptr). + */ + explicit NMCGeneralSettings(QWidget *parent = nullptr); + + /** + * @brief Destructor for NMCGeneralSettings + */ + ~NMCGeneralSettings() = default; + +protected: + /** + * @brief Set default settings + * + * Sets the default values for Magenta-specific general settings. + */ + void setDefaultSettings(); + + /** + * @brief Set layout + * + * Sets the layout for the Magenta-specific general settings user interface. + */ + void setNMCLayout(); +}; + +} // namespace OCC +#endif // MIRALL_GENERALSETTINGSMAGENTA_H diff --git a/src/gui/settingsdialog.cpp b/src/gui/settingsdialog.cpp index d6e8336f83281..b59db1bc16edc 100644 --- a/src/gui/settingsdialog.cpp +++ b/src/gui/settingsdialog.cpp @@ -9,6 +9,7 @@ #include "folderman.h" #include "theme.h" #include "generalsettings.h" +#include "nmcgui/nmcgeneralsettings.h" #include "networksettings.h" #include "accountsettings.h" #include "configfile.h" @@ -187,7 +188,7 @@ SettingsDialog::SettingsDialog(ownCloudGui *gui, QWidget *parent) accountSpacer->setFixedHeight(16); _toolBar->addWidget(accountSpacer); _toolBar->addSeparator(); - auto *generalSettings = new GeneralSettings; + auto *generalSettings = new NMCGeneralSettings; _stack->addWidget(generalSettings); _stack->setStyleSheet(QStringLiteral("QStackedWidget { background: transparent; }")); diff --git a/src/libsync/CMakeLists.txt b/src/libsync/CMakeLists.txt index 87ee8c3ed1122..5e4253c88eb37 100644 --- a/src/libsync/CMakeLists.txt +++ b/src/libsync/CMakeLists.txt @@ -168,6 +168,10 @@ set(libsync_SRCS caseclashconflictsolver.cpp ) +file(GLOB NMC_FILES "nmclibsync/*") +set(NMC_SRCS ${NMC_FILES}) +list(APPEND libsync_SRCS ${NMC_SRCS}) + if (WIN32) # to fix warnings from ntstatus.h add_definitions(-DUMDF_USING_NTSTATUS) diff --git a/src/libsync/configfile.cpp b/src/libsync/configfile.cpp index 51afd889fa8ff..08c42b2e32929 100644 --- a/src/libsync/configfile.cpp +++ b/src/libsync/configfile.cpp @@ -172,7 +172,7 @@ bool ConfigFile::setConfDir(const QString &value) bool ConfigFile::optionalServerNotifications() const { QSettings settings(configFile(), QSettings::IniFormat); - return settings.value(optionalServerNotificationsC, true).toBool(); + return settings.value(optionalServerNotificationsC, false).toBool(); } bool ConfigFile::showChatNotifications() const diff --git a/src/libsync/configfile.h b/src/libsync/configfile.h index 927daa11377e8..6e5ec46e03683 100644 --- a/src/libsync/configfile.h +++ b/src/libsync/configfile.h @@ -319,10 +319,10 @@ class OWNCLOUDSYNC_EXPORT ConfigFile [[nodiscard]] QVariant retrieveData(const QString &group, const QString &key) const; void removeData(const QString &group, const QString &key); [[nodiscard]] bool dataExists(const QString &group, const QString &key) const; - -private: [[nodiscard]] QVariant getValue(const QString ¶m, const QString &group = QString(), const QVariant &defaultValue = QVariant()) const; + +private: void setValue(const QString &key, const QVariant &value); [[nodiscard]] QString keychainProxyPasswordKey() const; diff --git a/src/libsync/nmclibsync/nmcconfigfile.cpp b/src/libsync/nmclibsync/nmcconfigfile.cpp new file mode 100644 index 0000000000000..f88f672fbbb28 --- /dev/null +++ b/src/libsync/nmclibsync/nmcconfigfile.cpp @@ -0,0 +1,51 @@ +/* + * Copyright (C) by Eugen Fischer + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + */ + +#include "nmcconfigfile.h" +#include "theme.h" +#include + +namespace OCC { + +const QString NMCConfigFile::m_transferUsageData = + QStringLiteral("TransferUsageData"); + +bool NMCConfigFile::transferUsageData(const QString &connection) const +{ + const QString group = connection.isEmpty() + ? Theme::instance()->appName() + : connection; + + QVariant fallback = getValue(m_transferUsageData, QString(), false); + fallback = getValue(m_transferUsageData, group, fallback); + + const QVariant value = getPolicySetting(m_transferUsageData, fallback); + return value.toBool(); +} + +void NMCConfigFile::setTransferUsageData(bool usageData, const QString &connection) +{ + const QString group = + connection.isEmpty() + ? Theme::instance()->appName() + : connection; + + QSettings settings(configFile(), QSettings::IniFormat); + settings.beginGroup(group); + + settings.setValue(m_transferUsageData, usageData); + settings.sync(); +} + +} // namespace OCC diff --git a/src/libsync/nmclibsync/nmcconfigfile.h b/src/libsync/nmclibsync/nmcconfigfile.h new file mode 100644 index 0000000000000..bd47e1418fca8 --- /dev/null +++ b/src/libsync/nmclibsync/nmcconfigfile.h @@ -0,0 +1,58 @@ +/* + * Copyright (C) by Eugen Fischer + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + */ + +#ifndef MIRALL_NMCCONFIGFILE_H +#define MIRALL_NMCCONFIGFILE_H + +#include "configfile.h" +#include + +namespace OCC { + +/** + * @brief The NMCConfigFile class. + * @ingroup lib + * + * Subclass of ConfigFile representing the configuration file for + * NMC (MagentaCustomization) in the OwnCloud Sync library. + */ +class OWNCLOUDSYNC_EXPORT NMCConfigFile : public ConfigFile +{ +public: + NMCConfigFile() = default; + ~NMCConfigFile() = default; + + /** + * @brief Check if transferring usage data is enabled. + * + * @param connection Optional parameter specifying the connection. + * @return True if transferring usage data is enabled, false otherwise. + */ + [[nodiscard]] bool transferUsageData(const QString &connection = QString()) const; + + /** + * @brief Set the status of transferring usage data. + * + * @param usageData True to enable transferring usage data, false otherwise. + * @param connection Optional parameter specifying the connection. + */ + void setTransferUsageData(bool usageData, const QString &connection = QString()); + +private: + static const QString m_transferUsageData; +}; + +} // namespace OCC + +#endif // MIRALL_NMCCONFIGFILE_H diff --git a/translations/client_de.ts b/translations/client_de.ts index 09ce1e07f062d..ff3565224cbe9 100644 --- a/translations/client_de.ts +++ b/translations/client_de.ts @@ -3296,7 +3296,6 @@ Ein Downgrade von Versionen ist nicht sofort möglich: Der Wechsel von Beta auf Items where deletion is allowed will be deleted if they prevent a directory from being removed. This is useful for meta data. Dateien oder Ordner, die diesem Muster entsprechen, werden nicht synchronisiert. - Objekte, bei denen Löschen erlaubt ist, werden gelöscht, wenn diese das Entfernen eines Ordners verhindern würden. Dies ist für Metadaten nützlich.