File indexing completed on 2024-06-23 05:06:55

0001 /*
0002  SPDX-FileCopyrightText: 2011 Christian Mollekopf <chrigi_1@fastmail.fm>
0003 
0004  SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "akonadicore_export.h"
0010 #include "collection.h"
0011 
0012 class QString;
0013 
0014 namespace Akonadi
0015 {
0016 /**
0017  * @short Global Trash-related Settings
0018  *
0019  * All settings concerning the trashhandling should go here.
0020  *
0021  * @author Christian Mollekopf <chrigi_1@fastmail.fm>
0022  * @since 4.8
0023  */
0024 // TODO setting for time before items are deleted by janitor agent
0025 namespace TrashSettings
0026 {
0027 /**
0028  * Set the trash collection for the given @p resource which is then used by the TrashJob
0029  */
0030 AKONADICORE_EXPORT void setTrashCollection(const QString &resource, const Collection &collection);
0031 /**
0032  * Get the trash collection for the given @p resource
0033  */
0034 [[nodiscard]] AKONADICORE_EXPORT Collection getTrashCollection(const QString &resource);
0035 }
0036 
0037 }