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 #ifndef AKONADI_TRASHSETTINGS_H
8 #define AKONADI_TRASHSETTINGS_H
9 
10 #include "akonadicore_export.h"
11 #include "collection.h"
12 
13 class QString;
14 
15 namespace Akonadi
16 {
17 
26 //TODO setting for time before items are deleted by janitor agent
27 namespace TrashSettings
28 {
32 AKONADICORE_EXPORT void setTrashCollection(const QString &resource, const Collection &collection);
36 Q_REQUIRED_RESULT AKONADICORE_EXPORT Collection getTrashCollection(const QString &resource);
37 }
38 
39 }
40 
41 #endif
Represents a collection of PIM items.
Definition: collection.h:63
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.
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-2021 The KDE developers.
Generated on Sat Jan 23 2021 07:17:50 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.