(→Status of porting to SQLite) |
(→Status of porting to SQLite) |
||
| Line 83: | Line 83: | ||
|replace its public use (e.g. in KMFolderIndex::truncateIndex()) with additional bool indexOpened() | |replace its public use (e.g. in KMFolderIndex::truncateIndex()) with additional bool indexOpened() | ||
|- | |- | ||
| − | |KMFolderIndex:: | + | |FILE* KMFolderIndex::mIndexStream, uchar* mIndexStreamPtr, size_t mIndexStreamPtrLength, bool mIndexSwapByteOrder, int mIndexSizeOfLong |
| − | + | ||
| | | | ||
| | | | ||
| + | |these members are unused for SQLite mode because are related to file strorage; moreover byte order and size of long is handled by SQLite in a portable way | ||
|- | |- | ||
|KMFolderIndex:: | |KMFolderIndex:: | ||
There are issues with locking index files for KMail folders and mmap()/munmap() operations on Windows. Therefore, SQLite-based indices are in development. This page presents detailed development notes for this task.
Started: jstaniek 11:35, 23 April 2008 (CEST)
Contents |
| TOPIC | PORTED | TESTED | NOTES |
|---|---|---|---|
| QString KMFolderIndex::indexLocation() | yes | added .db suffix to indicate the index is sqlite-based | |
| int KMFolderIndex::updateIndex() | yes | no changes | |
| int KMFolderIndex::writeIndex( bool createEmptyIndex ) | |||
| bool KMFolderIndex::readIndex() | |||
| int KMFolderIndex::count(bool cache) | yes | no changes | |
| bool KMFolderIndex::readIndexHeader(int *gv) | |||
| bool KMFolderIndex::updateIndexStreamPtr(bool) | |||
| KMFolderIndex::IndexStatus KMFolderIndex::indexStatus() | |||
| void KMFolderIndex::truncateIndex() | use "DELETE FROM..." | ||
| off_t KMFolderIndex::mHeaderOffset | replace its public use (e.g. in KMFolderIndex::truncateIndex()) with additional bool indexOpened() | ||
| FILE* KMFolderIndex::mIndexStream, uchar* mIndexStreamPtr, size_t mIndexStreamPtrLength, bool mIndexSwapByteOrder, int mIndexSizeOfLong | these members are unused for SQLite mode because are related to file strorage; moreover byte order and size of long is handled by SQLite in a portable way | ||
| KMFolderIndex:: |