Akonadi

trashsettings.h
1/*
2 SPDX-FileCopyrightText: 2011 Christian Mollekopf <chrigi_1@fastmail.fm>
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
12class QString;
13
14namespace Akonadi
15{
16/**
17 * @short Global Trash-related Settings
18 *
19 * All settings concerning the trashhandling should go here.
20 *
21 * @author Christian Mollekopf <chrigi_1@fastmail.fm>
22 * @since 4.8
23 */
24// TODO setting for time before items are deleted by janitor agent
25namespace TrashSettings
26{
27/**
28 * Set the trash collection for the given @p resource which is then used by the TrashJob
29 */
30AKONADICORE_EXPORT void setTrashCollection(const QString &resource, const Collection &collection);
31/**
32 * Get the trash collection for the given @p resource
33 */
34[[nodiscard]] AKONADICORE_EXPORT Collection getTrashCollection(const QString &resource);
35}
36
37}
Represents a collection of PIM items.
Definition collection.h:62
AKONADICORE_EXPORT Collection getTrashCollection(const QString &resource)
Get the trash collection for the given resource.
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.
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 13 2024 11:54:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.