Akonadi

trashsettings.h
1 /*
2  SPDX-FileCopyrightText: 2011 Christian Mollekopf <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "akonadicore_export.h"
10 #include "collection.h"
11 
12 class QString;
13 
14 namespace Akonadi
15 {
16 /**
17  * @short Global Trash-related Settings
18  *
19  * All settings concerning the trashhandling should go here.
20  *
21  * @author Christian Mollekopf <[email protected]>
22  * @since 4.8
23  */
24 // TODO setting for time before items are deleted by janitor agent
25 namespace TrashSettings
26 {
27 /**
28  * Set the trash collection for the given @p resource which is then used by the TrashJob
29  */
30 AKONADICORE_EXPORT void setTrashCollection(const QString &resource, const Collection &collection);
31 /**
32  * Get the trash collection for the given @p resource
33  */
34 Q_REQUIRED_RESULT AKONADICORE_EXPORT Collection getTrashCollection(const QString &resource);
35 }
36 
37 }
38 
AKONADICORE_EXPORT void setTrashCollection(const QString &resource, const Collection &collection)
Set the trash collection for the given resource which is then used by the TrashJob.
Represents a collection of PIM items.
Definition: collection.h:61
AKONADICORE_EXPORT Collection getTrashCollection(const QString &resource)
Get the trash collection for the given resource.
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Jun 27 2022 04:01:08 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.