knode
kngroupmanager.cpp
Go to the documentation of this file.
61 KNGroupInfo::KNGroupInfo(const QString &n_ame, const QString &d_escription, bool n_ewGroup, bool s_ubscribed, KNGroup::Status s_tatus)
310 knGlobals.memoryManager()->updateCacheEntry( boost::static_pointer_cast<KNArticleCollection>( g ) );
330 knGlobals.memoryManager()->removeCacheEntry( boost::static_pointer_cast<KNArticleCollection>( g ) );
405 connect( gDialog, SIGNAL(loadList(KNNntpAccount::Ptr)), this, SLOT(slotLoadGroupList(KNNntpAccount::Ptr)) );
406 connect( gDialog, SIGNAL(fetchList(KNNntpAccount::Ptr)), this, SLOT(slotFetchGroupList(KNNntpAccount::Ptr)) );
407 connect( gDialog, SIGNAL(checkNew(KNNntpAccount::Ptr,QDate)), this, SLOT(slotCheckForNewGroups(KNNntpAccount::Ptr,QDate)) );
408 connect( this, SIGNAL(newListReady(KNGroupListData::Ptr)), gDialog, SLOT(slotReceiveList(KNGroupListData::Ptr)) );
422 if (KMessageBox::Yes == KMessageBox::questionYesNoList((parent!=0)? parent:knGlobals.topWidget,i18n("Do you really want to unsubscribe\nfrom these groups?"),
461 KMessageBox::sorry(knGlobals.topWidget, i18n("The group \"%1\" is being updated currently.\nIt is not possible to unsubscribe from it at the moment.", g->groupname()));
526 i18n("This group cannot be expired because it is currently being updated.\n Please try again later."));
580 emitJob( new ArticleListJob( this, (*it)->account(), boost::shared_ptr<KNJobItem>( *it ), silent ) );
634 knGlobals.memoryManager()->updateCacheEntry( boost::static_pointer_cast<KNArticleCollection>( group ) );
669 if (KMessageBox::Yes==KMessageBox::questionYesNo(knGlobals.topWidget,i18n("You do not have any groups for this account;\ndo you want to fetch a current list?"), QString(), KGuiItem(i18n("Fetch List")), KGuiItem(i18n("Do Not Fetch")))) {
void newListReady(KNGroupListData::Ptr d)
void clear()
void expireGroupNow(KNGroup::Ptr g=KNGroup::Ptr())
Definition: kngroupmanager.cpp:520
KNGroup::List groupsOfAccount(KNNntpAccount::Ptr a)
Returns the list of (subscribed) groups in the account a.
Definition: kngroupmanager.cpp:288
void expireGroup(KNGroup::Ptr g, bool showResult=false)
Definition: kncleanup.cpp:88
Definition: knjobdata.h:109
void getSubscribed(KNNntpAccount::Ptr a, QStringList &l)
Definition: kngroupmanager.cpp:279
void emitJob(KNJobData *j)
Send the job to the scheduler and append it to the job queue.
Definition: knjobdata.cpp:42
void showGroupDialog(KNNntpAccount::Ptr a, QWidget *parent=0)
Definition: kngroupmanager.cpp:401
void reorganizeGroup(KNGroup::Ptr g=KNGroup::Ptr())
Definition: kngroupmanager.cpp:545
Definition: kngroup.h:50
void checkAll(KNNntpAccount::Ptr a, bool silent=false)
Definition: kngroupmanager.cpp:573
time_t date() const
KNGroup::Ptr group(const QString &gName, const KNServerInfo::Ptr s)
Returns a group named gName in the server s, or null if none is found.
Definition: kngroupmanager.cpp:338
boost::shared_ptr< KNGroupListData > Ptr
Shared pointer to a KNGroupListData.
Definition: kngroupmanager.h:59
const T & at(int i) const
virtual qint64 pos() const
QString fileName() const
void removeAt(int i)
bool contains(const QString &str, Qt::CaseSensitivity cs) const
Downloads all or a selected part of the article list for a specific newsgroup.
Definition: nntpjobs.h:61
bool unsubscribeGroup(KNGroup::Ptr g=KNGroup::Ptr())
Definition: kngroupmanager.cpp:454
void toSubscribe(QList< KNGroupInfo > *l)
Definition: kngroupdialog.cpp:128
int length() const
FileError error() const
boost::shared_ptr< KNNntpAccount > Ptr
Shared pointer to a KNNntpAccount.
Definition: knnntpaccount.h:62
int indexOf(const T &value, int from) const
void clear()
int indexOf(char ch, int from) const
int elapsed() const
int count(const T &value) const
void subscribeGroup(const KNGroupInfo *gi, KNNntpAccount::Ptr a)
Definition: kngroupmanager.cpp:442
void append(const T &value)
QString fromUtf8(const char *str, int size)
Definition: knjobdata.h:110
Definition: kngroup.h:50
QString fileName() const
void slotFetchGroupList(KNNntpAccount::Ptr a)
fetch group list from server
Definition: kngroupmanager.cpp:686
void checkGroupForNewHeaders(KNGroup::Ptr g=KNGroup::Ptr())
Definition: kngroupmanager.cpp:506
Definition: kngroup.h:50
int removeAll(const T &value)
QByteArray right(int len) const
Definition: kngroup.h:50
int restart()
typedef Iterator
void appendCollection(KNArticleCollection::Ptr c)
Add a collection to handle.
Definition: kncleanup.h:45
bool canceled() const
Returns true if the job has been canceled by the user.
Definition: knjobdata.h:132
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
Definition: knjobdata.h:111
void slotLoadGroupList(KNNntpAccount::Ptr a)
load group list from disk (if this fails: ask user if we should fetch the list)
Definition: kngroupmanager.cpp:663
iterator end()
bool exists() const
virtual qint64 size() const
void setCurrentGroup(KNGroup::Ptr g)
Definition: kngroupmanager.cpp:555
virtual void close()
void showGroupProperties(KNGroup::Ptr g=KNGroup::Ptr())
Shows the property dialog of g or if null, the properties of the currentGroup().
Definition: kngroupmanager.cpp:498
QByteArray left(int len) const
QStringList entryList(QFlags< QDir::Filter > filters, QFlags< QDir::SortFlag > sort) const
void setProgress(unsigned int progress)
Set the progress value of the progress item if available.
Definition: knjobdata.h:168
virtual bool atEnd() const
bool operator==(const KNGroupInfo &gi2) const
Definition: kngroupmanager.cpp:73
char * data()
qint64 write(const char *data, qint64 maxSize)
void start()
boost::shared_ptr< KNServerInfo > Ptr
Shared pointer to a KNServerInfo.
Definition: knserverinfo.h:39
KNGroup::Ptr firstGroupOfAccount(const KNServerInfo::Ptr s)
Returns the first group in the server s, or null if it is empty.
Definition: kngroupmanager.cpp:348
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
bool operator<(const KNGroupInfo &gi2) const
Definition: kngroupmanager.cpp:79
Helper classes for the group selection dialog, contains info about a newsgroup (name, description)
Definition: kngroupmanager.h:34
iterator begin()
KNNntpAccount::Ptr account(int id)
Returns the account with the given id.
Definition: knaccountmanager.cpp:84
bool unloadHeaders(KNGroup::Ptr g, bool force=true)
Definition: kngroupmanager.cpp:318
void slotCheckForNewGroups(KNNntpAccount::Ptr a, QDate date)
check for new groups (created after the given date)
Definition: kngroupmanager.cpp:699
qint64 readLine(char *data, qint64 maxSize)
QByteArray toUtf8() const
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
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.