kmfolderindex.h
The FolderStorage class is the bass class for the storage related aspects of a collection of mail (a ...
Definition: folderstorage.h:80
virtual int find(const KMMsgBase *msg) const =0
Returns the index of the given message or -1 if not found.
A FolderStorage with an index for faster access to often used message properties.
Definition: kmfolderindex.h:38
virtual const KMMsgBase * getMsgBase(int idx) const
Provides access to the basic message fields that are also stored in the index.
Definition: kmfolderindex.h:68
KMFolderIndex(KMFolder *folder, const char *name=0)
Usually a parent is given.
Definition: kmfolderindex.cpp:77
virtual int find(const KMMsgBase *msg) const
Returns the index of the given message or -1 if not found.
Definition: kmfolderindex.h:71
virtual int writeIndex(bool createEmptyIndex=false)
Write index to index-file.
Definition: kmfolderindex.cpp:129
virtual TQString indexLocation() const
Returns full path to index file.
Definition: kmfolderindex.cpp:95
int serialIndexId() const
Registered unique serial number for the index file.
Definition: kmfolderindex.h:75
virtual int count(bool cache=false) const
Number of messages in this folder.
Definition: kmfolderindex.cpp:324
virtual IndexStatus indexStatus()=0
Tests whether the contents of this folder is newer than the index.
Definition: kmfolderindex.cpp:470
virtual int updateIndex()
Incrementally update the index if possible else call writeIndex.
Definition: kmfolderindex.cpp:109
bool readIndex()
Read index file and fill the message-info list mMsgList.
Definition: kmfolderindex.cpp:218
virtual int createIndexFromContents()=0
Create index file from messages file and fill the message-info list mMsgList.
virtual void fillMessageDict()
Inserts messages into the message dictionary by iterating over the message list.
Definition: kmfolderindex.cpp:502
KMMsgBase * take(unsigned int idx)
Returns message at given index and removes it from the list.
Definition: kmmsglist.cpp:161