• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

knode

Public Types | Public Member Functions | Static Public Member Functions | List of all members
KNArticleVector Class Reference

#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

enum KNArticleVector::SortingType
Enumerator
STid 
STmsgId 
STunsorted 

Definition at line 29 of file knarticlecollection.h.

Constructor & Destructor Documentation

KNArticleVector::KNArticleVector ( KNArticleVector *  master = 0,
SortingType  sorting = STunsorted 
)
explicit

Definition at line 23 of file knarticlecollection.cpp.

KNArticleVector::~KNArticleVector ( )
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.

KNArticle::Ptr KNArticleVector::at ( int  i)
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.

bool KNArticleVector::compareById ( KNArticle::Ptr  a1,
KNArticle::Ptr  a2 
)
static

Definition at line 84 of file knarticlecollection.cpp.

bool KNArticleVector::compareByMsgId ( KNArticle::Ptr  a1,
KNArticle::Ptr  a2 
)
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.

bool KNArticleVector::isEmpty ( )
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.

void KNArticleVector::setMaster ( KNArticleVector *  m)
inline

Definition at line 35 of file knarticlecollection.h.

void KNArticleVector::setSortMode ( SortingType  s)
inline

Definition at line 53 of file knarticlecollection.h.

int KNArticleVector::size ( )
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:
  • knarticlecollection.h
  • knarticlecollection.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

knode

Skip menu "knode"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal