Akonadi

etmviewstatesaver.h
1/*
2 SPDX-FileCopyrightText: 2010 Klarälvdalens Datakonsult AB,
3 a KDAB Group company, info@kdab.net
4 SPDX-FileContributor: Stephen Kelly <stephen@kdab.com>
5
6 SPDX-License-Identifier: LGPL-2.0-or-later
7*/
8
9#pragma once
10
11#include <KConfigViewStateSaver>
12
13// AkonadiCore
14#include "akonadi/collection.h"
15#include "akonadi/item.h"
16
17#include "akonadiwidgets_export.h"
18
19namespace Akonadi
20{
21class AKONADIWIDGETS_EXPORT ETMViewStateSaver : public KConfigViewStateSaver // krazy:exclude=dpointer
22{
23 Q_OBJECT
24public:
25 explicit ETMViewStateSaver(QObject *parent = nullptr);
26
27 void selectCollections(const Akonadi::Collection::List &list);
28 void selectCollections(const QList<Akonadi::Collection::Id> &list);
29 void selectItems(const Akonadi::Item::List &list);
30 void selectItems(const QList<Akonadi::Item::Id> &list);
31
32 void setCurrentItem(const Akonadi::Item &item);
33 void setCurrentCollection(const Akonadi::Collection &collection);
34
35protected:
36 /* reimp */
37 QModelIndex indexFromConfigString(const QAbstractItemModel *model, const QString &key) const override;
38 QString indexToConfigString(const QModelIndex &index) const override;
39};
40
41}
Represents a collection of PIM items.
Definition collection.h:62
Represents a PIM item stored in Akonadi storage.
Definition item.h:100
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:31:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.