• 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 | Protected Attributes | List of all members
KNArticle Class Reference

#include <knarticle.h>

Inheritance diagram for KNArticle:
Inheritance graph
[legend]

Public Types

enum  articleType { ATmimeContent, ATremote, ATlocal }
 
typedef QList< KNArticle::Ptr > List
 
typedef boost::shared_ptr
< KNArticle > 
Ptr
 
- Public Types inherited from KNJobItem
typedef boost::shared_ptr
< KNJobItem > 
Ptr
 

Public Member Functions

 KNArticle (boost::shared_ptr< KNArticleCollection > c)
 
 ~KNArticle ()
 
virtual void clear ()
 
boost::shared_ptr
< KNArticleCollection > 
collection () const
 
int id () const
 
bool isLocked ()
 
bool isNotUnloadable ()
 
bool isOrphant () const
 
KNHdrViewItem * listItem () const
 
void setCollection (boost::shared_ptr< KNArticleCollection > c)
 
void setId (int i)
 
void setListItem (KNHdrViewItem *i, KNArticle::Ptr a)
 
void setLocked (bool b=true)
 
void setNotUnloadable (bool b=true)
 
virtual articleType type () const
 
virtual void updateListItem ()
 
- Public Member Functions inherited from KNJobItem
 KNJobItem ()
 
virtual ~KNJobItem ()
 
virtual QString prepareForExecution ()
 

Protected Attributes

boost::shared_ptr
< KNArticleCollection > 
c_ol
 
KMime::BoolFlags f_lags
 
int i_d
 
KNHdrViewItem * i_tem
 

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 35 of file knarticle.h.

Member Typedef Documentation

typedef QList<KNArticle::Ptr> KNArticle::List

List of articles.

Definition at line 41 of file knarticle.h.

typedef boost::shared_ptr<KNArticle> KNArticle::Ptr

Shared pointer to a KNArticle. To be used instead of raw KNArticle*.

Definition at line 39 of file knarticle.h.

Member Enumeration Documentation

enum KNArticle::articleType
Enumerator
ATmimeContent 
ATremote 
ATlocal 

Definition at line 43 of file knarticle.h.

Constructor & Destructor Documentation

KNArticle::KNArticle ( boost::shared_ptr< KNArticleCollection >  c)
explicit

Definition at line 33 of file knarticle.cpp.

KNArticle::~KNArticle ( )

Definition at line 39 of file knarticle.cpp.

Member Function Documentation

void KNArticle::clear ( )
virtual

Definition at line 45 of file knarticle.cpp.

boost::shared_ptr<KNArticleCollection> KNArticle::collection ( ) const
inline

Definition at line 82 of file knarticle.h.

int KNArticle::id ( ) const
inline

Returns the article id.

Definition at line 57 of file knarticle.h.

bool KNArticle::isLocked ( )
inlinevirtual

Reimplemented from KNJobItem.

Definition at line 74 of file knarticle.h.

bool KNArticle::isNotUnloadable ( )
inline

Definition at line 78 of file knarticle.h.

bool KNArticle::isOrphant ( ) const
inline

Definition at line 84 of file knarticle.h.

KNHdrViewItem* KNArticle::listItem ( ) const
inline

Definition at line 64 of file knarticle.h.

void KNArticle::setCollection ( boost::shared_ptr< KNArticleCollection >  c)
inline

Definition at line 83 of file knarticle.h.

void KNArticle::setId ( int  i)
inline

Sets the article id.

Parameters
iThe article id.

Definition at line 61 of file knarticle.h.

void KNArticle::setListItem ( KNHdrViewItem *  i,
KNArticle::Ptr  a 
)

Sets the headerview item associated to this article.

Parameters
iThe item associated to this item or 0 to break the link to the previous item.
aThe shared pointer of this article.

Definition at line 51 of file knarticle.cpp.

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

Reimplemented from KNJobItem.

Definition at line 61 of file knarticle.cpp.

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

Definition at line 79 of file knarticle.h.

virtual articleType KNArticle::type ( ) const
inlinevirtual

Reimplemented in KNLocalArticle, and KNRemoteArticle.

Definition at line 54 of file knarticle.h.

virtual void KNArticle::updateListItem ( )
inlinevirtual

Reimplemented in KNLocalArticle, and KNRemoteArticle.

Definition at line 71 of file knarticle.h.

Member Data Documentation

boost::shared_ptr<KNArticleCollection> KNArticle::c_ol
protected

Definition at line 88 of file knarticle.h.

KMime::BoolFlags KNArticle::f_lags
protected

Definition at line 91 of file knarticle.h.

int KNArticle::i_d
protected

Definition at line 87 of file knarticle.h.

KNHdrViewItem* KNArticle::i_tem
protected

Definition at line 89 of file knarticle.h.


The documentation for this class was generated from the following files:
  • knarticle.h
  • knarticle.cpp
This file is part of the KDE documentation.
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.

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

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