knode
#include <kngroup.h>
Classes | |
class | dynDataVer0 |
class | dynDataVer1 |
Public Types | |
typedef QList< KNGroup::Ptr > | List |
typedef boost::shared_ptr < KNGroup > | Ptr |
enum | Status { unknown =0, readOnly =1, postingAllowed =2, moderated =3 } |
Public Types inherited from KNArticleCollection | |
typedef QList < KNArticleCollection::Ptr > | List |
typedef boost::shared_ptr < KNArticleCollection > | Ptr |
Public Types inherited from KNCollection | |
enum | collectionType { CTnntpAccount, CTgroup, CTfolder, CTcategory, CTvirtualGroup } |
typedef boost::shared_ptr < KNCollection > | Ptr |
Public Types inherited from KNJobItem | |
typedef boost::shared_ptr < KNJobItem > | Ptr |
Public Member Functions | |
KNGroup (KNCollection::Ptr p=KNCollection::Ptr()) | |
~KNGroup () | |
KNNntpAccount::Ptr | account () |
KNode::Cleanup * | activeCleanupConfig () |
void | appendXPostID (const QString &id) |
KNRemoteArticle::Ptr | at (int i) |
KNRemoteArticle::Ptr | byId (int id) |
KNRemoteArticle::Ptr | byMessageId (const QByteArray &mId) |
KNode::Cleanup * | cleanupConfig () const |
void | decNewCount (int i=1) |
void | decReadCount (int i=1) |
const QByteArray | defaultCharset () |
QString | description () const |
int | firstNewIndex () const |
int | firstNr () const |
const QString & | groupname () |
bool | hasName () const |
virtual const KPIMIdentities::Identity & | identity () const |
void | incNewCount (int i=1) |
void | incReadCount (int i=1) |
void | insortNewHeaders (const KIO::UDSEntryList &list, KNJobData *job=0) |
bool | isLocked () |
int | lastFetchCount () const |
int | lastNr () const |
bool | loadHdrs () |
int | maxFetch () const |
const QString & | name () |
int | newCount () const |
QString | path () |
QString | prepareForExecution () |
void | processXPostBuffer (bool deleteAfterwards) |
int | readCount () const |
bool | readInfo (const QString &confPath) |
void | reorganize () |
void | saveDynamicData (int cnt, bool ovr=false) |
int | saveStaticData (int cnt, bool ovr=false) |
void | scoreArticles (bool onlynew=true) |
void | setDefaultCharset (const QByteArray &s) |
void | setDescription (const QString &s) |
void | setFirstNewIndex (int i) |
void | setFirstNr (int i) |
void | setGroupname (const QString &s) |
virtual void | setIdentity (const KPIMIdentities::Identity &i) |
void | setLastFetchCount (int i) |
void | setLastNr (int i) |
void | setLocked (bool l) |
void | setMaxFetch (int i) |
void | setNewCount (int i) |
void | setReadCount (int i) |
void | setStatus (Status s) |
void | setUseCharset (bool b) |
void | showProperties () |
int | statThrWithNew () |
int | statThrWithUnread () |
Status | status () const |
void | syncDynamicData () |
collectionType | type () |
bool | unloadHdrs (bool force=true) |
void | updateListItem () |
void | updateThreadInfo () |
bool | useCharset () |
void | writeConfig () |
Public Member Functions inherited from KNArticleCollection | |
KNArticleCollection (KNCollection::Ptr p=KNCollection::Ptr()) | |
~KNArticleCollection () | |
void | append (KNArticle::Ptr a) |
void | articleLocked () |
void | articleUnlocked () |
KNArticle::Ptr | at (int i) |
KNArticle::Ptr | byId (int id) |
KNArticle::Ptr | byMessageId (const QByteArray &mid) |
void | clear () |
void | compact () |
bool | isEmpty () |
bool | isLoaded () |
bool | isNotUnloadable () |
int | length () |
unsigned int | lockedArticles () |
void | remove (const KNArticle::Ptr &art) |
void | setLastID () |
void | setNotUnloadable (bool b=true) |
void | syncSearchIndex () |
Public Member Functions inherited from KNCollection | |
KNCollection (KNCollection::Ptr p) | |
virtual | ~KNCollection () |
int | count () const |
void | decCount (int i) |
void | incCount (int i) |
KNCollectionViewItem * | listItem () const |
KNCollection::Ptr | parent () const |
void | setCount (int i) |
void | setListItem (KNCollectionViewItem *i) |
void | setName (const QString &s) |
virtual void | setParent (KNCollection::Ptr p) |
Public Member Functions inherited from KNJobItem | |
KNJobItem () | |
virtual | ~KNJobItem () |
Public Member Functions inherited from KNode::SettingsContainerInterface | |
virtual | ~SettingsContainerInterface () |
Protected Member Functions | |
void | buildThreads (int cnt, KNJobData *parent=0) |
KNRemoteArticle::Ptr | findReference (KNRemoteArticle::Ptr a) |
virtual KNCollection::Ptr | selfPtr () |
KNGroup::Ptr | thisGroupPtr () |
Protected Member Functions inherited from KNode::SettingsContainerInterface | |
SettingsContainerInterface () | |
Protected Attributes | |
QStringList | c_rosspostIDBuffer |
QByteArray | d_efaultChSet |
QString | d_escription |
int | d_ynDataFormat |
int | f_irstNew |
int | f_irstNr |
QString | g_roupname |
int | i_gnoreCount |
int | l_astFetchCount |
int | l_astNr |
bool | l_ocked |
int | m_axFetch |
KNode::Cleanup * | mCleanupConf |
int | mIdentityUoid |
QList< QByteArray > | mOptionalHeaders |
int | n_ewCount |
int | r_eadCount |
Status | s_tatus |
bool | u_seCharset |
Protected Attributes inherited from KNCollection | |
int | c_ount |
KNCollectionViewItem * | l_istItem |
QString | n_ame |
KNCollection::Ptr | p_arent |
Detailed Description
Representation of a news group.
This class contains:
- Static information about a news group (eg. the name and account)
- Dynamic information about a news group (eg. article serial numbers)
- Group specific settings (eg. identities or cleanup settings)
- Load and store methods for the header list of this group
Member Typedef Documentation
typedef QList<KNGroup::Ptr> KNGroup::List |
typedef boost::shared_ptr<KNGroup> KNGroup::Ptr |
Member Enumeration Documentation
enum KNGroup::Status |
Constructor & Destructor Documentation
|
explicit |
Definition at line 46 of file kngroup.cpp.
KNGroup::~KNGroup | ( | ) |
Definition at line 56 of file kngroup.cpp.
Member Function Documentation
KNNntpAccount::Ptr KNGroup::account | ( | ) |
Returns the account this group belongs to.
Definition at line 161 of file kngroup.cpp.
KNode::Cleanup * KNGroup::activeCleanupConfig | ( | ) |
Returns the active cleanup configuration of this group, ie.
the "lowest" available cleanup configuration.
Definition at line 1119 of file kngroup.cpp.
void KNGroup::appendXPostID | ( | const QString & | id | ) |
mark articles with this id as read when we later load the headers / fetch new articles
Definition at line 670 of file kngroup.cpp.
|
inline |
|
protected |
Definition at line 697 of file kngroup.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
Returns the first message that appears in the References header of a
and which exists in this group.
Definition at line 888 of file kngroup.cpp.
|
inline |
|
virtual |
Returns the identity configured for this group.
It is the null identity if there is none.
Implements KNode::SettingsContainerInterface.
Definition at line 169 of file kngroup.cpp.
void KNGroup::insortNewHeaders | ( | const KIO::UDSEntryList & | list, |
KNJobData * | job = 0 |
||
) |
Insert headers of new articles into this group, and then sort.
Definition at line 390 of file kngroup.cpp.
|
inlinevirtual |
|
inline |
bool KNGroup::loadHdrs | ( | ) |
Load the stored headers from disk.
Definition at line 178 of file kngroup.cpp.
|
inline |
|
virtual |
Returns the collection name.
Reimplemented from KNCollection.
Definition at line 68 of file kngroup.cpp.
|
virtual |
|
virtual |
Reimplemented from KNJobItem.
Definition at line 1061 of file kngroup.cpp.
void KNGroup::processXPostBuffer | ( | bool | deleteAfterwards | ) |
Definition at line 676 of file kngroup.cpp.
|
virtual |
Load the properties/settings of this collection.
Implements KNCollection.
Definition at line 90 of file kngroup.cpp.
void KNGroup::reorganize | ( | ) |
Definition at line 965 of file kngroup.cpp.
void KNGroup::saveDynamicData | ( | int | cnt, |
bool | ovr = false |
||
) |
Definition at line 594 of file kngroup.cpp.
int KNGroup::saveStaticData | ( | int | cnt, |
bool | ovr = false |
||
) |
Definition at line 523 of file kngroup.cpp.
void KNGroup::scoreArticles | ( | bool | onlynew = true | ) |
Definition at line 909 of file kngroup.cpp.
|
inlineprotectedvirtual |
Reimplemented from KNArticleCollection::selfPtr().
Implements KNCollection.
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Sets the identity for this group.
- Parameters
-
i The identity or a null Identity to unset it.
Implements KNode::SettingsContainerInterface.
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
void KNGroup::showProperties | ( | ) |
Shows the group properties dialog.
- See also
- KNGroupPropDlg
Definition at line 1030 of file kngroup.cpp.
int KNGroup::statThrWithNew | ( | ) |
Definition at line 1044 of file kngroup.cpp.
int KNGroup::statThrWithUnread | ( | ) |
Definition at line 1053 of file kngroup.cpp.
|
inline |
void KNGroup::syncDynamicData | ( | ) |
Definition at line 626 of file kngroup.cpp.
|
protected |
Returns a shared pointer pointing to this group.
Definition at line 1126 of file kngroup.cpp.
|
inlinevirtual |
bool KNGroup::unloadHdrs | ( | bool | force = true | ) |
Definition at line 367 of file kngroup.cpp.
|
virtual |
void KNGroup::updateThreadInfo | ( | ) |
article handling
Definition at line 988 of file kngroup.cpp.
|
virtual |
Save the configuration to disk.
Implements KNode::SettingsContainerInterface.
Definition at line 124 of file kngroup.cpp.
Member Data Documentation
|
protected |
|
protected |
|
protected |
|
protected |
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.