knode
KNArticleVector Class Reference
#include <knarticlecollection.h>
Detailed Description
Article storage used by KNArticleCollection.Definition at line 27 of file knarticlecollection.h.
Public Types | |
| enum | SortingType { STid, STmsgId, STunsorted } |
Public Member Functions | |
| bool | append (KNArticle *a, bool autoSort=false) |
| KNArticle * | at (int i) |
| KNArticle * | bsearch (const QByteArray &id) |
| KNArticle * | bsearch (int id) |
| void | clear () |
| void | compact () |
| int | indexForId (int id) |
| int | indexForMsgId (const QByteArray &id) |
| bool | isEmpty () |
| bool | isMaster () |
| KNArticleVector (KNArticleVector *master=0, SortingType sorting=STunsorted) | |
| int | length () |
| KNArticleVector * | master () |
| void | remove (int pos, bool autoDel=false, bool autoCompact=false) |
| bool | resize (int s=0) |
| void | setMaster (KNArticleVector *m) |
| void | setSortMode (SortingType s) |
| int | size () |
| void | sort () |
| SortingType | sortMode () |
| void | syncWithMaster () |
| virtual | ~KNArticleVector () |
Static Public Member Functions | |
| static int | compareById (const void *a1, const void *a2) |
| static int | compareByMsgId (const void *a1, const void *a2) |
Protected Attributes | |
| int | l_en |
| KNArticle ** | l_ist |
| KNArticleVector * | m_aster |
| int | s_ize |
| SortingType | s_ortType |
Member Enumeration Documentation
Constructor & Destructor Documentation
| KNArticleVector::KNArticleVector | ( | KNArticleVector * | master = 0, |
|
| SortingType | sorting = STunsorted | |||
| ) |
Definition at line 29 of file knarticlecollection.cpp.
| KNArticleVector::~KNArticleVector | ( | ) | [virtual] |
Definition at line 35 of file knarticlecollection.cpp.
Member Function Documentation
| bool KNArticleVector::append | ( | KNArticle * | a, | |
| bool | autoSort = false | |||
| ) |
Definition at line 67 of file knarticlecollection.cpp.
| KNArticle* KNArticleVector::at | ( | int | i | ) | [inline] |
Definition at line 60 of file knarticlecollection.h.
| KNArticle * KNArticleVector::bsearch | ( | const QByteArray & | id | ) |
Definition at line 223 of file knarticlecollection.cpp.
| KNArticle * KNArticleVector::bsearch | ( | int | id | ) |
Definition at line 215 of file knarticlecollection.cpp.
| void KNArticleVector::clear | ( | ) |
Definition at line 95 of file knarticlecollection.cpp.
| void KNArticleVector::compact | ( | ) |
Definition at line 107 of file knarticlecollection.cpp.
| int KNArticleVector::compareById | ( | const void * | a1, | |
| const void * | a2 | |||
| ) | [static] |
Definition at line 179 of file knarticlecollection.cpp.
| int KNArticleVector::compareByMsgId | ( | const void * | a1, | |
| const void * | a2 | |||
| ) | [static] |
Definition at line 197 of file knarticlecollection.cpp.
| int KNArticleVector::indexForId | ( | int | id | ) |
Definition at line 231 of file knarticlecollection.cpp.
| int KNArticleVector::indexForMsgId | ( | const QByteArray & | id | ) |
Definition at line 261 of file knarticlecollection.cpp.
| bool KNArticleVector::isEmpty | ( | ) | [inline] |
Definition at line 40 of file knarticlecollection.h.
| bool KNArticleVector::isMaster | ( | ) | [inline] |
Definition at line 38 of file knarticlecollection.h.
| int KNArticleVector::length | ( | ) | [inline] |
Definition at line 41 of file knarticlecollection.h.
| KNArticleVector* KNArticleVector::master | ( | ) | [inline] |
Definition at line 36 of file knarticlecollection.h.
| void KNArticleVector::remove | ( | int | pos, | |
| bool | autoDel = false, |
|||
| bool | autoCompact = false | |||
| ) |
Definition at line 79 of file knarticlecollection.cpp.
| bool KNArticleVector::resize | ( | int | s = 0 |
) |
Definition at line 41 of file knarticlecollection.cpp.
| void KNArticleVector::setMaster | ( | KNArticleVector * | m | ) | [inline] |
Definition at line 37 of file knarticlecollection.h.
| void KNArticleVector::setSortMode | ( | SortingType | s | ) | [inline] |
Definition at line 54 of file knarticlecollection.h.
| int KNArticleVector::size | ( | ) | [inline] |
Definition at line 42 of file knarticlecollection.h.
| void KNArticleVector::sort | ( | ) |
Definition at line 156 of file knarticlecollection.cpp.
| SortingType KNArticleVector::sortMode | ( | ) | [inline] |
Definition at line 53 of file knarticlecollection.h.
| void KNArticleVector::syncWithMaster | ( | ) |
Definition at line 144 of file knarticlecollection.cpp.
Member Data Documentation
int KNArticleVector::l_en [protected] |
Definition at line 69 of file knarticlecollection.h.
KNArticle** KNArticleVector::l_ist [protected] |
Definition at line 71 of file knarticlecollection.h.
KNArticleVector* KNArticleVector::m_aster [protected] |
Definition at line 68 of file knarticlecollection.h.
int KNArticleVector::s_ize [protected] |
Definition at line 69 of file knarticlecollection.h.
SortingType KNArticleVector::s_ortType [protected] |
Definition at line 72 of file knarticlecollection.h.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference