Akonadi::Server::StorageJanitor

Search for usage in LXR

Akonadi::Server::StorageJanitor Class Reference

#include <storagejanitor.h>

Signals

Q_SCRIPTABLE void done ()
 
Q_SCRIPTABLE void information (const QString &msg)
 

Public Slots

Q_SCRIPTABLE Q_NOREPLY void check ()
 
Q_SCRIPTABLE Q_NOREPLY void vacuum ()
 

Public Member Functions

 StorageJanitor (DbConfig *config)
 

Protected Member Functions

 StorageJanitor (AkonadiServer *mAkonadi, DbConfig *config=DbConfig::configuredDatabase())
 
void init () override
 
void quit () override
 

Detailed Description

Various database checking/maintenance features.

Definition at line 25 of file storagejanitor.h.

Constructor & Destructor Documentation

◆ StorageJanitor() [1/2]

StorageJanitor::StorageJanitor ( AkonadiServer * mAkonadi,
DbConfig * config = DbConfig::configuredDatabase() )
explicitprotected

Use AkThread::create() to create and start a new StorageJanitor thread.

Definition at line 51 of file storagejanitor.cpp.

◆ StorageJanitor() [2/2]

StorageJanitor::StorageJanitor ( DbConfig * config)
explicit

Use AkThread::create() to run StorageJanitor in a separate thread.

Only use this constructor if you want to run StorageJanitor in the current thread.

Definition at line 59 of file storagejanitor.cpp.

◆ ~StorageJanitor()

StorageJanitor::~StorageJanitor ( )
override

Definition at line 68 of file storagejanitor.cpp.

Member Function Documentation

◆ check

void StorageJanitor::check ( )
slot

Triggers a consistency check of the internal storage.

Definition at line 139 of file storagejanitor.cpp.

◆ information

Q_SCRIPTABLE void Akonadi::Server::StorageJanitor::information ( const QString & msg)
signal

Sends informational messages to a possible UI for this.

◆ init()

void StorageJanitor::init ( )
overrideprotected

Definition at line 73 of file storagejanitor.cpp.

◆ quit()

void StorageJanitor::quit ( )
overrideprotected

Definition at line 89 of file storagejanitor.cpp.

◆ vacuum

void StorageJanitor::vacuum ( )
slot

Triggers a vacuuming of the database, that is compacting of unused space.

Definition at line 716 of file storagejanitor.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:11:40 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.