kmail

KMMsgIndex Class Reference

List of all members.

Detailed Description

Definition at line 52 of file index.h.


Public Slots

void setEnabled (bool)
void setIndexingEnabled (KMFolder *, bool)

Public Member Functions

 KMMsgIndex (QObject *parent)
 ~KMMsgIndex ()
bool startQuery (KMSearch *)
bool stopQuery (KMSearch *)
std::vector< Q_UINT32 > simpleSearch (QString, bool *) const
bool isIndexable (KMFolder *folder) const
bool isIndexed (KMFolder *folder) const
bool isEnabled () const

Classes

class  Search

Member Function Documentation

bool KMMsgIndex::startQuery ( KMSearch  ) 

Starts a query.

Results will be returned assyncronously by signals.

Returns:
false if the query cannot be handled

Definition at line 400 of file index.cpp.

bool KMMsgIndex::stopQuery ( KMSearch  ) 

Stops a query.

nop if the query isn't running anymore.

Returns:
true if the query was found

Definition at line 440 of file index.cpp.

std::vector< Q_UINT32 > KMMsgIndex::simpleSearch ( QString  ,
bool *   
) const

Just return all the uids where the pattern exists.

Definition at line 452 of file index.cpp.

bool KMMsgIndex::isIndexable ( KMFolder folder  )  const

Returns whether the folder is indexable.

Only local and dimap folders are currently indexable.

Note that a folder might be indexable and not indexed if the user has disabled it.

See also:
isIndexed

Definition at line 154 of file index.cpp.

bool KMMsgIndex::isIndexed ( KMFolder folder  )  const

Returns whether the folder has indexing enabled.

This returns true immediatelly after indexing has been enabled even though the folder is probably still being indexed in the background.

Definition at line 160 of file index.cpp.

bool KMMsgIndex::isEnabled (  )  const [inline]

Returns whether the index is enabled.

Definition at line 99 of file index.h.

void KMMsgIndex::setEnabled ( bool   )  [slot]

Either enable or disable indexing.

Calling setEnabled( true ) will start building the whole index, which is an expensive operation (time and disk-space).

Calling setEnabled( false ) will remove the index immediatelly, freeing up disk-space.

Definition at line 167 of file index.cpp.

void KMMsgIndex::setIndexingEnabled ( KMFolder ,
bool   
) [slot]

Change the indexing override for a given folder.

If called with true, will start indexing all the messages in the folder If called with false will remove all the messages in the folder

Definition at line 193 of file index.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys