knode
#include <kngroupmanager.h>
Public Slots | |
void | slotCheckForNewGroups (KNNntpAccount::Ptr a, QDate date) |
void | slotFetchGroupList (KNNntpAccount::Ptr a) |
void | slotLoadGroupList (KNNntpAccount::Ptr a) |
Signals | |
void | groupAdded (KNGroup::Ptr g) |
void | groupRemoved (KNGroup::Ptr g) |
void | groupUpdated (KNGroup::Ptr g) |
void | newListReady (KNGroupListData::Ptr d) |
Public Member Functions | |
KNGroupManager (QObject *parent=0) | |
~KNGroupManager () | |
void | checkAll (KNNntpAccount::Ptr a, bool silent=false) |
void | checkAll (int id, bool silent=false) |
void | checkGroupForNewHeaders (KNGroup::Ptr g=KNGroup::Ptr()) |
KNGroup::Ptr | currentGroup () const |
void | expireAll (KNCleanUp *cup) |
void | expireAll (KNNntpAccount::Ptr a) |
void | expireGroupNow (KNGroup::Ptr g=KNGroup::Ptr()) |
KNGroup::Ptr | firstGroupOfAccount (const KNServerInfo::Ptr s) |
void | getSubscribed (KNNntpAccount::Ptr a, QStringList &l) |
KNGroup::Ptr | group (const QString &gName, const KNServerInfo::Ptr s) |
KNGroup::List | groupsOfAccount (KNNntpAccount::Ptr a) |
bool | hasCurrentGroup () const |
void | loadGroups (KNNntpAccount::Ptr a) |
bool | loadHeaders (KNGroup::Ptr g) |
void | reorganizeGroup (KNGroup::Ptr g=KNGroup::Ptr()) |
void | setCurrentGroup (KNGroup::Ptr g) |
void | showGroupDialog (KNNntpAccount::Ptr a, QWidget *parent=0) |
void | showGroupProperties (KNGroup::Ptr g=KNGroup::Ptr()) |
void | subscribeGroup (const KNGroupInfo *gi, KNNntpAccount::Ptr a) |
void | syncGroups () |
bool | unloadHeaders (KNGroup::Ptr g, bool force=true) |
bool | unsubscribeGroup (KNGroup::Ptr g=KNGroup::Ptr()) |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Public Member Functions inherited from KNJobConsumer | |
KNJobConsumer () | |
virtual | ~KNJobConsumer () |
void | cancelJobs (boost::shared_ptr< KNJobItem > item) |
void | emitJob (KNJobData *j) |
void | jobDone (KNJobData *j) |
bool | jobsPending () const |
Protected Member Functions | |
void | processJob (KNJobData *j) |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Protected Attributes | |
KNArticleManager * | a_rticleMgr |
KNGroup::Ptr | c_urrentGroup |
KNGroup::List | mGroupList |
Protected Attributes inherited from KNJobConsumer | |
QList< KNJobData * > | mJobs |
Additional Inherited Members | |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from QObject | |
objectName | |
Detailed Description
Group manager.
Definition at line 83 of file kngroupmanager.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 236 of file kngroupmanager.cpp.
KNGroupManager::~KNGroupManager | ( | ) |
Definition at line 243 of file kngroupmanager.cpp.
Member Function Documentation
void KNGroupManager::checkAll | ( | KNNntpAccount::Ptr | a, |
bool | silent = false |
||
) |
Definition at line 573 of file kngroupmanager.cpp.
void KNGroupManager::checkAll | ( | int | id, |
bool | silent = false |
||
) |
Convenient method to call checkAll(KNNntpAccount::Ptr,bool) with the account whose id is id
.
Definition at line 585 of file kngroupmanager.cpp.
void KNGroupManager::checkGroupForNewHeaders | ( | KNGroup::Ptr | g = KNGroup::Ptr() | ) |
Definition at line 506 of file kngroupmanager.cpp.
|
inline |
Definition at line 111 of file kngroupmanager.h.
void KNGroupManager::expireAll | ( | KNCleanUp * | cup | ) |
Definition at line 358 of file kngroupmanager.cpp.
void KNGroupManager::expireAll | ( | KNNntpAccount::Ptr | a | ) |
Definition at line 370 of file kngroupmanager.cpp.
void KNGroupManager::expireGroupNow | ( | KNGroup::Ptr | g = KNGroup::Ptr() | ) |
Definition at line 520 of file kngroupmanager.cpp.
KNGroup::Ptr KNGroupManager::firstGroupOfAccount | ( | const KNServerInfo::Ptr | s | ) |
Returns the first group in the server s
, or null if it is empty.
Definition at line 348 of file kngroupmanager.cpp.
void KNGroupManager::getSubscribed | ( | KNNntpAccount::Ptr | a, |
QStringList & | l | ||
) |
Definition at line 279 of file kngroupmanager.cpp.
KNGroup::Ptr KNGroupManager::group | ( | const QString & | gName, |
const KNServerInfo::Ptr | s | ||
) |
Returns a group named gName
in the server s
, or null if none is found.
Definition at line 338 of file kngroupmanager.cpp.
|
signal |
Emitted when a group is added.
|
signal |
Emitted when a group is removed.
KNGroup::List KNGroupManager::groupsOfAccount | ( | KNNntpAccount::Ptr | a | ) |
Returns the list of (subscribed) groups in the account a
.
Definition at line 288 of file kngroupmanager.cpp.
|
signal |
Emitted when a group is updated.
|
inline |
Definition at line 112 of file kngroupmanager.h.
void KNGroupManager::loadGroups | ( | KNNntpAccount::Ptr | a | ) |
Definition at line 257 of file kngroupmanager.cpp.
bool KNGroupManager::loadHeaders | ( | KNGroup::Ptr | g | ) |
Definition at line 298 of file kngroupmanager.cpp.
|
signal |
|
protectedvirtual |
Reimplemented from KNJobConsumer.
Reimplemented from KNJobConsumer.
Definition at line 592 of file kngroupmanager.cpp.
void KNGroupManager::reorganizeGroup | ( | KNGroup::Ptr | g = KNGroup::Ptr() | ) |
Definition at line 545 of file kngroupmanager.cpp.
void KNGroupManager::setCurrentGroup | ( | KNGroup::Ptr | g | ) |
Definition at line 555 of file kngroupmanager.cpp.
void KNGroupManager::showGroupDialog | ( | KNNntpAccount::Ptr | a, |
QWidget * | parent = 0 |
||
) |
Definition at line 401 of file kngroupmanager.cpp.
void KNGroupManager::showGroupProperties | ( | KNGroup::Ptr | g = KNGroup::Ptr() | ) |
Shows the property dialog of g
or if null, the properties of the currentGroup().
Definition at line 498 of file kngroupmanager.cpp.
|
slot |
check for new groups (created after the given date)
Definition at line 699 of file kngroupmanager.cpp.
|
slot |
fetch group list from server
Definition at line 686 of file kngroupmanager.cpp.
|
slot |
load group list from disk (if this fails: ask user if we should fetch the list)
Definition at line 663 of file kngroupmanager.cpp.
void KNGroupManager::subscribeGroup | ( | const KNGroupInfo * | gi, |
KNNntpAccount::Ptr | a | ||
) |
Definition at line 442 of file kngroupmanager.cpp.
void KNGroupManager::syncGroups | ( | ) |
Definition at line 248 of file kngroupmanager.cpp.
bool KNGroupManager::unloadHeaders | ( | KNGroup::Ptr | g, |
bool | force = true |
||
) |
Definition at line 318 of file kngroupmanager.cpp.
bool KNGroupManager::unsubscribeGroup | ( | KNGroup::Ptr | g = KNGroup::Ptr() | ) |
Definition at line 454 of file kngroupmanager.cpp.
Member Data Documentation
|
protected |
Definition at line 151 of file kngroupmanager.h.
|
protected |
Definition at line 150 of file kngroupmanager.h.
|
protected |
Definition at line 149 of file kngroupmanager.h.
The documentation for this class was generated from the following files:
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.