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

knode

KNArticle Class Reference

#include <knarticle.h>

Inheritance diagram for KNArticle:

Inheritance graph
[legend]

List of all members.


Detailed Description

This class encapsulates a generic article.

It provides all the usual headers of a RFC822-message. Further more it contains an unique id and can store a pointer to a QListViewItem. It is used as a base class for all visible articles.

Definition at line 39 of file knarticle.h.


Public Types

enum  articleType { ATmimeContent, ATremote, ATlocal }
typedef QList< KNArticle * > List

Public Member Functions

virtual void clear ()
KNArticleCollection * collection () const
int id () const
bool isLocked ()
bool isNotUnloadable ()
bool isOrphant () const
 KNArticle (KNArticleCollection *c)
KNHdrViewItem * listItem () const
void setCollection (KNArticleCollection *c)
void setId (int i)
void setListItem (KNHdrViewItem *i)
void setLocked (bool b=true)
void setNotUnloadable (bool b=true)
virtual articleType type () const
virtual void updateListItem ()
 ~KNArticle ()

Protected Member Functions

virtual QByteArray assembleHeaders ()

Protected Attributes

KNArticleCollection * c_ol
KMime::BoolFlags f_lags
int i_d
KNHdrViewItem * i_tem

Member Typedef Documentation

typedef QList<KNArticle*> KNArticle::List

List of articles.

Reimplemented in KNRemoteArticle, and KNLocalArticle.

Definition at line 43 of file knarticle.h.


Member Enumeration Documentation

enum KNArticle::articleType

Enumerator:
ATmimeContent 
ATremote 
ATlocal 

Definition at line 45 of file knarticle.h.


Constructor & Destructor Documentation

KNArticle::KNArticle ( KNArticleCollection *  c  ) 

Definition at line 33 of file knarticle.cpp.

KNArticle::~KNArticle (  ) 

Definition at line 38 of file knarticle.cpp.


Member Function Documentation

QByteArray KNArticle::assembleHeaders (  )  [protected, virtual]

Definition at line 69 of file knarticle.cpp.

void KNArticle::clear (  )  [virtual]

Reimplemented in KNRemoteArticle, and KNLocalArticle.

Definition at line 44 of file knarticle.cpp.

KNArticleCollection* KNArticle::collection (  )  const [inline]

Definition at line 79 of file knarticle.h.

int KNArticle::id (  )  const [inline]

Returns the article id.

Definition at line 59 of file knarticle.h.

bool KNArticle::isLocked (  )  [inline, virtual]

Reimplemented from KNJobItem.

Definition at line 71 of file knarticle.h.

bool KNArticle::isNotUnloadable (  )  [inline]

Definition at line 75 of file knarticle.h.

bool KNArticle::isOrphant (  )  const [inline]

Definition at line 81 of file knarticle.h.

KNHdrViewItem* KNArticle::listItem (  )  const [inline]

Definition at line 66 of file knarticle.h.

void KNArticle::setCollection ( KNArticleCollection *  c  )  [inline]

Definition at line 80 of file knarticle.h.

void KNArticle::setId ( int  i  )  [inline]

Sets the article id.

Parameters:
i The article id.

Definition at line 63 of file knarticle.h.

void KNArticle::setListItem ( KNHdrViewItem *  i  ) 

Definition at line 50 of file knarticle.cpp.

void KNArticle::setLocked ( bool  b = true  )  [virtual]

Reimplemented from KNJobItem.

Definition at line 57 of file knarticle.cpp.

void KNArticle::setNotUnloadable ( bool  b = true  )  [inline]

Definition at line 76 of file knarticle.h.

virtual articleType KNArticle::type (  )  const [inline, virtual]

Reimplemented in KNRemoteArticle, and KNLocalArticle.

Definition at line 56 of file knarticle.h.

virtual void KNArticle::updateListItem (  )  [inline, virtual]

Reimplemented in KNRemoteArticle, and KNLocalArticle.

Definition at line 68 of file knarticle.h.


Member Data Documentation

KNArticleCollection* KNArticle::c_ol [protected]

Definition at line 86 of file knarticle.h.

KMime::BoolFlags KNArticle::f_lags [protected]

Definition at line 89 of file knarticle.h.

int KNArticle::i_d [protected]

Definition at line 85 of file knarticle.h.

KNHdrViewItem* KNArticle::i_tem [protected]

Definition at line 87 of file knarticle.h.


The documentation for this class was generated from the following files:
  • knarticle.h
  • knarticle.cpp

knode

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

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal