Akonadi::ETMViewStateSaver Class

Header: #include <Akonadi/ETMViewStateSaver>
CMake: find_package(KPim6 REQUIRED COMPONENTS AkonadiWidgets)
target_link_libraries(mytarget PRIVATE KPim6::AkonadiWidgets)

Public Functions

ETMViewStateSaver(QObject *parent = nullptr)
void selectCollections(const Akonadi::Collection::List &list)
void selectCollections(const QList<Akonadi::Collection::Id> &list)
void selectItems(const Akonadi::Item::List &list)
void selectItems(const QList<Akonadi::Item::Id> &list)
void setCurrentCollection(const Akonadi::Collection &collection)
void setCurrentItem(const Akonadi::Item &item)

Detailed Description

Member Function Documentation

[explicit] ETMViewStateSaver::ETMViewStateSaver(QObject *parent = nullptr)

Creates a new ETM view state saver. parent The parent object.

void ETMViewStateSaver::selectCollections(const Akonadi::Collection::List &list)

Selects the given collections in the view. list The list of collections to select.

void ETMViewStateSaver::selectCollections(const QList<Akonadi::Collection::Id> &list)

Selects the collections with the given IDs in the view. list The list of collection IDs to select.

void ETMViewStateSaver::selectItems(const Akonadi::Item::List &list)

Selects the given items in the view. list The list of items to select.

void ETMViewStateSaver::selectItems(const QList<Akonadi::Item::Id> &list)

Selects the items with the given IDs in the view. list The list of item IDs to select.

void ETMViewStateSaver::setCurrentCollection(const Akonadi::Collection &collection)

Sets the current collection in the view. collection The collection to set as current.

void ETMViewStateSaver::setCurrentItem(const Akonadi::Item &item)

Sets the current item in the view. item The item to set as current.