Akonadi::RemoveDuplicatesJob Class
class Akonadi::RemoveDuplicatesJobJob that finds and removes duplicate messages in given collection. More...
| Header: | #include <Akonadi/RemoveDuplicatesJob> |
| CMake: | find_package(KPim6AkonadiMime REQUIRED)target_link_libraries(mytarget PRIVATE KPim6::AkonadiMime) |
Public Functions
| RemoveDuplicatesJob(const Akonadi::Collection &folder, QObject *parent = nullptr) | |
| RemoveDuplicatesJob(const Akonadi::Collection::List &folders, QObject *parent) | |
| virtual | ~RemoveDuplicatesJob() override |
Detailed Description
This jobs compares all messages in given collections by their Message-Id headers and hashes of their bodies and removes duplicates.
Member Function Documentation
[explicit] RemoveDuplicatesJob::RemoveDuplicatesJob(const Akonadi::Collection &folder, QObject *parent = nullptr)
Creates a new job that will remove duplicates in folder.
folder The folder where to search for duplicates parent The parent object
RemoveDuplicatesJob::RemoveDuplicatesJob(const Akonadi::Collection::List &folders, QObject *parent)
Creates a new job that will remove duplicates in all folders.
folders Folders where to search for duplicates parent The parent object
[override virtual noexcept] RemoveDuplicatesJob::~RemoveDuplicatesJob()
Destroys the job.