knode
#include <knarticlecollection.h>
Public Types | |
enum | SortingType { STid, STmsgId, STunsorted } |
Public Member Functions | |
KNArticleVector (KNArticleVector *master=0, SortingType sorting=STunsorted) | |
virtual | ~KNArticleVector () |
void | append (KNArticle::Ptr a) |
KNArticle::Ptr | at (int i) |
KNArticle::Ptr | bsearch (int id) |
KNArticle::Ptr | bsearch (const QByteArray &id) |
void | clear () |
int | indexForId (int id) |
int | indexForMsgId (const QByteArray &id) |
bool | isEmpty () |
void | remove (int pos) |
void | setMaster (KNArticleVector *m) |
void | setSortMode (SortingType s) |
int | size () |
void | syncWithMaster () |
Static Public Member Functions | |
static bool | compareById (KNArticle::Ptr a1, KNArticle::Ptr a2) |
static bool | compareByMsgId (KNArticle::Ptr a1, KNArticle::Ptr a2) |
Detailed Description
Article storage used by KNArticleCollection.
Definition at line 26 of file knarticlecollection.h.
Member Enumeration Documentation
Enumerator | |
---|---|
STid | |
STmsgId | |
STunsorted |
Definition at line 29 of file knarticlecollection.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 23 of file knarticlecollection.cpp.
|
virtual |
Definition at line 29 of file knarticlecollection.cpp.
Member Function Documentation
void KNArticleVector::append | ( | KNArticle::Ptr | a | ) |
Appends an article to this store.
Definition at line 33 of file knarticlecollection.cpp.
|
inline |
Definition at line 58 of file knarticlecollection.h.
KNArticle::Ptr KNArticleVector::bsearch | ( | int | id | ) |
Definition at line 98 of file knarticlecollection.cpp.
KNArticle::Ptr KNArticleVector::bsearch | ( | const QByteArray & | id | ) |
Definition at line 104 of file knarticlecollection.cpp.
void KNArticleVector::clear | ( | ) |
Definition at line 48 of file knarticlecollection.cpp.
|
static |
Definition at line 84 of file knarticlecollection.cpp.
|
static |
Definition at line 90 of file knarticlecollection.cpp.
int KNArticleVector::indexForId | ( | int | id | ) |
Definition at line 110 of file knarticlecollection.cpp.
int KNArticleVector::indexForMsgId | ( | const QByteArray & | id | ) |
Definition at line 138 of file knarticlecollection.cpp.
|
inline |
Definition at line 37 of file knarticlecollection.h.
void KNArticleVector::remove | ( | int | pos | ) |
Remove the element at position pos
in this store.
Definition at line 40 of file knarticlecollection.cpp.
|
inline |
Definition at line 35 of file knarticlecollection.h.
|
inline |
Definition at line 53 of file knarticlecollection.h.
|
inline |
Definition at line 38 of file knarticlecollection.h.
void KNArticleVector::syncWithMaster | ( | ) |
Definition at line 53 of file knarticlecollection.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:37 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.